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 2 new columns ({'otu_id', 'dna_sequence'}) and 5 missing columns ({'patient_id', 'sid', 'label', 'allergen_class', 'country'}).

This happened while the csv dataset builder was generating data using

hf://datasets/hugging-science/AI4FA-Diabimmune/processed/dna_sequences/Month_1/SRS1719092.csv (at revision 9f02bd07ed48e03f09f1b144dfcdcfb6c2a32aef)

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.12/site-packages/datasets/builder.py", line 1831, in _prepare_split_single
                  writer.write_table(table)
                File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 714, in write_table
                  pa_table = table_cast(pa_table, self._schema)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2272, in table_cast
                  return cast_table_to_schema(table, schema)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2218, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              otu_id: string
              dna_sequence: string
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 497
              to
              {'sid': Value('string'), 'patient_id': Value('string'), 'country': Value('string'), 'label': Value('int64'), 'allergen_class': Value('int64')}
              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 1334, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 911, in stream_convert_to_parquet
                  builder._prepare_split(
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1702, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1833, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
              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 2 new columns ({'otu_id', 'dna_sequence'}) and 5 missing columns ({'patient_id', 'sid', 'label', 'allergen_class', 'country'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/hugging-science/AI4FA-Diabimmune/processed/dna_sequences/Month_1/SRS1719092.csv (at revision 9f02bd07ed48e03f09f1b144dfcdcfb6c2a32aef)
              
              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.

sid
string
patient_id
string
country
string
label
int64
allergen_class
int64
SRS1719262
E022960
FIN
1
1
SRS1735475
T008246
EST
1
1
SRS1735488
E030828
FIN
0
0
SRS1735491
T007748
EST
0
0
SRS1735500
T021613
EST
1
4
SRS1735508
T005999
EST
0
0
SRS1735509
T019852
EST
0
0
SRS1735512
T023390
EST
1
1
SRS1735519
E002473
FIN
0
0
SRS1735538
T019021
EST
0
0
SRS1735560
T009275
EST
0
0
SRS1735568
T008025
EST
1
1
SRS1735577
E020808
FIN
0
0
SRS1735593
E019793
FIN
1
4
SRS1735595
E025912
FIN
0
0
SRS1735599
T016234
EST
0
0
SRS1735606
T013832
EST
1
1
SRS1735612
T012983
EST
1
2
SRS1735628
T008247
EST
1
1
SRS1735631
T019850
EST
0
0
SRS1719109
E030828
FIN
0
0
SRS1719178
T023909
EST
0
0
SRS1719230
P017255
RUS
0
0
SRS1719275
T026211
EST
1
2
SRS1719278
P010322
RUS
0
0
SRS1719279
P004946
RUS
0
0
SRS1719284
P007857
RUS
0
0
SRS1719298
T029922
EST
0
0
SRS1719299
E033036
FIN
0
0
SRS1719323
P018832
RUS
0
0
SRS1719328
E022960
FIN
1
1
SRS1719353
P019222
RUS
0
0
SRS1719369
P009291
RUS
1
2
SRS1719371
E012124
FIN
0
0
SRS1719383
T023390
EST
1
1
SRS1719430
E013394
FIN
1
4
SRS1719438
P004113
RUS
0
0
SRS1719468
E034324
FIN
1
4
SRS1719473
P017671
RUS
0
0
SRS1719509
P017743
RUS
0
0
SRS1719531
T022883
EST
1
4
SRS1719534
P010096
RUS
0
0
SRS1719540
P005135
RUS
0
0
SRS1719554
P009746
RUS
0
0
SRS1719559
E012678
FIN
0
0
SRS1719564
T020231
EST
0
0
SRS1719570
T019850
EST
0
0
SRS1719578
P022130
RUS
1
2
SRS1735448
E024646
FIN
1
4
SRS1735464
E006871
FIN
1
2
SRS1735473
E007303
FIN
0
0
SRS1735489
T000094
EST
0
0
SRS1735498
T000461
EST
0
0
SRS1735503
T009280
EST
0
0
SRS1735523
P015163
RUS
0
0
SRS1735542
T006288
EST
1
2
SRS1735544
T009909
EST
0
0
SRS1735547
T003950
EST
1
1
SRS1735551
E002681
FIN
0
0
SRS1735553
T007748
EST
0
0
SRS1735555
T009275
EST
0
0
SRS1735557
E002825
FIN
1
1
SRS1735566
E002338
FIN
1
1
SRS1735569
E009676
FIN
0
0
SRS1735581
E004080
FIN
0
0
SRS1735584
E005804
FIN
0
0
SRS1735600
P000648
RUS
0
0
SRS1735601
E007743
FIN
1
1
SRS1735608
E009020
FIN
1
4
SRS1735620
E008241
FIN
0
0
SRS1735641
E008643
FIN
0
0
SRS1735660
P008543
RUS
1
1
SRS1735662
T019852
EST
0
0
SRS1735689
T010520
EST
0
0
SRS1735695
T024121
EST
0
0
SRS1719146
P003435
RUS
0
0
SRS1719155
P003558
RUS
0
0
SRS1719175
T028029
EST
1
3
SRS1719226
P023918
RUS
0
0
SRS1719228
P026562
RUS
0
0
SRS1719280
P004946
RUS
0
0
SRS1719310
P013823
RUS
0
0
SRS1719311
P017255
RUS
0
0
SRS1719347
P016803
RUS
0
0
SRS1719352
P020604
RUS
0
0
SRS1719359
P022222
RUS
0
0
SRS1719390
E033156
FIN
1
1
SRS1719418
P000756
RUS
0
0
SRS1719419
P011108
RUS
0
0
SRS1719439
P004113
RUS
0
0
SRS1719505
P007649
RUS
0
0
SRS1719530
P017743
RUS
0
0
SRS1719555
P008579
RUS
0
0
SRS1719557
P015163
RUS
0
0
SRS1719575
P014839
RUS
0
0
SRS1735465
E012115
FIN
0
0
SRS1735570
E015378
FIN
1
1
SRS1735586
P010322
RUS
0
0
SRS1735609
T004341
EST
0
0
SRS1735637
T005507
EST
1
1
End of preview.

Food Allergy Microbiome Dataset (Experimental)

Dataset Summary

This is an experimental microbiome dataset designed for exploratory research in food allergy classification. The dataset contains multiple data modalities (DNA embeddings, microbiome embeddings, raw DNA sequences) collected longitudinally at several timepoints.

Warning: This dataset is experimental. Its structure is frozen for ongoing research, and it is not ready for benchmarking.


Dataset Structure

The dataset is organized by data type and timepoint:

.
├── dna_embeddings
│   └── month_{1,2,3,....38}/dna_embeddings.h5
├── dna_sequences
│   └── month_{1,2,3,....38}/*.csv
└── microbiome_embeddings
    └── month_{1,2,3,....38}/microbiome_embeddings.h5
  • DNA embeddings: .h5 files with embedding vectors derived from DNA sequences.
  • Microbiome embeddings: .h5 files containing microbiome feature vectors.
  • DNA sequences: raw .csv files representing sequences or processed features.

Each timepoint contains multiple samples per subject. File names (e.g., SRS1719092.csv) serve as sample IDs. Subject IDs and mappings are implicit; users must manage them carefully.


Intended Use

  • Task: Exploratory classification of food allergies.
  • Users are expected to define their own train/test splits.
  • Critical: Do not split samples randomly; multiple samples per subject exist. Splits should be done at the subject level to avoid data leakage.

Data Notes

  • Longitudinal: Samples are collected at multiple months (1, 2, 3, 6, 12, 24, 36).
  • Multi-modal: Embeddings and sequences are provided separately; users may combine them as needed.
  • No labels are embedded per file. Labels must be handled separately or mapped from your internal records.
  • This dataset is research-focused, not benchmark-ready.

License

This experimental dataset is currently released under Apache License 2.0


Downloads last month
423

Collection including hugging-science/AI4FA-Diabimmune