custom_caselist.Rd
Create and a custom case list for easy data subset in cBioPortal.
custom_caselist(
these_sample_ids,
caselist_name,
caselist_description,
return_missing_samples = FALSE,
dir
)
A vector of sample IDs to be subset into a case list. Required parameter.
Name of the generated case list (name does not include the file format, this will be added automagically). This parameter is required.
A verbose description of the created case list. Required.
Boolean parameter. Set to TRUE to return all sample IDs that are in the desired case list, but not represented in the study specific clinical file. Default is FALSE.
The directory where all study specific files live.
Nothing.
Convenience function for specifying custom case lists that can be browsed on cBioPortal.
This function takes a set of sample IDs these_sample_ids
and intersect the IDs with what's available in the study-specific clinical file.
This function also extracts the project name for the specified study, i.e the project name that is defined withing the folder specified under the dir
parameter.
if (FALSE) {
#get some sample IDs
my_samples = get_gambl_metadata() %>%
dplyr::filter(pathology == "FL") %>%
dplyr::filter(cohort == "FL_GenomeCanada") %>%
pull(sample_id)
#create case list with selected sample IDs
custom_caselist(these_sample_ids = my_samples,
caselist_name = "FL_Canada",
caselist_description = "Follicular Lymphoma from the Genome Canada Study",
dir = "../path/to/study_directory/")
}