get_cna_by_sample {cbioportalR} | R Documentation |
Get CNA By Sample ID
Description
Get CNA By Sample ID
Usage
get_cna_by_sample(
sample_id = NULL,
study_id = NULL,
molecular_profile_id = NULL,
sample_study_pairs = NULL,
genes = NULL,
panel = NULL,
add_hugo = TRUE,
base_url = NULL
)
Arguments
sample_id |
a vector of sample IDs (character) |
study_id |
A string indicating the study ID from which to pull data. If no study ID, will
guess the study ID based on your URL and inform. Only 1 study ID can be passed. If mutations/cna from
more than 1 study needed, see |
molecular_profile_id |
A string indicating the molecular profile ID from which to pull data. If ID supplied, will
guess the molecular profile ID based on the study ID. Only 1 molecular profile ID can be passed. If mutations from
more than 1 study needed, see |
sample_study_pairs |
A dataframe with columns: |
genes |
A vector of Entrez ids or Hugo symbols. If Hugo symbols are supplied, they will be converted to entrez ids using the |
panel |
One or more panel IDs to query (e.g. 'IMPACT468').
If |
add_hugo |
Logical indicating whether |
base_url |
The database URL to query
If |
Value
A data frame of CNAs
Examples
## Not run:
set_cbioportal_db("public")
get_cna_by_sample(sample_id = c("s_C_36924L_P001_d"),
study_id = "prad_msk_2019")
## End(Not run)