gabrielaltay commited on
Commit
c334e9e
·
verified ·
1 Parent(s): 7ba8e1e

Preserve full GDC biospecimen hierarchy (samples/portions/analytes/aliquots); add TcgaHfPatient pydantic reference impl

Browse files
Files changed (3) hide show
  1. README.md +15 -1
  2. TCGA-CHOL/train.parquet +2 -2
  3. TCGA-DLBC/train.parquet +2 -2
README.md CHANGED
@@ -25,7 +25,7 @@ configs:
25
  One HuggingFace subset per TCGA project; one row per patient.
26
 
27
  - **Projects included:** `TCGA-CHOL`, `TCGA-DLBC`
28
- - **Generated:** 2026-05-04 03:00:27 UTC
29
  - **Source:** NCI GDC `/cases` endpoint, open-access tier only.
30
  - **GDC data release:** Data Release 45.0 - December 04, 2025
31
 
@@ -77,6 +77,20 @@ Normal`). Each variant carries the aliquot UUIDs of both members of the pair.
77
  unambiguous.
78
  - `experimental_strategy`: the underlying assay (e.g. *WXS*, *RNA-Seq*).
79
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
  **Authoritative GDC references:**
81
  - [Data dictionary][gdc-dict] (every entity + field definition)
82
  - [Biospecimen Encyclopedia](https://docs.gdc.cancer.gov/Encyclopedia/pages/Biospecimen/)
 
25
  One HuggingFace subset per TCGA project; one row per patient.
26
 
27
  - **Projects included:** `TCGA-CHOL`, `TCGA-DLBC`
28
+ - **Generated:** 2026-05-04 03:21:55 UTC
29
  - **Source:** NCI GDC `/cases` endpoint, open-access tier only.
30
  - **GDC data release:** Data Release 45.0 - December 04, 2025
31
 
 
77
  unambiguous.
78
  - `experimental_strategy`: the underlying assay (e.g. *WXS*, *RNA-Seq*).
79
 
80
+ **Reference Python implementation:** the `tcga2hf` package on GitHub ships a
81
+ fully-typed pydantic `TcgaHfPatient` model that mirrors this schema and adds
82
+ convenience joins (tumor/normal pairs, mutations-by-gene, expression-by-gene,
83
+ longitudinal timeline). Useful both as a loader and as documentation for what
84
+ the data means.
85
+
86
+ ```python
87
+ import pyarrow.parquet as pq
88
+ from tcga2hf.models import TcgaHfPatient
89
+
90
+ t = pq.read_table("TCGA-CHOL/train.parquet")
91
+ patients = [TcgaHfPatient.model_validate(r) for r in t.to_pylist()]
92
+ ```
93
+
94
  **Authoritative GDC references:**
95
  - [Data dictionary][gdc-dict] (every entity + field definition)
96
  - [Biospecimen Encyclopedia](https://docs.gdc.cancer.gov/Encyclopedia/pages/Biospecimen/)
TCGA-CHOL/train.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:fafc0ffd0051d84022e214edfa7d95ebed2c5b44dfd1943ea23dee229d5fee9a
3
- size 51274704
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b261c92f2a1d02c1412cbb1b9fdc381c8a9c9e0e4967ee93f1547f1b8702da1f
3
+ size 51303188
TCGA-DLBC/train.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:019961cbfc1a65d1009f423ae69a61888bc5bf8a73e64e0d1910ff01ee1166b1
3
- size 57738136
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c08c0c1eaae44aa1fc0de45a6c6002b1f99a0ebdfe321081176eea16afc92002
3
+ size 57772197