setup_study.Rd
Initialize a new cBioPortal instance or update existing portal data set, can also be used to retrieve sample ids included in study.
setup_study(
seq_type_filter = "genome",
short_name = "GAMBL",
human_friendly_name = "GAMBL data",
project_name = "gambl_genome",
description = "GAMBL data from genome",
overwrite = TRUE,
out_dir
)
the seq type you are setting up a study for, default is "genome".
A concise name for your portal project.
A slightly more verbose name for your project.
Unique ID for your project.
A verbose description of your data set.
Flag to specify that files should be overwritten if they exist. Default is TRUE.
The full path to the base directory where the files are being created.
A vector of sample_id for the patients that have been included.
This function internally calls get_coding_ssm to retrieve coding mutations to be included in the study (if overwrite = TRUE
).
In addition, this function also creates and sets up the proper folder hierarchy and writes the files necessary to import a new cBioPortal study.
Before a study is ready to be imported to cBioPortal, the user also needs to run setup_fusions and finalize_study.
Optionally the user can also run study_check to ensure all samples described by the "clinical" file are included in the study.
Also, note that the parameters chosen for this function have to match the same parameters called for any subsequent study function calls.
#Setup study and save included ids as a vector of characters:
if (FALSE) {
ids = setup_study(out_dir = "GAMBLR/cBioPortal/instance01/")
}