Datasets:
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 31 new columns ({'PFS', 'cancer_stage', 'AE', 'therapy_info', 'total_reads', 'metacohort_id', 'OS', 'time_point', 'center_id', 'response', 'source_icd10', 'cancer_type', 'source_type', 'cohort', 'aligned_reads', 'sample_id', 'response_type', 'tumor_stage', 'PFS_event', 'therapy', 'age', 'OS_event', 'tumor_type', 'center_name', 'race', 'source_tumor', 'AE_type', 'sex', 'AE_severity', 'study_id', 'disease'}) and 7 missing columns ({'HLA-C_1', 'HLA-B_2', 'HLA-B_1', 'HLA-A_2', 'HLA-A_1', 'HLA-C_2', 'hla_source'}).
This happened while the csv dataset builder was generating data using
hf://datasets/isalgo/airr_tcga/metadata.tsv (at revision f163bffd3dfeec9e6d16db98a3265445d0592f74), ['hf://datasets/isalgo/airr_tcga@f163bffd3dfeec9e6d16db98a3265445d0592f74/metadata.hla.tsv', 'hf://datasets/isalgo/airr_tcga@f163bffd3dfeec9e6d16db98a3265445d0592f74/metadata.tsv']
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 1837, in _prepare_split_single
writer.write_table(table)
~~~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 765, 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 773, in _write_table
pa_table = table_cast(pa_table, self._schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2369, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2297, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
sample_id: string
subject_id: string
study_id: string
cohort: string
cancer_type: string
disease: string
tumor_type: string
source_type: string
source_tumor: string
source_icd10: string
sex: string
race: string
age: double
cancer_stage: string
tumor_stage: string
therapy: string
therapy_info: double
time_point: double
response: double
response_type: double
OS: double
OS_event: int64
PFS: string
PFS_event: double
AE: double
AE_type: double
AE_severity: double
total_reads: double
aligned_reads: double
center_id: string
center_name: string
metacohort_id: string
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 4045
to
{'subject_id': Value('string'), 'HLA-A_1': Value('string'), 'HLA-A_2': Value('string'), 'HLA-B_1': Value('string'), 'HLA-B_2': Value('string'), 'HLA-C_1': Value('string'), 'HLA-C_2': Value('string'), 'hla_source': 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 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 1683, 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 1839, 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 31 new columns ({'PFS', 'cancer_stage', 'AE', 'therapy_info', 'total_reads', 'metacohort_id', 'OS', 'time_point', 'center_id', 'response', 'source_icd10', 'cancer_type', 'source_type', 'cohort', 'aligned_reads', 'sample_id', 'response_type', 'tumor_stage', 'PFS_event', 'therapy', 'age', 'OS_event', 'tumor_type', 'center_name', 'race', 'source_tumor', 'AE_type', 'sex', 'AE_severity', 'study_id', 'disease'}) and 7 missing columns ({'HLA-C_1', 'HLA-B_2', 'HLA-B_1', 'HLA-A_2', 'HLA-A_1', 'HLA-C_2', 'hla_source'}).
This happened while the csv dataset builder was generating data using
hf://datasets/isalgo/airr_tcga/metadata.tsv (at revision f163bffd3dfeec9e6d16db98a3265445d0592f74), ['hf://datasets/isalgo/airr_tcga@f163bffd3dfeec9e6d16db98a3265445d0592f74/metadata.hla.tsv', 'hf://datasets/isalgo/airr_tcga@f163bffd3dfeec9e6d16db98a3265445d0592f74/metadata.tsv']
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.
subject_id string | HLA-A_1 string | HLA-A_2 string | HLA-B_1 string | HLA-B_2 string | HLA-C_1 string | HLA-C_2 string | hla_source string |
|---|---|---|---|---|---|---|---|
TCGA-02-0047 | HLA-A*02:01 | HLA-A*32:01 | HLA-B*15:01 | HLA-B*15:01 | HLA-C*03:03 | HLA-C*03:03 | panimmune |
TCGA-02-0055 | HLA-A*31:01 | HLA-A*11:01 | HLA-B*51:01 | HLA-B*55:01 | HLA-C*15:02 | HLA-C*03:03 | panimmune |
TCGA-02-2483 | HLA-A*11:01 | HLA-A*03:01 | HLA-B*07:02 | HLA-B*52:01 | HLA-C*07:02 | HLA-C*12:02 | panimmune |
TCGA-02-2485 | HLA-A*29:02 | HLA-A*03:01 | HLA-B*44:04 | HLA-B*49:01 | HLA-C*07:01 | HLA-C*16:01 | panimmune |
TCGA-02-2486 | HLA-A*03:01 | HLA-A*03:01 | HLA-B*07:02 | HLA-B*07:02 | HLA-C*07:02 | HLA-C*07:02 | panimmune |
TCGA-04-1331 | HLA-A*02:01 | HLA-A*01:01 | HLA-B*44:03 | HLA-B*57:01 | HLA-C*06:02 | HLA-C*16:01 | panimmune |
TCGA-04-1332 | HLA-A*03:01 | HLA-A*11:01 | HLA-B*35:01 | HLA-B*07:02 | HLA-C*04:01 | HLA-C*07:02 | panimmune |
TCGA-04-1338 | HLA-A*24:02 | HLA-A*26:01 | HLA-B*07:02 | HLA-B*38:01 | HLA-C*12:03 | HLA-C*07:02 | panimmune |
TCGA-04-1341 | HLA-A*03:01 | HLA-A*24:02 | HLA-B*35:01 | HLA-B*44:05 | HLA-C*02:02 | HLA-C*04:01 | panimmune |
TCGA-04-1343 | HLA-A*02:01 | HLA-A*03:01 | HLA-B*07:02 | HLA-B*18:01 | HLA-C*07:02 | HLA-C*05:01 | panimmune |
TCGA-04-1347 | HLA-A*01:01 | HLA-A*02:01 | HLA-B*44:02 | HLA-B*14:01 | HLA-C*05:01 | HLA-C*08:02 | panimmune |
TCGA-04-1350 | HLA-A*02:01 | HLA-A*01:01 | HLA-B*44:02 | HLA-B*08:01 | HLA-C*07:01 | HLA-C*07:01 | panimmune |
TCGA-04-1356 | HLA-A*31:01 | HLA-A*03:01 | HLA-B*51:01 | HLA-B*51:01 | HLA-C*16:01 | HLA-C*15:02 | panimmune |
TCGA-04-1357 | HLA-A*24:02 | HLA-A*03:01 | HLA-B*39:01 | HLA-B*07:02 | HLA-C*07:02 | HLA-C*12:03 | panimmune |
TCGA-04-1361 | HLA-A*02:01 | HLA-A*03:01 | HLA-B*08:01 | HLA-B*38:01 | HLA-C*07:01 | HLA-C*12:03 | panimmune |
TCGA-04-1362 | HLA-A*02:01 | HLA-A*68:01 | HLA-B*44:02 | HLA-B*18:01 | HLA-C*12:03 | HLA-C*07:04 | panimmune |
TCGA-04-1364 | HLA-A*03:01 | HLA-A*33:05 | HLA-B*14:02 | HLA-B*07:02 | HLA-C*08:02 | HLA-C*07:02 | panimmune |
TCGA-04-1365 | HLA-A*02:01 | HLA-A*01:01 | HLA-B*08:01 | HLA-B*08:01 | HLA-C*07:01 | HLA-C*07:01 | panimmune |
TCGA-04-1514 | HLA-A*02:01 | HLA-A*02:01 | HLA-B*44:03 | HLA-B*07:02 | HLA-C*16:01 | HLA-C*07:02 | panimmune |
TCGA-04-1519 | HLA-A*68:01 | HLA-A*26:01 | HLA-B*40:01 | HLA-B*38:01 | HLA-C*03:04 | HLA-C*12:03 | panimmune |
TCGA-04-1530 | HLA-A*31:01 | HLA-A*01:01 | HLA-B*08:01 | HLA-B*27:05 | HLA-C*01:02 | HLA-C*07:01 | panimmune |
TCGA-04-1536 | HLA-A*24:02 | HLA-A*11:01 | HLA-B*57:01 | HLA-B*48:01 | HLA-C*06:02 | HLA-C*08:01 | panimmune |
TCGA-04-1542 | HLA-A*31:01 | HLA-A*03:01 | HLA-B*44:02 | HLA-B*08:01 | HLA-C*07:01 | HLA-C*05:01 | panimmune |
TCGA-04-1648 | HLA-A*31:02 | HLA-A*02:01 | HLA-B*51:01 | HLA-B*18:01 | HLA-C*05:01 | HLA-C*15:02 | panimmune |
TCGA-04-1651 | HLA-A*01:01 | HLA-A*01:01 | HLA-B*08:01 | HLA-B*35:01 | HLA-C*04:01 | HLA-C*07:01 | panimmune |
TCGA-04-1655 | HLA-A*02:01 | HLA-A*11:01 | HLA-B*40:02 | HLA-B*40:02 | HLA-C*02:02 | HLA-C*15:02 | panimmune |
TCGA-05-4244 | HLA-A*02:02 | HLA-A*01:01 | HLA-B*41:01 | HLA-B*52:01 | HLA-C*17:01 | HLA-C*12:02 | panimmune |
TCGA-05-4249 | HLA-A*30:01 | HLA-A*32:01 | HLA-B*15:01 | HLA-B*55:01 | HLA-C*03:03 | HLA-C*03:03 | panimmune |
TCGA-05-4250 | HLA-A*11:01 | HLA-A*01:01 | HLA-B*57:01 | HLA-B*45:01 | HLA-C*06:02 | HLA-C*06:02 | panimmune |
TCGA-05-4382 | HLA-A*11:01 | HLA-A*02:01 | HLA-B*07:02 | HLA-B*44:02 | HLA-C*07:04 | HLA-C*07:02 | panimmune |
TCGA-05-4384 | HLA-A*23:01 | HLA-A*02:01 | HLA-B*39:06 | HLA-B*37:01 | HLA-C*06:02 | HLA-C*12:03 | panimmune |
TCGA-05-4389 | HLA-A*02:01 | HLA-A*32:01 | HLA-B*44:03 | HLA-B*15:01 | HLA-C*16:01 | HLA-C*03:04 | panimmune |
TCGA-05-4390 | HLA-A*02:01 | HLA-A*01:01 | HLA-B*08:01 | HLA-B*07:02 | HLA-C*07:02 | HLA-C*07:01 | panimmune |
TCGA-05-4395 | HLA-A*02:01 | HLA-A*03:01 | HLA-B*51:01 | HLA-B*35:01 | HLA-C*04:01 | HLA-C*01:02 | panimmune |
TCGA-05-4396 | HLA-A*02:01 | HLA-A*01:01 | HLA-B*08:01 | HLA-B*40:01 | HLA-C*07:01 | HLA-C*03:04 | panimmune |
TCGA-05-4397 | HLA-A*02:01 | HLA-A*01:01 | HLA-B*08:01 | HLA-B*40:01 | HLA-C*07:01 | HLA-C*03:04 | panimmune |
TCGA-05-4398 | HLA-A*02:01 | HLA-A*01:01 | HLA-B*27:05 | HLA-B*44:02 | HLA-C*06:02 | HLA-C*02:02 | panimmune |
TCGA-05-4402 | HLA-A*02:01 | HLA-A*29:02 | HLA-B*39:01 | HLA-B*44:03 | HLA-C*07:02 | HLA-C*16:01 | panimmune |
TCGA-05-4403 | HLA-A*30:02 | HLA-A*01:01 | HLA-B*08:01 | HLA-B*18:01 | HLA-C*07:01 | HLA-C*05:01 | panimmune |
TCGA-05-4405 | HLA-A*68:01 | HLA-A*03:01 | HLA-B*35:01 | HLA-B*51:01 | HLA-C*04:01 | HLA-C*15:02 | panimmune |
TCGA-05-4410 | HLA-A*24:02 | HLA-A*01:01 | HLA-B*08:01 | HLA-B*08:01 | HLA-C*07:01 | HLA-C*07:01 | panimmune |
TCGA-05-4415 | HLA-A*26:08 | HLA-A*02:01 | HLA-B*27:02 | HLA-B*44:02 | HLA-C*05:01 | HLA-C*02:02 | panimmune |
TCGA-05-4417 | HLA-A*31:01 | HLA-A*26:01 | HLA-B*39:01 | HLA-B*07:02 | HLA-C*07:02 | HLA-C*12:03 | panimmune |
TCGA-05-4418 | HLA-A*01:01 | HLA-A*32:01 | HLA-B*39:06 | HLA-B*37:01 | HLA-C*07:02 | HLA-C*06:02 | panimmune |
TCGA-05-4420 | HLA-A*01:01 | HLA-A*03:01 | HLA-B*07:02 | HLA-B*57:01 | HLA-C*07:02 | HLA-C*06:02 | panimmune |
TCGA-05-4422 | HLA-A*24:02 | HLA-A*25:01 | HLA-B*18:01 | HLA-B*15:01 | HLA-C*03:03 | HLA-C*12:03 | panimmune |
TCGA-05-4424 | HLA-A*24:02 | HLA-A*02:01 | HLA-B*44:02 | HLA-B*15:01 | HLA-C*05:01 | HLA-C*03:03 | panimmune |
TCGA-05-4425 | HLA-A*24:02 | HLA-A*03:01 | HLA-B*07:02 | HLA-B*44:02 | HLA-C*07:02 | HLA-C*05:01 | panimmune |
TCGA-05-4426 | HLA-A*11:01 | HLA-A*03:01 | HLA-B*14:02 | HLA-B*07:02 | HLA-C*07:02 | HLA-C*08:02 | panimmune |
TCGA-05-4427 | HLA-A*02:01 | HLA-A*01:01 | HLA-B*35:01 | HLA-B*15:01 | HLA-C*04:01 | HLA-C*03:04 | panimmune |
TCGA-05-4430 | HLA-A*68:01 | HLA-A*33:01 | HLA-B*14:02 | HLA-B*27:05 | HLA-C*08:02 | HLA-C*01:02 | panimmune |
TCGA-05-4432 | HLA-A*24:02 | HLA-A*25:01 | HLA-B*15:01 | HLA-B*18:01 | HLA-C*03:03 | HLA-C*12:03 | panimmune |
TCGA-05-4433 | HLA-A*02:01 | HLA-A*03:01 | HLA-B*40:01 | HLA-B*07:02 | HLA-C*07:02 | HLA-C*03:04 | panimmune |
TCGA-05-4434 | HLA-A*01:01 | HLA-A*03:01 | HLA-B*14:02 | HLA-B*35:01 | HLA-C*04:01 | HLA-C*08:02 | panimmune |
TCGA-05-5420 | HLA-A*01:01 | HLA-A*03:01 | HLA-B*08:01 | HLA-B*07:02 | HLA-C*07:02 | HLA-C*07:01 | panimmune |
TCGA-05-5423 | HLA-A*29:02 | HLA-A*02:01 | HLA-B*07:02 | HLA-B*44:03 | HLA-C*07:02 | HLA-C*16:01 | panimmune |
TCGA-05-5425 | HLA-A*24:02 | HLA-A*01:01 | HLA-B*08:01 | HLA-B*14:02 | HLA-C*07:01 | HLA-C*08:02 | panimmune |
TCGA-05-5428 | HLA-A*24:02 | HLA-A*23:01 | HLA-B*51:01 | HLA-B*44:03 | HLA-C*03:03 | HLA-C*04:01 | panimmune |
TCGA-05-5429 | HLA-A*23:01 | HLA-A*02:01 | HLA-B*07:02 | HLA-B*44:03 | HLA-C*07:02 | HLA-C*04:01 | panimmune |
TCGA-05-5715 | HLA-A*24:02 | HLA-A*01:01 | HLA-B*15:01 | HLA-B*07:02 | HLA-C*07:02 | HLA-C*06:02 | panimmune |
TCGA-06-0125 | HLA-A*11:01 | HLA-A*25:01 | HLA-B*52:01 | HLA-B*40:02 | HLA-C*12:02 | HLA-C*02:02 | panimmune |
TCGA-06-0129 | HLA-A*01:01 | HLA-A*24:02 | HLA-B*08:01 | HLA-B*52:01 | HLA-C*07:01 | HLA-C*12:02 | panimmune |
TCGA-06-0130 | HLA-A*02:01 | HLA-A*25:01 | HLA-B*08:01 | HLA-B*18:01 | HLA-C*07:01 | HLA-C*12:03 | panimmune |
TCGA-06-0132 | HLA-A*02:01 | HLA-A*01:01 | HLA-B*08:01 | HLA-B*49:01 | HLA-C*07:01 | HLA-C*07:01 | panimmune |
TCGA-06-0138 | HLA-A*02:01 | HLA-A*01:01 | HLA-B*49:01 | HLA-B*35:01 | HLA-C*07:01 | HLA-C*04:01 | panimmune |
TCGA-06-0139 | HLA-A*02:01 | HLA-A*02:01 | HLA-B*07:02 | HLA-B*51:08 | HLA-C*07:02 | HLA-C*16:02 | panimmune |
TCGA-06-0141 | HLA-A*31:01 | HLA-A*03:01 | HLA-B*40:01 | HLA-B*18:01 | HLA-C*07:01 | HLA-C*03:04 | panimmune |
TCGA-06-0152 | HLA-A*01:01 | HLA-A*03:01 | HLA-B*08:01 | HLA-B*57:01 | HLA-C*07:01 | HLA-C*06:02 | optitype |
TCGA-06-0156 | HLA-A*68:02 | HLA-A*02:01 | HLA-B*14:02 | HLA-B*15:01 | HLA-C*03:04 | HLA-C*08:02 | panimmune |
TCGA-06-0157 | HLA-A*02:01 | HLA-A*03:01 | HLA-B*35:01 | HLA-B*44:02 | HLA-C*05:01 | HLA-C*02:02 | panimmune |
TCGA-06-0158 | HLA-A*29:01 | HLA-A*26:01 | HLA-B*38:01 | HLA-B*57:01 | HLA-C*07:01 | HLA-C*12:03 | panimmune |
TCGA-06-0168 | HLA-A*30:01 | HLA-A*03:01 | HLA-B*44:03 | HLA-B*35:01 | HLA-C*04:01 | HLA-C*04:01 | panimmune |
TCGA-06-0174 | HLA-A*02:01 | HLA-A*02:01 | HLA-B*40:01 | HLA-B*27:05 | HLA-C*03:04 | HLA-C*02:02 | panimmune |
TCGA-06-0178 | HLA-A*30:02 | HLA-A*29:02 | HLA-B*44:03 | HLA-B*40:01 | HLA-C*03:04 | HLA-C*16:01 | panimmune |
TCGA-06-0184 | HLA-A*24:02 | HLA-A*26:01 | HLA-B*35:01 | HLA-B*38:01 | HLA-C*04:01 | HLA-C*12:03 | panimmune |
TCGA-06-0187 | HLA-A*11:01 | HLA-A*02:01 | HLA-B*50:01 | HLA-B*07:02 | HLA-C*07:02 | HLA-C*06:02 | panimmune |
TCGA-06-0190 | HLA-A*11:01 | HLA-A*01:01 | HLA-B*08:01 | HLA-B*44:02 | HLA-C*07:01 | HLA-C*05:01 | panimmune |
TCGA-06-0210 | HLA-A*24:02 | HLA-A*03:01 | HLA-B*38:01 | HLA-B*27:02 | HLA-C*12:03 | HLA-C*02:02 | panimmune |
TCGA-06-0211 | HLA-A*68:01 | HLA-A*24:02 | HLA-B*35:03 | HLA-B*07:02 | HLA-C*07:02 | HLA-C*04:01 | panimmune |
TCGA-06-0219 | HLA-A*02:01 | HLA-A*02:01 | HLA-B*35:02 | HLA-B*07:02 | HLA-C*07:02 | HLA-C*04:01 | panimmune |
TCGA-06-0221 | HLA-A*33:01 | HLA-A*66:01 | HLA-B*14:02 | HLA-B*38:01 | HLA-C*12:03 | HLA-C*08:02 | optitype |
TCGA-06-0238 | HLA-A*01:01 | HLA-A*32:01 | HLA-B*40:01 | HLA-B*57:01 | HLA-C*03:04 | HLA-C*06:02 | panimmune |
TCGA-06-0644 | HLA-A*68:01 | HLA-A*02:01 | HLA-B*44:02 | HLA-B*58:02 | HLA-C*06:02 | HLA-C*05:01 | panimmune |
TCGA-06-0645 | HLA-A*02:01 | HLA-A*03:01 | HLA-B*40:02 | HLA-B*15:01 | HLA-C*03:03 | HLA-C*02:02 | panimmune |
TCGA-06-0646 | HLA-A*30:02 | HLA-A*02:01 | HLA-B*18:01 | HLA-B*18:01 | HLA-C*07:01 | HLA-C*05:01 | panimmune |
TCGA-06-0649 | HLA-A*68:01 | HLA-A*02:02 | HLA-B*53:01 | HLA-B*52:01 | HLA-C*06:02 | HLA-C*16:01 | panimmune |
TCGA-06-0686 | HLA-A*02:01 | HLA-A*02:01 | HLA-B*40:01 | HLA-B*15:01 | HLA-C*03:67 | HLA-C*03:04 | panimmune |
TCGA-06-0743 | HLA-A*01:01 | HLA-A*24:02 | HLA-B*15:01 | HLA-B*57:01 | HLA-C*01:02 | HLA-C*06:02 | panimmune |
TCGA-06-0744 | HLA-A*11:01 | HLA-A*02:01 | HLA-B*15:17 | HLA-B*27:05 | HLA-C*07:01 | HLA-C*01:02 | panimmune |
TCGA-06-0745 | HLA-A*29:01 | HLA-A*24:02 | HLA-B*38:01 | HLA-B*51:08 | HLA-C*16:02 | HLA-C*12:03 | panimmune |
TCGA-06-0747 | HLA-A*01:01 | HLA-A*01:01 | HLA-B*40:02 | HLA-B*39:01 | HLA-C*02:02 | HLA-C*02:02 | panimmune |
TCGA-06-0749 | HLA-A*68:02 | HLA-A*25:01 | HLA-B*39:01 | HLA-B*50:01 | HLA-C*06:02 | HLA-C*12:03 | panimmune |
TCGA-06-0750 | HLA-A*11:01 | HLA-A*33:01 | HLA-B*35:01 | HLA-B*44:03 | HLA-C*04:01 | HLA-C*04:01 | panimmune |
TCGA-06-0878 | HLA-A*68:01 | HLA-A*02:01 | HLA-B*40:01 | HLA-B*07:02 | HLA-C*07:02 | HLA-C*03:04 | panimmune |
TCGA-06-0882 | HLA-A*01:01 | HLA-A*03:01 | HLA-B*08:01 | HLA-B*35:01 | HLA-C*07:01 | HLA-C*04:01 | panimmune |
TCGA-06-1804 | HLA-A*33:01 | HLA-A*32:01 | HLA-B*08:01 | HLA-B*39:01 | HLA-C*12:03 | HLA-C*07:01 | panimmune |
TCGA-06-2557 | HLA-A*31:01 | HLA-A*68:01 | HLA-B*15:04 | HLA-B*44:03 | HLA-C*18:01 | HLA-C*03:03 | panimmune |
TCGA-06-2558 | HLA-A*32:01 | HLA-A*03:01 | HLA-B*08:01 | HLA-B*35:03 | HLA-C*07:02 | HLA-C*12:03 | panimmune |
TCGA-06-2559 | HLA-A*11:01 | HLA-A*03:02 | HLA-B*52:01 | HLA-B*44:02 | HLA-C*12:02 | HLA-C*16:04 | panimmune |
TCGA-06-2561 | HLA-A*24:07 | HLA-A*23:01 | HLA-B*07:02 | HLA-B*15:02 | HLA-C*08:01 | HLA-C*07:02 | panimmune |
TCGA — tumour AIRR (TCR/BCR) repertoires
Adaptive immune receptor (TCR + BCR) repertoires extracted from TCGA tumour bulk RNA-seq, for 9,591 samples spanning 33 cancer types, with matched clinical / demographic metadata and — critically — the total raw sequencing depth of each sample. Built as a benchmark for sample-level (repertoire) analysis in solid tumours, where the recovered receptor content conflates sequencing depth with immune infiltration (TIL fraction) and must be handled as such.
The results shown here are in part based upon data generated by the TCGA Research Network (https://www.cancer.gov/tcga). AIRR rearrangements were extracted from tumour RNA-seq; for the RNA-seq receptor-profiling approach see Bolotin DA, Poslavsky S, Davydov AN, et al. "Antigen receptor repertoire profiling from RNA-seq data." Nature Biotechnology 2017;35(10):908–911. DOI: 10.1038/nbt.3979 · PMID 29020005.
Contents
| File | What |
|---|---|
samples.tar.gz |
9,591 per-sample AIRR tables, samples/<sample_id>.tsv (git-LFS) |
metadata.tsv |
one row per sample, keyed by sample_id — clinical, demographic, read counts |
metadata.hla.tsv |
one row per donor, keyed by subject_id — HLA class-I typing (OptiType) |
load.py |
minimal huggingface_hub + pandas bootstrap loader |
SOURCES.md |
provenance of every field (source file, fetch, experimental vs derived) |
Per-sample AIRR tables (samples/<sample_id>.tsv)
Tab-separated, AIRR Rearrangement field names, one clonotype per row:
| column | meaning |
|---|---|
locus |
IGH/IGK/IGL/TRA/TRB/TRG/TRD |
v_call, j_call, c_call |
IMGT V / J / constant (isotype) gene calls |
junction, junction_aa |
junction nucleotide / amino-acid sequence (conserved anchors included) |
duplicate_count |
number of reads supporting the clonotype (RNA-seq abundance) |
sample_id |
back-reference to the metadata key |
The dataset is immunoglobulin-dominant (as expected for tumour RNA-seq, where the plasma-cell / B-cell infiltrate contributes most receptor reads):
| locus | clonotypes | share |
|---|---|---|
| IGK | 9,036,576 | 44.4% |
| IGL | 5,580,569 | 27.4% |
| IGH | 5,045,108 | 24.8% |
| TRB | 352,641 | 1.7% |
| TRA | 306,824 | 1.5% |
| TRG | 23,243 | 0.1% |
| TRD | 5,133 | 0.03% |
Per sample: median 634, mean 2,121, max 52,388 clonotypes (all loci pooled) — the low-coverage regime typical of bulk RNA-seq, 20,350,094 clonotypes total.
metadata.tsv (one row per sample)
Key sample_id (TCGA-XX-XXXX.N) matches the per-sample table names exactly. Columns:
- identity —
sample_id,subject_id(case),study_id/cohort(e.g.TCGA-GBM),center_id,center_name,metacohort_id. - phenotype —
cancer_type,disease,tumor_type,source_type,source_tumor,source_icd10,sex,race,age,cancer_stage,tumor_stage,therapy,therapy_info,time_point,response,response_type,OS,OS_event,PFS,PFS_event,AE,AE_type,AE_severity. - sequencing depth —
total_reads,aligned_reads(see below).
Read counts — total (raw) vs aligned
total_reads is the total number of reads in the raw sequencing library (all reads, mapped
and unmapped) — not the number of reads mapped to a receptor. It is the read total of the
GDC rna_seq.genomic.gdc_realn.bam (Total_Reads), verified to equal tcga_meta_slim.total_reads
on matched samples (median ratio 1.000). aligned_reads is the genome-aligned subset
(Aligned_Reads) — provided as a bonus.
This distinction matters in tumours: the recovered receptor content (Σ duplicate_count, or clone
count) mixes sequencing depth with immune infiltration. total_reads is the technical
denominator that lets you separate them — e.g. the receptor read fraction
Σ duplicate_count / total_reads is a depth-normalised infiltration proxy, whereas
duplicate_count alone is not.
metadata.hla.tsv (one row per donor)
Germline HLA class-I typing (4-digit A/B/C) from TCGA RNA-seq, keyed by subject_id (the
donor — HLA is germline, so it is per-donor not per-sample). Join to metadata.tsv on
subject_id.
| column | meaning |
|---|---|
subject_id |
donor barcode TCGA-XX-XXXX — matches metadata.tsv subject_id |
HLA-A_1, HLA-A_2, HLA-B_1, HLA-B_2, HLA-C_1, HLA-C_2 |
the two alleles per locus, e.g. HLA-A*02:01 |
hla_source |
which call set the row came from — panimmune or optitype |
Two OptiType-based call sets are unioned to maximise coverage: the curated TCGA PanImmune HLA table (primary; Thorsson et al. 2018) plus the raw OptiType 2017 call set (Szolek et al. 2014) filling donors PanImmune lacks. Both derive from OptiType, so they are methodologically consistent. Provenance:
- PanImmune (
hla_source = panimmune, 7,649 donors) — Thorsson V, Gibbs DL, Brown SD, et al. "The Immune Landscape of Cancer." Immunity 2018;48(4):812–830.e14. DOI 10.1016/j.immuni.2018.03.023 · PMID 29628290; via the TCGA PanImmune resource.- OptiType (
hla_source = optitype, 1,474 donors) — Szolek A, Schubert B, Mohr C, et al. "OptiType: precision HLA typing from next-generation sequencing data." Bioinformatics 2014;30(23):3310–3316. DOI 10.1093/bioinformatics/btu548 · PMID 25143287.
Coverage: 9,123 / 9,450 donors carry HLA (9,263 / 9,591 samples); 187 donors are in neither call set.
Coverage / caveats
- All 9,591 AIRR samples are keyed in
metadata.tsv. total_readspresent for 9,549 / 9,591 (99.6%); 42 samples lack a matchable GDC BAM. Wheretcga_meta_slimleft it blank (556 samples), it was recovered from the GDC read-count table for the 514 single-BAM cases (unambiguous).- Clinical annotation present for 9,104 / 9,591 (95%); 487 samples (mostly
.2second aliquots) haveNAclinical fields but retain demographics + read counts. aligned_readspresent for 9,358 / 9,591 (97.6%).- HLA class-I present for 9,123 / 9,450 donors (96.5%,
metadata.hla.tsv) → 9,263 / 9,591 samples (PanImmune ∪ OptiType); 187 donors are in neither call set.
Usage
from load import load_metadata, load_hla, load_sample, iter_samples
md = load_metadata() # DataFrame, one row per sample
hla = load_hla() # one row per donor (subject_id)
md = md.merge(hla, on="subject_id", how="left") # attach HLA to each sample
df = load_sample(md.sample_id.iloc[0]) # one sample's AIRR clonotypes
for sample_id, clonotypes in iter_samples(): # stream all 9,591
...
License
TCGA-derived. Use is subject to the NIH Genomic Data Sharing Policy and the TCGA data-use terms; the sequences here are de-identified RNA-derived receptor clonotypes and standardised clinical annotation. Cite the TCGA Research Network as above.
- Downloads last month
- 22