Package: cancer-data
cancer_dataThis package provides unified methods for accessing popular datasets used in cancer research.Full documentationInstallationpipinstallcancer_dataSystem requirementsThe raw downloaded files occupy approximately 15 GB, and the processed HDFs take up about 10 GB. On a relatively recent machine with a fast SSD, processing all of the files after download takes about 3-4 hours. At least 16 GB of RAM is recommended for handling the large splicing tables.DatasetsA complete description of the datasets may be found inschema.csv.CollectionDatasetsPortalCancer Cell Line Encyclopedia (CCLE)Many (see portal)https://portals.broadinstitute.org/ccle/data(registration required)Cancer Dependency Map (DepMap)Genome-wide CRISPR-cas9 and RNAi screens, gene expression, mutations, and copy numberhttps://depmap.org/portal/download/The Cancer Genome Atlas (TCGA)Mutations, RNAseq expression and splicing, and copy numberhttps://xenabrowser.net/datapages/?cohort=TCGA%20Pan-Cancer%20(PANCAN)&removeHub=https%3A%2F%2Fxena.treehouse.gi.ucsc.edu%3A443The Genotype-Tissue Expression (GTEx) ProjectRNAseq expression and splicinghttps://gtexportal.org/home/datasetsFeaturesThe goal of this package is to make statistical analysis and coordination of these datasets easier. To that end, it provides the following features:Harmonization: datasets within a collection have sample IDs reduced to the same format. For instance, all CCLE+DepMap datasets have been modified to use Achilles/Arxspan IDs, rather than cell line names.Speed: processed datasets are all stored in high-performanceHDF5 format, allowing large tables to be loaded orders of magnitude faster than with CSV or TSV formats.Space: tables of purely numerical values (e.g. gene expression, methylation, drug sensitivities) are stored in half-precision format. Compression is used for all tables, resulting in size reductions by factors of over 10 for sparse matrices such as mutation tables, and over 50 for highly-redundant tables such as gene-level copy number estimates.How it worksTheschemaserves as the reference point for all datasets used. Each dataset is identified by a uniqueidcolumn, which also serves as its access identifier.Datasets are downloaded from the location specified indownload_url, after which they are checked against the provideddownloaded_md5hash.The next steps depend on thetypeof the dataset:referencedatasets, such as the hg19 FASTA files, are left as-is.primary_datasetobjects are preprocessed and converted into HDF5 format.secondary_datasetobjects are defined as being made fromprimary_datasetobjects. These are also processed and converted into HDF5 format.To keep track of which datasets are necessary for producing another, thedependenciescolumn specifies the datasetids that are required for making another. For instance, theccle_proteomicsdataset is dependent on theccle_annotationsdataset for converting cell line names to Achilles IDs. When running the processing pipeline, the package will automatically check that dependencies are met, and raise an error if they are not found.NotesSome datasets have filtering applied to reduce their size. These are listed below:CCLE, GTEx, and TCGA splicing datasets have been filtered to remove splicing events with many missing values as well as those with low standard deviations.When constructing binary mutation matrices (depmap_damaginganddepmap_hotspot), a minimum mutation frequency is used to remove especially rare (present in less than four samples) mutations.The TCGA MX splicing dataset is extremely large (approximately 10,000 rows by 900,000 columns), so it has been split column-wise into 8 chunks.