--- pretty_name: A curated collection of single-cell and bulk transcriptomic datasets from primary tumors and metastases language: - en license: cc-by-4.0 tags: - biology - transcriptomics - single-cell - cancer --- # A curated collection of single-cell and bulk transcriptomic datasets from primary tumors and metastases P2M.db is a curated collection of single-cell and bulk transcriptomic datasets from primary tumors and metastases, with specimen metadata, cell annotations and precomputed analysis results. The data were collected from GEO, ArrayExpress and TCGA. The collection contains **78 single-cell datasets (6,153,397 cells)** and **153 bulk datasets (15,749 expression profiles)**, covering 61 cancer types and subtypes, 34 primary tissues and 32 metastatic sites. [Website](http://www.nidmarker-db.cn/P2M.db/) · [Browse the files](https://huggingface.co/datasets/kmmuleelab/P2Mdb/tree/main) ![P2M.db overview](https://huggingface.co/datasets/kmmuleelab/P2Mdb/resolve/main/figures/figure1.png) *Figure 1. Overview of the transcriptomic collection, cancer coverage, deposited records, specimen roles and data access.* [Figure 1: Overview](figures/figure1.png) · [Figure 2: Literature Concordance](figures/figure2.png) · [Figure 3: Case Study](figures/figure3.png) · [Figure legends](figures/legends.md) The [complete search queries](search_queries.md) and [accession-level GEO screening table](screening_en.xlsx), including screening decisions and exclusion counts by reason, are available for download. ## Repository structure and data files The repository root is organized into primary data collections, analytical modules, and curation records: | Directory or file | Description | | --- | --- | | `scRNA-seq/` | Standardized single-cell RNA sequencing datasets (78 accessions; Seurat RDS objects and CSV bundles) | | `bulk/` | Standardized bulk RNA-seq and microarray datasets (153 accessions; expression list RDS objects and CSV bundles) | | `mydownload/` | Prepackaged module-specific analysis bundles (e.g., DEG tables, functional enrichment, cell communication) supporting direct downloads from the P2M.db web interface | | `demo/` | Self-contained R scripts and workflows demonstrating how to load and explore single-cell (`demo/scRNA_GSE263733.R`) and bulk (`demo/bulk_GSE221608.R`) datasets | | `code/` | Data processing, quality assessment, and validation scripts, including the mirrored analysis workflows in `code/analysis/` | | `figures/` | High-resolution publication figures (Figures 1–3, Supplementary Figures S1–S2) and detailed legends | | `statistics/` | Machine-readable collection metrics, cancer coverage, tissue mappings, and dataset summaries (`summary.json`, `anatomy.json`, `single.json`, `frequencies.csv`) | | `screening_en.xlsx` | Accession-level eligibility evaluation and exclusion records for all 2,942 retrieved candidate series | | `search_queries.md` | Complete query strings and retrieval parameters used across GEO, ArrayExpress, and PubMed | | `sources.csv` | Comprehensive study provenance, platform accessions, publication DOIs, and specimen annotation evidence | ### Accession directory contents Datasets are organized by their original study accession under `scRNA-seq/` and `bulk/`. Expression data are provided in two formats: **RDS files** and **CSV files packaged in TAR.GZ archives**. Both formats include the expression data and corresponding cell or sample metadata. | File or directory | Contents | | --- | --- | | `.rds` | Expression data and metadata; single-cell objects also contain available cell annotations | | `_expression.tar.gz` | TAR.GZ archive containing `expression.csv` and `metadata.csv` | | `samples.csv` | Sample identifiers, specimen classifications and associated metadata | | `dataset.csv` | Study information, data source, annotation methods and processing notes | | `qc.csv` | Quality control measurements | | `processing_parameters.csv` | One function per row in two columns: `function` and `parameters` | | `analysis/` | Available differential expression, enrichment and other analysis results | Each parameter table has one function per row, with its arguments listed as name = value pairs in the parameters column. PCA/Harmony contexts retain separate labels. Functions marked `(workflow reference)` record the shared workflow settings of the original pipeline. Multiple source descriptions of a parameter are retained as a list. The format can be converted with `code/parameters.py`. Each expression archive contains `expression.csv` (features in rows; cells or samples in columns) and `metadata.csv`. Metadata rows follow the expression column order and retain specimen labels and available cell annotations. Single-cell exports use the stored RNA counts layer when available, otherwise the stored expression data layer; `expression_layer` identifies the selection. Bulk expression values retain their recorded scale. Studies with multiple bulk matrices contain a separate CSV pair for each platform. Missing values are written as NA. Available analyses differ among datasets. `analysis/comparisons.csv` identifies the specimen groups, metastatic sites and annotation methods used in each comparison. At the repository root, `sources.csv` records study sources and the evidence for specimen labels and annotations. Collection statistics are in `statistics/`. ## Read the data Read RDS files directly in R, or extract the TAR.GZ archive before reading its CSV files: ```r object <- readRDS("path/to/file.rds") metadata <- read.csv("path/to/metadata.csv", check.names = FALSE) ``` For examples that select specimens and handle bulk objects with multiple matrices, see [`code/read_data.R`](code/read_data.R) and [`code/README.md`](code/README.md). Analysis scripts and their documentation are in [`code/`](code/). The original P2M.Rcode analysis scripts are mirrored in [`code/analysis/`](code/analysis/) with standardized filenames and unchanged contents. ## Use of the data Specimen labels and comparison definitions are recorded for each dataset. Metastatic tissue samples and TCGA clinical M0/M1 groups represent different comparisons. Some datasets also contain normal, fluid or unclassified specimens. Sample counts may include repeated sampling from the same patient. Dataset-specific notes are recorded in `sources.csv` and `dataset.csv`. The 20 TCGA expression releases contain TPM values; the bulk analysis workflows use log2(TPM + 1). QC summaries describe the released matrices or the recorded filtering stages. Unavailable measurements and annotations are represented by NA or empty fields. ## Data use and citation The curated metadata, QC summaries and analysis results generated for P2M.db are licensed under CC BY 4.0. Original expression data and source annotations retain their source terms; code and reference resources retain their own licenses. See [LICENSE](LICENSE) for the scope. Cite this repository and the original studies listed in `sources.csv`, and record the repository revision used in your analysis. ## TCGA survival analyses Overall-survival inputs, all tested gene models and model diagnostics for 18 TCGA cohorts are provided in each `bulk/TCGA_*/survival/` directory; the combined gene results are in `analysis/survival.csv.gz`. Death and last-follow-up times are retained, with one tumor profile per patient. Analyses use clinical M0/M1 groups, which are distinct from specimen tissue origin. Nominal and BH-adjusted Cox P values and proportional-hazards diagnostics are reported separately. Website Kaplan-Meier curves use a median expression split and a log-rank test. The current survival workflow is in [`code/validation/survival/`](code/validation/survival/). GEO survival files retain their source-specific endpoints and historical subsets; the TCGA update does not assert that those GEO analyses were reproduced.