Metadata coverage
Where the values come from
Downloads
Query this study
-- DuckDB 1.5+: attach the whole release (read-only, fetches only what a query needs)
INSTALL ducklake; LOAD ducklake; INSTALL httpfs; LOAD httpfs;
ATTACH 'https://cmgd-public.cancerdatasci.org/cmgd_mpa4.2-2.3.0/2026-10-20/catalog.ducklake' AS cmgd (
TYPE DUCKLAKE, DATA_PATH 'https://cmgd-public.cancerdatasci.org/cmgd_mpa4.2-2.3.0/2026-10-20/', OVERRIDE_DATA_PATH, READ_ONLY);
SELECT study_name, count(*) AS n_samples FROM cmgd.samples GROUP BY 1 ORDER BY 1;
-- Top 5 MetaPhlAn species of the sample holding a run accession, straight from Parquet.
-- run_ids / run_accessions are ';'-joined text: split them to match one run.
SELECT q.sample_key, m.clade_name, m.relative_abundance
FROM read_parquet('https://cmgd-public.cancerdatasci.org/cmgd_mpa4.2-2.3.0/2026-10-20/tables/taxonomic_profile_metaphlan/data/part-00000.parquet') m
JOIN read_parquet('https://cmgd-public.cancerdatasci.org/cmgd_mpa4.2-2.3.0/2026-10-20/tables/qc_metrics/data/part-00000.parquet') q USING (sample_key)
WHERE list_contains(string_split(q.run_ids, ';'), 'ERR866581')
AND m.rank = 'species' AND m.data_type = 'full_data' AND m.humann_bundle IS NULL
ORDER BY m.relative_abundance DESC LIMIT 5;
-- A study's samples: readset id, runs, BioSample, BioProject
SELECT sample_key, run_accessions, biosample, bioproject
FROM read_parquet('https://cmgd-public.cancerdatasci.org/cmgd_mpa4.2-2.3.0/2026-10-20/tables/samples/data/part-00000.parquet')
WHERE study_name = 'DavidLA_2015';
-- A study's harmonized metadata, with the source and source release of each value
SELECT sample_key, field, value, source, release, route, confidence
FROM read_parquet('https://cmgd-public.cancerdatasci.org/cmgd_mpa4.2-2.3.0/2026-10-20/tables/sample_metadata_harmonized/data/part-00000.parquet')
WHERE study_name = 'DavidLA_2015' ORDER BY sample_key, field;
Samples