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 3 new columns ({'id', 'annotation', 'source'}) and 3 missing columns ({'row', 'phage_id', 'strain'}).

This happened while the csv dataset builder was generating data using

hf://datasets/pswap/phage_annotations/phrog_swissprot.csv (at revision 128f96c707cb8ccc4e7fe04768f84ba15a2c2f3b), ['hf://datasets/pswap/phage_annotations@128f96c707cb8ccc4e7fe04768f84ba15a2c2f3b/host_strain_index_meta.csv', 'hf://datasets/pswap/phage_annotations@128f96c707cb8ccc4e7fe04768f84ba15a2c2f3b/phrog_swissprot.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 1848, 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 2378, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              id: string
              source: string
              annotation: string
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 617
              to
              {'row': Value('int64'), 'phage_id': Value('string'), 'strain': 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 1694, 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 1850, 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 3 new columns ({'id', 'annotation', 'source'}) and 3 missing columns ({'row', 'phage_id', 'strain'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/pswap/phage_annotations/phrog_swissprot.csv (at revision 128f96c707cb8ccc4e7fe04768f84ba15a2c2f3b), ['hf://datasets/pswap/phage_annotations@128f96c707cb8ccc4e7fe04768f84ba15a2c2f3b/host_strain_index_meta.csv', 'hf://datasets/pswap/phage_annotations@128f96c707cb8ccc4e7fe04768f84ba15a2c2f3b/phrog_swissprot.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.

row
int64
phage_id
string
strain
string
0
IMGVR_UViG_2519103159_000002|2519103159|2519122128
Xanthomonas cissicola
1
IMGVR_UViG_2523231053_000001|2523231053|2523241595|181-7714
Desulfotignum phosphitoxidans
2
IMGVR_UViG_2524614872_000002|2524614872|2524710193
Arsenophonus nasoniae
3
IMGVR_UViG_2529292969_000001|2529292969|2529382112
Aggregatibacter actinomycetemcomitans
4
IMGVR_UViG_2529293226_000001|2529293226|2529415729
Acinetobacter baumannii
5
IMGVR_UViG_2531839391_000001|2531839391|2531894205|393-7429
Aggregatibacter actinomycetemcomitans
6
IMGVR_UViG_2531839507_000001|2531839507|2531905347
Aggregatibacter actinomycetemcomitans
7
IMGVR_UViG_2534681718_000001|2534681718|2534701296|1-8371
Yersinia pestis
8
IMGVR_UViG_2534681721_000001|2534681721|2534703582|489-8751
Yersinia pestis
9
IMGVR_UViG_2540341039_000002|2540341039|2540346013
Pseudoalteromonas sp001974855
10
IMGVR_UViG_2541047181_000001|2541047181|2541094764
Neisseria meningitidis
11
IMGVR_UViG_2541047182_000001|2541047182|2541094893|1196-9761
Neisseria meningitidis
12
IMGVR_UViG_2541047189_000001|2541047189|2541095855|1-8568
Neisseria meningitidis
13
IMGVR_UViG_2541047190_000001|2541047190|2541096050
Neisseria meningitidis
14
IMGVR_UViG_2541047191_000001|2541047191|2541096121|973-9518
Neisseria meningitidis
15
IMGVR_UViG_2541047192_000001|2541047192|2541096265|982-9545
Neisseria meningitidis
16
IMGVR_UViG_2541047194_000001|2541047194|2541096531
Neisseria meningitidis
17
IMGVR_UViG_2541047197_000001|2541047197|2541096927|1-8577
Neisseria meningitidis
18
IMGVR_UViG_2541047199_000001|2541047199|2541097274|661-11083
Neisseria meningitidis
19
IMGVR_UViG_2541047200_000001|2541047200|2541097418|652-11074
Neisseria meningitidis
20
IMGVR_UViG_2541047458_000001|2541047458|2541134152|1-12229
Neisseria meningitidis
21
IMGVR_UViG_2541047462_000001|2541047462|2541134696
Neisseria meningitidis
22
IMGVR_UViG_2547132096_000001|2547132096|2547146747
Vibrio anguillarum
23
IMGVR_UViG_2547132243_000001|2547132243|2547202654
Neisseria meningitidis
24
IMGVR_UViG_2548876668_000001|2548876668|2548919151
Xanthomonas vasicola
25
IMGVR_UViG_2548876710_000001|2548876710|2548937468
Neisseria meningitidis
26
IMGVR_UViG_2548876790_000001|2548876790|2548966042|1-8913
Xanthomonas A
27
IMGVR_UViG_2548877060_000002|2548877060|2549044828
Xanthomonas phaseoli
28
IMGVR_UViG_2548877079_000001|2548877079|2549049275
Xanthomonas phaseoli
29
IMGVR_UViG_2548877089_000001|2548877089|2549051990
Xanthomonas phaseoli
30
IMGVR_UViG_2551306000_000001|2551306000|2551306101
Xanthomonas phaseoli
31
IMGVR_UViG_2551306004_000001|2551306004|2551306987
Xanthomonas phaseoli
32
IMGVR_UViG_2551306008_000001|2551306008|2551307726
Xanthomonas phaseoli
33
IMGVR_UViG_2551306010_000001|2551306010|2551308765
Xanthomonas phaseoli
34
IMGVR_UViG_2551306012_000001|2551306012|2551309156
Xanthomonas phaseoli
35
IMGVR_UViG_2551306014_000001|2551306014|2551309329
Xanthomonas phaseoli
36
IMGVR_UViG_2551306022_000001|2551306022|2551311712
Xanthomonas phaseoli
37
IMGVR_UViG_2551306027_000001|2551306027|2551315745
Xanthomonas phaseoli
38
IMGVR_UViG_2551306030_000002|2551306030|2551316279
Xanthomonas phaseoli
39
IMGVR_UViG_2551306031_000001|2551306031|2551316367
Xanthomonas phaseoli
40
IMGVR_UViG_2551306406_000001|2551306406|2551391351|121-6611
Vibrio alginolyticus
41
IMGVR_UViG_2551306542_000001|2551306542|2551430849
Herbaspirillum rubrisubalbicans
42
IMGVR_UViG_2554235060_000002|2554235060|2554252369
Acinetobacter baumannii
43
IMGVR_UViG_2562617040_000002|2562617040|2562619353|640-9741
Morganella morganii
44
IMGVR_UViG_2568526092_000001|2568526092|2568546579|1702-12533
Paenibacillus sp000499205
45
IMGVR_UViG_2565956992_000001|2565956992|2566025392
Acinetobacter baumannii
46
IMGVR_UViG_2565957054_000001|2565957054|2566034133
Acinetobacter baumannii
47
IMGVR_UViG_2565957061_000001|2565957061|2566035179
Acinetobacter baumannii
48
IMGVR_UViG_2579779010_000002|2579779010|2579841823|1-6976
Pseudomonas nitroreducens
49
IMGVR_UViG_2571042762_000001|2571042762|2571145641
Yersinia pestis
50
IMGVR_UViG_2579778703_000002|2579778703|2579804589
Vibrio parahaemolyticus
51
IMGVR_UViG_2579778926_000001|2579778926|2579832624
Salmonella enterica
52
IMGVR_UViG_2609460049_000002|2609460049|2609519584
Pseudomonas aeruginosa
53
IMGVR_UViG_2582580845_000001|2582580845|2582649604
Acinetobacter baumannii
54
IMGVR_UViG_2597489903_000001|2597489903|2597517197
Providencia sneebia
55
IMGVR_UViG_2602041566_000001|2602041566|2602051902
Xylella fastidiosa
56
IMGVR_UViG_2627853935_000001|2627853935|2627901518
Vibrio vulnificus
57
IMGVR_UViG_2617271016_000002|2617271016|2617327361
Xylella fastidiosa
58
IMGVR_UViG_2617271036_000001|2617271036|2617329642
Vibrio astriarenae
59
IMGVR_UViG_2617271201_000001|2617271201|2617353061
Xenorhabdus bovienii
60
IMGVR_UViG_2630968856_000003|2630968856|2631027937
Pseudomonas nitroreducens
61
IMGVR_UViG_2627854220_000002|2627854220|2627926278
Ralstonia solanacearum
62
IMGVR_UViG_2630968353_000001|2630968353|2630984263
Xanthomonas vasicola
63
IMGVR_UViG_2630968856_000002|2630968856|2631027936|157-7132
Pseudomonas nitroreducens
64
IMGVR_UViG_2643221431_000001|2643221431|2643226697|1-7704
Izhakiella australiensis
65
IMGVR_UViG_2630968860_000001|2630968860|2631028136
Xanthomonas hortorum
66
IMGVR_UViG_2630968986_000001|2630968986|2631039897|1-7937
Xanthomonas cissicola
67
IMGVR_UViG_2634166387_000001|2634166387|2634535294|1-6946
Acinetobacter sp000773685
68
IMGVR_UViG_2651869745_000001|2651869745|2651898763|500-6670
Xanthomonas cissicola
69
IMGVR_UViG_2645727737_000001|2645727737|2645749961|918-6691
Xanthomonas perforans
70
IMGVR_UViG_2645727911_000001|2645727911|2645767600
Acinetobacter bereziniae
71
IMGVR_UViG_2648501840_000001|2648501840|2648572678|700-8794
Vibrio crassostreae
72
IMGVR_UViG_2660238514_000001|2660238514|2660316439|1-8179
Vibrio parahaemolyticus
73
IMGVR_UViG_2657244944_000001|2657244944|2657249752
Stenotrophomonas pavanii
74
IMGVR_UViG_2657245041_000001|2657245041|2657260641|1-8180
Yersinia enterocolitica
75
IMGVR_UViG_2660237963_000001|2660237963|2660243645
Acinetobacter pittii
76
IMGVR_UViG_2675903245_000001|2675903245|2675949322
Chlamydia trachomatis
77
IMGVR_UViG_2663762643_000001|2663762643|2663767317|294-7029
Acinetobacter bereziniae
78
IMGVR_UViG_2667528143_000002|2667528143|2667617343
Acinetobacter baumannii
79
IMGVR_UViG_2671180538_000001|2671180538|2671243176|642-11591
Neisseria gonorrhoeae
80
IMGVR_UViG_2711768106_000001|2711768106|2711788898
Vibrio campbellii
81
IMGVR_UViG_2687453179_000001|2687453179|2687453601
Streptococcus marmotae
82
IMGVR_UViG_2695420881_000001|2695420881|2695493766
Xanthomonas A
83
IMGVR_UViG_2706794568_000001|2706794568|2706808410
Vibrio crassostreae
84
IMGVR_UViG_2731957830_000008|2731957830|2732014991|1-8829
Neisseria meningitidis
85
IMGVR_UViG_2713897178_000004|2713897178|2713949564
Pseudomonas A
86
IMGVR_UViG_2713897258_000001|2713897258|2713958820|1-5828
Streptococcus pneumoniae
87
IMGVR_UViG_2728369113_000001|2728369113|2728398250|66-7992
Cupriavidus metallidurans
88
IMGVR_UViG_3300006253_000088|3300006253|Ga0099372_1001941|1552-11533
Campylobacter A
89
IMGVR_UViG_647000345_000002|647000345|647004828
Xanthomonas vasicola
90
IMGVR_UViG_3300000586_000002|3300000586|Draft_100005
Pseudomonas A
91
IMGVR_UViG_3300006247_000131|3300006247|Ga0099374_1002720|901-9808
Campylobacter A
92
IMGVR_UViG_3300006678_000109|3300006678|Ga0100058_102373|1-8099
Campylobacter A
93
IMGVR_UViG_3300006262_000121|3300006262|Ga0099523_1001267|1219-12657
Campylobacter A
94
IMGVR_UViG_3300006295_000055|3300006295|Ga0099657_100747|147-8213
Haemophilus D
95
IMGVR_UViG_3300006460_000054|3300006460|Ga0100061_101835|1-10439
Campylobacter A
96
IMGVR_UViG_3300007065_000036|3300007065|Ga0102727_100634|1-7815
Haemophilus D
97
IMGVR_UViG_3300006743_000022|3300006743|Ga0101795_101020
Campylobacter B
98
IMGVR_UViG_3300006744_000076|3300006744|Ga0101797_1000714|1805-11162
Kingella B
99
IMGVR_UViG_3300006748_000094|3300006748|Ga0101800_102425
Haemophilus D
End of preview.
README.md exists but content is empty.
Downloads last month
80

Spaces using pswap/phage_annotations 2