Get All Genomic Information By Sample IDs
get_genetics_by_sample(
sample_id = NULL,
study_id = NULL,
sample_study_pairs = NULL,
genes = NULL,
panel = NULL,
add_hugo = TRUE,
base_url = NULL,
return_segments = FALSE
)
A list of mutations, cna and structural variants (including fusions), if available. Will also return copy number segmentation data if return_segments = TRUE
.
a vector of sample IDs (character)
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 sample_study_pairs
A dataframe with columns: sample_id
, study_id
and molecular_profile_id
(optional). Variations in capitalization of column names are accepted.
This can be used in place of sample_id
, study_id
, molecular_profile_id
arguments above if you
need to pull samples from several different studies at once. If passed this will take overwrite sample_id
, study_id
, molecular_profile_id
if also passed.
A vector of Entrez ids or Hugo symbols. If Hugo symbols are supplied, they will be converted to entrez ids using the get_entrez_id()
function.
If panel
and genes
are both supplied, genes from both arguments will be returned. If both are NULL (default), it will return gene results for all available genomic data for that sample.
One or more panel IDs to query (e.g. 'IMPACT468').
If panel
and genes
are both supplied, genes from both arguments will be returned. If both are NULL (default), it will return gene results for all available genomic data for that sample.
Logical indicating whether HugoGeneSymbol
should be added to your resulting data frame, if not already present in raw API results.
Argument is TRUE
by default. If FALSE
, results will be returned as is (i.e. any existing Hugo Symbol columns in raw results will not be removed).
The database URL to query
If NULL
will default to URL set with set_cbioportal_db(<your_db>)
Default is FALSE
where copy number segmentation data won't be returned in addition to the mutation, cna and structural variant data.
TRUE
will return any available segmentation data with results.
if (FALSE) {
get_genetics_by_sample(sample_id = c("TCGA-OR-A5J2-01","TCGA-OR-A5J6-01"),
study_id = "acc_tcga",
return_segments = TRUE)
}
Run the code above in your browser using DataLab