The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
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 5 new columns ({'accession', 'cells', 'release_article_label', 'source_label', 'identical'}) and 2 missing columns ({'label', 'lineage'}).
This happened while the csv dataset builder was generating data using
hf://datasets/kmmuleelab/P2Mdb/code/validation/annotations/annotation_mapping.csv (at revision 9d7aecaa66b77c5f87df13bf1db54d893bc69efb), ['hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/annotations/annotation_lineages.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/annotations/annotation_mapping.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/annotations/results/GSE188737.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/annotations/results/by_lineage.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/annotations/results/concordance.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/annotations/results/crosstabs.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/annotations/results/dictionary.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/annotations/results/eligibility.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/annotations/results/mapping.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/annotations/results/provenance.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/annotations/results/summary.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/bulk/bulk_expression.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/bulk/bulk_integrity.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/bulk/bulk_integrity_summary.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/bulk/bulk_method.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/bulk/bulk_reproduction.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/bulk/bulk_samples.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/downstream/bulk_correlations.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/downstream/bulk_de_sensitivity.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/downstream/cellchat_stability.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/downstream/enrichment_reproduction.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/downstream/ppi_reference_compatibility.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/downstream/single_de_sensitivity.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/downstream/state_gene_coverage.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/downstream/survival_diagnostics.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/downstream/trajectory_output_coverage.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure1/analysis_categories.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure1/cancer_counts.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure1/cancer_mapping.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure1/datasets.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure1/role_counts.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure1/search_counts.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure2/annotation_concordance.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure2/single_count_summary.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure2/single_datasets.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure2/single_marker_plot.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure2/single_markers.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure2/single_mito_summary.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure2/single_qc.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure2/single_umap.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure3/coverage.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure3/example_expression.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure3/example_samples.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure3/inputs.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure3/integrity_summary.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure3/matrix_qc.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure3/platforms.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure3/reproduction.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure3/reproduction_summary.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure3/sample_qc.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/markers/results/annotation_coverage.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/markers/results/annotation_pairs.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/markers/results/markers.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/parameters.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/qc/results/tcga_scale.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/survival/literature_expression_checks.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/survival/reproduction.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/survival/summary.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 1856, in _prepare_split_single
writer.write_table(table)
~~~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 811, 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 822, in _write_table
pa_table = table_cast(pa_table, self._schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2381, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2309, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
accession: string
source_label: string
release_article_label: string
cells: int64
identical: bool
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 882
to
{'label': Value('string'), 'lineage': Value('string')}
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 1379, 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 956, 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 1702, 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 1858, 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 5 new columns ({'accession', 'cells', 'release_article_label', 'source_label', 'identical'}) and 2 missing columns ({'label', 'lineage'}).
This happened while the csv dataset builder was generating data using
hf://datasets/kmmuleelab/P2Mdb/code/validation/annotations/annotation_mapping.csv (at revision 9d7aecaa66b77c5f87df13bf1db54d893bc69efb), ['hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/annotations/annotation_lineages.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/annotations/annotation_mapping.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/annotations/results/GSE188737.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/annotations/results/by_lineage.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/annotations/results/concordance.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/annotations/results/crosstabs.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/annotations/results/dictionary.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/annotations/results/eligibility.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/annotations/results/mapping.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/annotations/results/provenance.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/annotations/results/summary.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/bulk/bulk_expression.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/bulk/bulk_integrity.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/bulk/bulk_integrity_summary.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/bulk/bulk_method.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/bulk/bulk_reproduction.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/bulk/bulk_samples.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/downstream/bulk_correlations.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/downstream/bulk_de_sensitivity.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/downstream/cellchat_stability.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/downstream/enrichment_reproduction.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/downstream/ppi_reference_compatibility.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/downstream/single_de_sensitivity.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/downstream/state_gene_coverage.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/downstream/survival_diagnostics.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/downstream/trajectory_output_coverage.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure1/analysis_categories.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure1/cancer_counts.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure1/cancer_mapping.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure1/datasets.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure1/role_counts.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure1/search_counts.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure2/annotation_concordance.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure2/single_count_summary.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure2/single_datasets.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure2/single_marker_plot.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure2/single_markers.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure2/single_mito_summary.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure2/single_qc.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure2/single_umap.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure3/coverage.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure3/example_expression.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure3/example_samples.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure3/inputs.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure3/integrity_summary.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure3/matrix_qc.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure3/platforms.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure3/reproduction.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure3/reproduction_summary.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/figures/data/figure3/sample_qc.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/markers/results/annotation_coverage.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/markers/results/annotation_pairs.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/markers/results/markers.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/parameters.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/qc/results/tcga_scale.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/survival/literature_expression_checks.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/survival/reproduction.csv', 'hf://datasets/kmmuleelab/P2Mdb@9d7aecaa66b77c5f87df13bf1db54d893bc69efb/code/validation/survival/summary.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.
label string | lineage string |
|---|---|
T cells | T/NK |
T lymphocytes | T/NK |
CD4 T cell | T/NK |
CD8 T cell | T/NK |
CD4+ T cell | T/NK |
CD8+ T cell | T/NK |
NK cell | T/NK |
NK cells | T/NK |
NK_cell | T/NK |
Natural Killer cell | T/NK |
Natural killer cells | T/NK |
Natural killer cells | T/NK |
Natural Killer T cell | T/NK |
NK/gd T cell | T/NK |
gdT cell | T/NK |
Type 3 innate lymphoid cell | T/NK |
CD8+ NKT-like cells | T/NK |
CD8+ Natural Killer T cell-like cells | T/NK |
Naive CD4+ T cells | T/NK |
Naive CD8+ T cells | T/NK |
Memory CD4+ T cells | T/NK |
Memory CD8+ T cells | T/NK |
B cell | B/Plasma |
B cells | B/Plasma |
BCell | B/Plasma |
B lymphocytes | B/Plasma |
B_Plasma.cells | B/Plasma |
Plasma cell | B/Plasma |
Plasma cells | B/Plasma |
Plasma B cells | B/Plasma |
Pre-B cells | B/Plasma |
Naive B cells | B/Plasma |
Myeloid cells | Myeloid/Mast |
Macrophage | Myeloid/Mast |
Macrophages | Myeloid/Mast |
Tumor Associated Macrophages | Myeloid/Mast |
Monocyte | Myeloid/Mast |
Classical Monocytes | Myeloid/Mast |
Non-classical monocytes | Myeloid/Mast |
Intermediate monocytes | Myeloid/Mast |
Mast cell | Myeloid/Mast |
Mast cells | Myeloid/Mast |
DC | Myeloid/Mast |
cDC | Myeloid/Mast |
pDC | Myeloid/Mast |
Dendritic cell | Myeloid/Mast |
Dendritic cells | Myeloid/Mast |
Mature dendritic cell | Myeloid/Mast |
Plasmacytoid dendritic cell | Myeloid/Mast |
Plasmacytoid Dendritic cells | Myeloid/Mast |
Myeloid Dendritic cells | Myeloid/Mast |
Neutrophils | Myeloid/Mast |
Basophils | Myeloid/Mast |
Epithelial | Epithelial/Tumor |
Epithelial cells | Epithelial/Tumor |
Malignant cells | Epithelial/Tumor |
Cancer cells | Epithelial/Tumor |
Salivary | Epithelial/Tumor |
Salivary gland | Epithelial/Tumor |
Fibroblast | Stromal/Muscle |
Fibroblasts | Stromal/Muscle |
Cancer Associated Fibroblasts | Stromal/Muscle |
Myofibroblast | Stromal/Muscle |
Myocytes | Stromal/Muscle |
Smooth muscle cells | Stromal/Muscle |
Endothelial | Endothelial |
Endothelial cell | Endothelial |
Endothelial cells | Endothelial |
null | null |
null | null |
null | null |
null | null |
null | null |
null | null |
null | null |
null | null |
null | null |
null | null |
null | null |
null | null |
null | null |
null | null |
null | null |
null | null |
null | null |
null | null |
null | null |
null | null |
null | null |
null | null |
null | null |
null | null |
null | null |
null | null |
null | null |
null | null |
null | null |
null | null |
null | null |
null | null |
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.
Figure 1. Overview of the transcriptomic collection, cancer coverage, deposited records, specimen roles and data access.
Figure 1: Overview · Figure 2: Literature Concordance · Figure 3: Case Study · Figure legends
The complete search queries and accession-level GEO screening table, 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 |
<accession>_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:
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
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 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/. GEO survival files retain
their source-specific endpoints and historical subsets; the TCGA update does not
assert that those GEO analyses were reproduced.
- Downloads last month
- 12,224
