cohorts | R Documentation |
Cohort is a set of datasets from the same study or for a same group of samples, it is the individual data unit in Omics database construction. TODO: ENSEMBL IDs and Hugo Symbol will be supported and the can exchange automatically.
cohorts(verbose = FALSE) cohort_new( path, name, cancer_type, data_provider, maintainer, dataset_list, doi = NA, year = NULL, dataset_rowidx = SPEC_ROWINDEX, dataset_options = SPEC_DATASET_OPTIONS, dataset_ncount = SPEC_SAMPINDEX, verbose = FALSE ) cohort_ls(id, verbose = FALSE)
verbose |
Whether to print extra information. |
path |
A directory path pointing the new cohort. |
name |
Description of the cohort. |
cancer_type, |
Cancer type the cohort belongs to. |
data_provider |
Typically an university or an institute. |
maintainer |
Maintainer name and email in format |
dataset_list |
A
|
doi |
DOI to link the reference. |
year |
The year to generate the cohort, if not set, use current year. |
dataset_rowidx |
Specify which columns used for generating row index
files from dataset file. You can check |
dataset_options |
Valid dataset options, see |
dataset_ncount |
similar to |
id |
Cohort ID, which can obtained from |
cohort_new
: Create a new cohort with data storing in a path
cohort_ls
: List datasets (or metadata) in a cohort
cohorts(verbose = TRUE) cohort_new( path = system.file("cohorts/example_TCGA_LAML", package = "coco"), name = "TCGA Acute Myeloid Leukemia (LAML) for examples utils", cancer_type = "LAML", data_provider = "TCGA", maintainer = "Shixiang Wang <wangsx1@sysucc.org.cn>", doi = NA, year = 2016, dataset_list = data.frame( id = c( "example_TCGA_LAML_patient_info", "example_TCGA_LAML_gene_expr_HTSeq_count", "example_TCGA_LAML_MAF" ), name = c( "Patient information", "Gene expression in log2(count)", "Mutation list" ), genome_build = c(NA, "hg19", "hg19"), data_platform = c("Clinical", "RNA-Seq", "WES"), data_type = c("Phenotype", "Gene expression", "Mutation"), data_format = c("PatientInfo", "Matrix", "MAF"), tags = c("survival,FAB", "HTSeq", NA) ) ) cohort_ls("example_TCGA_LAML")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.