Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 4 new columns ({'method_b', 'label_a', 'label_b', 'method_a'}) and 3 missing columns ({'coverage_percent', 'method', 'labelled_cells'}).

This happened while the csv dataset builder was generating data using

hf://datasets/kmmuleelab/P2Mdb/code/validation/annotation_pairs.csv (at revision b47e6d664d388aff9030804d4617f9bf8c165fb0), ['hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/annotation_coverage.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/annotation_pairs.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/figure_data/bulk_expression.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/figure_data/bulk_integrity.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/figure_data/bulk_integrity_summary.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/figure_data/bulk_method.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/figure_data/bulk_reproduction.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/figure_data/bulk_samples.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/figure_data/single_count_summary.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/figure_data/single_datasets.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/figure_data/single_markers.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/figure_data/single_mito_summary.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/figure_data/single_qc.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/figure_data/single_umap.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/markers.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/parameters.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/tcga_scale.csv']

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1848, in _prepare_split_single
                  writer.write_table(table)
                  ~~~~~~~~~~~~~~~~~~^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 784, in write_table
                  self._write_table(pa_table, writer_batch_size=writer_batch_size)
                  ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 795, in _write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              label_a: string
              label_b: string
              cells: int64
              accession: string
              method_a: string
              method_b: string
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 964
              to
              {'accession': Value('string'), 'method': Value('string'), 'cells': Value('int64'), 'labelled_cells': Value('int64'), 'coverage_percent': Value('float64')}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1694, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1850, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
                  ...<4 lines>...
                  )
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 4 new columns ({'method_b', 'label_a', 'label_b', 'method_a'}) and 3 missing columns ({'coverage_percent', 'method', 'labelled_cells'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/kmmuleelab/P2Mdb/code/validation/annotation_pairs.csv (at revision b47e6d664d388aff9030804d4617f9bf8c165fb0), ['hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/annotation_coverage.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/annotation_pairs.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/figure_data/bulk_expression.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/figure_data/bulk_integrity.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/figure_data/bulk_integrity_summary.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/figure_data/bulk_method.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/figure_data/bulk_reproduction.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/figure_data/bulk_samples.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/figure_data/single_count_summary.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/figure_data/single_datasets.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/figure_data/single_markers.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/figure_data/single_mito_summary.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/figure_data/single_qc.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/figure_data/single_umap.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/markers.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/parameters.csv', 'hf://datasets/kmmuleelab/P2Mdb@b47e6d664d388aff9030804d4617f9bf8c165fb0/code/validation/tcga_scale.csv']
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

accession
string
method
string
cells
int64
labelled_cells
int64
coverage_percent
float64
E-MTAB-12305
celltype_article
102,754
0
0
E-MTAB-12305
celltype_sctype
102,754
102,754
100
E-MTAB-12305
celltype_singler
102,754
102,754
100
GSE103322
celltype_article
5,902
0
0
GSE103322
celltype_sctype
5,902
5,902
100
GSE103322
celltype_singler
5,902
5,902
100
GSE109308
celltype_article
6,414
0
0
GSE109308
celltype_sctype
6,414
3,709
57.826629
GSE109308
celltype_singler
6,414
6,414
100
GSE110009
celltype_article
7,415
0
0
GSE110009
celltype_sctype
7,415
4,762
64.221173
GSE110009
celltype_singler
7,415
7,415
100
GSE123837
celltype_article
506
0
0
GSE123837
celltype_sctype
506
306
60.474308
GSE123837
celltype_singler
506
506
100
GSE130000
celltype_article
32,147
0
0
GSE130000
celltype_sctype
32,147
16,093
50.060659
GSE130000
celltype_singler
32,147
32,147
100
GSE131907
celltype_article
207,972
207,972
100
GSE131907
celltype_sctype
207,972
207,972
100
GSE131907
celltype_singler
207,972
207,972
100
GSE140042
celltype_article
49,980
0
0
GSE140042
celltype_sctype
49,980
49,980
100
GSE140042
celltype_singler
49,980
49,980
100
GSE152048
celltype_article
123,554
0
0
GSE152048
celltype_sctype
123,554
123,554
100
GSE152048
celltype_singler
123,554
123,554
100
GSE158399
celltype_article
32,860
0
0
GSE158399
celltype_sctype
32,860
32,860
100
GSE158399
celltype_singler
32,860
32,860
100
GSE158631
celltype_article
94
0
0
GSE158631
celltype_sctype
94
94
100
GSE158631
celltype_singler
94
94
100
GSE162708
celltype_article
21,937
0
0
GSE162708
celltype_sctype
21,937
20,326
92.656243
GSE162708
celltype_singler
21,937
21,897
99.81766
GSE163558
celltype_article
42,967
0
0
GSE163558
celltype_sctype
42,967
42,553
99.03647
GSE163558
celltype_singler
42,967
42,941
99.939488
GSE164522
celltype_article
257,548
257,548
100
GSE164522
celltype_sctype
257,548
257,548
100
GSE164522
celltype_singler
257,548
257,548
100
GSE167036
celltype_article
118,845
0
0
GSE167036
celltype_sctype
118,845
118,186
99.445496
GSE167036
celltype_singler
118,845
118,186
99.445496
GSE178318
celltype_article
133,002
0
0
GSE178318
celltype_sctype
133,002
133,002
100
GSE178318
celltype_singler
133,002
133,002
100
GSE180286
celltype_article
94,682
0
0
GSE180286
celltype_sctype
94,682
13,144
13.882259
GSE180286
celltype_singler
94,682
13,144
13.882259
GSE181919
celltype_article
52,805
52,805
100
GSE181919
celltype_sctype
52,805
52,739
99.875012
GSE181919
celltype_singler
52,805
52,739
99.875012
GSE183916
celltype_article
28,354
0
0
GSE183916
celltype_sctype
28,354
21,281
75.054666
GSE183916
celltype_singler
28,354
28,354
100
GSE184362
celltype_article
189,463
0
0
GSE184362
celltype_sctype
189,463
189,463
100
GSE184362
celltype_singler
189,463
189,463
100
GSE188737
celltype_article
53,452
53,452
100
GSE188737
celltype_sctype
53,452
52,015
97.311607
GSE188737
celltype_singler
53,452
53,452
100
GSE195861
celltype_article
58,501
0
0
GSE195861
celltype_sctype
58,501
46,330
79.195227
GSE195861
celltype_singler
58,501
57,891
98.957283
GSE197177
celltype_article
57,430
0
0
GSE197177
celltype_sctype
57,430
57,245
99.677869
GSE197177
celltype_singler
57,430
57,245
99.677869
GSE197778
celltype_article
24,089
0
0
GSE197778
celltype_sctype
24,089
24,089
100
GSE197778
celltype_singler
24,089
24,089
100
GSE201047
celltype_article
98,483
0
0
GSE201047
celltype_sctype
98,483
97,902
99.41005
GSE201047
celltype_singler
98,483
97,902
99.41005
GSE203067
cell_type
51,909
48,586
93.598413
GSE203067
celltype_article
51,909
0
0
GSE203067
celltype_sctype
51,909
0
0
GSE203067
celltype_singler
51,909
0
0
GSE212797
celltype_article
35,551
35,551
100
GSE212797
celltype_sctype
35,551
35,551
100
GSE212797
celltype_singler
35,551
35,551
100
GSE217084
celltype_article
59,378
0
0
GSE217084
celltype_sctype
59,378
43,558
73.357136
GSE217084
celltype_singler
59,378
59,378
100
GSE220946
celltype_article
29,404
0
0
GSE220946
celltype_sctype
29,404
29,404
100
GSE220946
celltype_singler
29,404
29,404
100
GSE221575
celltype_article
7,431
0
0
GSE221575
celltype_sctype
7,431
7,419
99.838514
GSE221575
celltype_singler
7,431
7,419
99.838514
GSE223374
cell_type
12,800
12,651
98.835938
GSE223374
celltype_article
12,800
0
0
GSE223374
celltype_sctype
12,800
0
0
GSE223374
celltype_singler
12,800
0
0
GSE223499
cell_type
252,332
252,332
100
GSE223499
celltype_article
252,332
252,332
100
GSE223499
celltype_sctype
252,332
0
0
GSE223499
celltype_singler
252,332
0
0
GSE225331
celltype_article
1,297
0
0
End of preview.

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 analysis results. The data were collected from GEO, ArrayExpress and TCGA.

The collection contains 50 single-cell datasets (3,650,286 cells) and 86 bulk datasets (12,896 expression profiles), covering 49 cancer types and subtypes, 28 primary tissues and 25 metastatic tissues.

Website · Browse the files

P2M.db overview

Figure 1. Overview of the transcriptomic collection, cancer coverage, deposited records, specimen roles and data access.

Search strategy and metadata screening

The separate GEO searches used a publication-date cutoff of 12 October 2026 and were executed on 13 October 2026. Series and GSM metadata were screened by assay modality, with targeted checks of ambiguous sample descriptions. The PubMed search was performed on 12 October 2026.

GEO single-cell search

326 Series records

(gse[ETYP] AND Homo sapiens[ORGN] AND RNA AND primary AND (metastasis OR metastatic) AND (tumor OR tumour OR cancer OR carcinoma OR neoplasm OR neoplastic) AND ("Expression profiling by high throughput sequencing"[GTYP] OR "Expression profiling by array"[GTYP]) AND ("1900/01/01"[PDAT] : "2026/10/12"[PDAT])) AND ("single cell" OR "single-cell" OR "single nucleus" OR "single-nucleus" OR "scRNA-seq" OR scRNAseq OR "snRNA-seq" OR snRNAseq)

GEO bulk RNA-seq/microarray search

1,565 Series records

(gse[ETYP] AND Homo sapiens[ORGN] AND RNA AND primary AND (metastasis OR metastatic) AND (tumor OR tumour OR cancer OR carcinoma OR neoplasm OR neoplastic) AND ("Expression profiling by high throughput sequencing"[GTYP] OR "Expression profiling by array"[GTYP]) AND ("1900/01/01"[PDAT] : "2026/10/12"[PDAT])) AND ("bulk RNA" OR "bulk RNA-seq" OR "bulk RNA sequencing" OR "RNA-seq" OR RNAseq OR "RNA sequencing" OR microarray OR "Expression profiling by array"[GTYP])

PubMed search

9,822 publication records, counted separately from GEO Series

RNA AND primary AND (metastasis OR metastatic) AND (tumor OR tumour OR cancer OR carcinoma OR neoplasm OR neoplastic) AND Humans[MeSH Terms] AND ("1900/01/01"[Date - Publication] : "2026/10/12"[Date - Publication])

The two GEO searches overlap by 272 accessions and contain 1,619 unique accessions in total. Their counts are not additive.

Accession-level screening records and exclusion summaries are available in the screening directory.

Key regular expressions used for metadata screening
sc_label = '\\b[sn]c?RNA[-_ ]?seq\\b|\\bscRNAseq\\b|\\bsnRNAseq\\b|single[-_ ]?(?:cell|nucle(?:us|i)).{0,35}(?:RNA|transcriptom|gene expression)|(?:RNA|cDNA).{0,30}(?:from|of) (?:a )?single cell|isolated single cell|\\bEasy[-_ ]?Sci[-_ ]?RNA\\b'
sc_platform = '10[xX][-_ ]?genomic|10[xX].{0,25}(?:genomics|chromium)|chromium.{0,60}(?:RNA|gene expression|single cell)|\\bDrop[-_ ]?seq\\b|\\binDrop\\b|\\bCEL[-_ ]?seq|\\bMARS[-_ ]?seq\\b|\\bSeekOne\\b|\\bsnPATHOseq\\b|\\bEasy[-_ ]?Sci[-_ ]?RNA\\b|\\bBD Rhapsody\\b|\\bParse Biosciences\\b|\\bSPLiT[-_ ]?seq\\b'
bulk_protocol = 'TruSeq.{0,80}(?:RNA|mRNA)|NEBNext.{0,80}(?:Ultra|RNA)|NEB.{0,30}Ultra.{0,45}RNA|total RNA librar|RNA librar.{0,35}(?:Ribo[-_ ]?Zero|poly[-_ ]?A)|\\bHTG (?:EdgeSeq|Whole Transcriptome)|\\bmcSCRBseq\\b'
model_pattern = 'xenograft|\\bPDX\\b|\\bPDOX\\b|\\bPDO\\b|\\bMDO\\b|organoid|\\bcell[-_ ]?lines?\\b|\\bcultured\\b|\\bin vitro\\b|\\b(?:cell|tumou?r|melanoma|melanocyte) cultures?\\b|\\bnude mice\\b'
line_pattern = '\\b(?:MDA[ _-]?MB[ _-]?\\d+|MDA231|MCF[ _-]?7|HCT[ _-]?116|SW[ _-]?(?:480|620)|HT[ _-]?29|A549|HeLa|U2OS|DU[ _-]?145|PC[ _-]?3|LNCaP|C4[ _-]?2\\w*|HCC1806|SUM159\\w*|4T1|H1299|H1975|H358|HepG2|Huh7|U87[-_ ]?MG|786[-_ ]?O|ACHN|MIA[-_ ]?PaCa[-_ ]?2|PANC[-_ ]?1|T47D|BT(?:20|474|549)|TOV21G|SiHa|BHT101|A375|A2058|SKOV3|OVCAR\\d+|FaDu|HOS|MG63|HMLE|HMLER|LOVO|DLD1|SKBR3|WM239A?|113/6-4L|131/4-5B[12]|143B|MM\\.1S|OPM2|CAL27|CAL33|RM82|TC71|NCI[-_ ]?H\\d+)\\b'

The complete matching patterns are provided in screening/regex.md.

Data files

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 RAR 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
<accession>_expression.rar RAR 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 Processing settings in three columns: function, parameter, value
analysis/ Available differential expression, enrichment and other analysis results

Each expression RAR 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. files.csv lists file paths and sizes, and qc_fields.csv defines QC fields. Collection statistics are in statistics/.

Read the data

Read RDS files directly in R, or extract the RAR archive before reading its CSV files:

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 and code/README.md. Analysis scripts and their documentation are in code/. The original P2M.Rcode analysis scripts are mirrored in code/analysis/ with standardized filenames and unchanged contents.

Use of the data

Check the specimen labels and comparison definitions before analysis. Metastatic tissue samples and TCGA clinical M0/M1 groups represent different comparisons. Some datasets also contain normal, fluid or unclassified specimens. Sample counts are not necessarily counts of independent patients.

Some historical analysis tables lack complete input sample records; the dataset-specific limitations 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 for the scope.

Cite this repository and the original studies listed in sources.csv, and record the repository revision used in your analysis.

Downloads last month
289