Datasets:
genome_name
stringlengths 15
15
| contig_name
sequencelengths 1
962
| protein_id
sequencelengths 1
962
| protein_sequence
sequencelengths 1
962
| taxid
stringlengths 3
7
| locus_tag
sequencelengths 1
962
| start
sequencelengths 1
962
| end
sequencelengths 1
962
| product
sequencelengths 1
962
|
---|---|---|---|---|---|---|---|---|
GCA_001304345.1 | ["LIZO01000001.1","LIZO01000002.1","LIZO01000003.1","LIZO01000004.1","LIZO01000005.1","LIZO01000006.(...TRUNCATED) | [["KPJ54732.1","KPJ54747.1","KPJ54733.1","KPJ54734.1","KPJ54735.1","KPJ54736.1","KPJ54748.1","KPJ547(...TRUNCATED) | [["MDQYDYIIVGSGIAGLYTTLLAQGQGSVLLLTKAGINDCSSRHAQGGIAAAIGIGDSAELHYRDTVAAGAGLCDEEVVRILVDEAPDRITDLINFGV(...TRUNCATED) | 1703392 | [[null,null,null,null,"pyrH",null,null,null,null,null,null,null,null,null,null,null,null,null,null,n(...TRUNCATED) | [[1,1046,2558,3397,3898,4627,5269,5952,6728,7849,8916,9959,10609,13925,16063,16424,17392,17585,18291(...TRUNCATED) | [[727,2311,3400,3894,4617,5184,5937,6743,7852,8919,9962,10612,12330,14206,16428,17311,17532,18247,19(...TRUNCATED) | [["L-aspartate oxidase","(dimethylallyl)adenosine tRNA methylthiotransferase","30S ribosomal protein(...TRUNCATED) |
GCA_001304355.1 | ["LJMZ01000001.1","LJMZ01000002.1","LJMZ01000003.1","LJMZ01000004.1","LJMZ01000005.1","LJMZ01000006.(...TRUNCATED) | [["KPJ58028.1","KPJ58035.1","KPJ58029.1","KPJ58030.1","KPJ58036.1","KPJ58031.1","KPJ58032.1","KPJ580(...TRUNCATED) | [["ALKMMGEGKINSAEARELLNAMRGPQPSGDSLPMSGGTLATIIGALLVVIGFMLPWTRVRMGGVTGYQAGHHVGFLGWLILGLGLLPAILCSIPALD(...TRUNCATED) | 1703415 | [[null,null,null,null,null,null,null,null,null],[null,null,"frr","pyrH",null,null,null,"tsf",null,nu(...TRUNCATED) | [[1,809,2001,2268,3019,3955,4983,5970,6349],[1,1077,1875,2437,3393,4727,5097,5544,7937,9262,10831],[(...TRUNCATED) | [[568,1966,2234,3008,3903,4950,5966,6152,7161],[734,1391,2435,3159,4457,5113,5420,6140,9094,10800,12(...TRUNCATED) | [["hypothetical protein","3-oxoacyl-ACP synthase","acyl carrier protein","hypothetical protein","hyp(...TRUNCATED) |
GCA_001304365.1 | ["LJNA01000001.1","LJNA01000002.1","LJNA01000003.1","LJNA01000004.1","LJNA01000005.1","LJNA01000006.(...TRUNCATED) | [["KPJ69464.1","KPJ69465.1","KPJ69466.1","KPJ69467.1","KPJ69468.1","KPJ69469.1","KPJ69470.1","KPJ694(...TRUNCATED) | [["MLVMIDNYDSFTYNLVQYFQILGIGVSVYRNDEIAPSQIENLKPKYLVISPGPCTPKEAGISVKVIQELAGKMPILGVCLGHQSVGAAFGGKVVGSK(...TRUNCATED) | 1703361 | [[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"fusA",null,"tsf","pyrH(...TRUNCATED) | [[136,1658,2212,3174,4556,5021,6084,7212,8127,9377,10464,10635,11415,12613,14622,15102,17556,18374,1(...TRUNCATED) | [[708,2215,2733,4541,4954,6040,7205,7895,8960,10462,10643,11420,12605,14622,14969,17186,18365,18994,(...TRUNCATED) | [["anthranilate synthase","hypothetical protein","hypothetical protein","sulfate adenylyltransferase(...TRUNCATED) |
GCA_001304415.1 | ["LJTP01000001.1","LJTP01000002.1","LJTP01000003.1","LJTP01000004.1","LJTP01000005.1","LJTP01000006.(...TRUNCATED) | [["KPK66833.1","KPK66834.1","KPK66835.1","KPK66836.1","KPK66837.1","KPK66838.1","KPK66839.1","KPK668(...TRUNCATED) | [["MSLEDEYRAVRHHAALSRMDHVGLLRLVGDDAIEAVDAVCSGDLWVRDGRMLQTLILDDRAQPVADVYVCPDNDACFLMVEGITTEELSECLARHVD(...TRUNCATED) | 1703358 | [[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"nadE",null,null,n(...TRUNCATED) | [[1,902,3236,4549,5320,5972,7576,8860,9356,9612,11121,11340,12322,12627,13472,15028,17039,19972,2050(...TRUNCATED) | [[912,1192,4432,5181,5934,7558,8640,9363,9607,11156,11309,12119,12576,13307,15031,17034,18013,20151,(...TRUNCATED) | [["hypothetical protein","hypothetical protein","hypothetical protein","hypothetical protein","hypot(...TRUNCATED) |
GCA_001304425.1 | ["LJTS01000001.1","LJTS01000002.1","LJTS01000003.1","LJTS01000004.1","LJTS01000005.1","LJTS01000006.(...TRUNCATED) | [["KPK35785.1","KPK35786.1","KPK35787.1","KPK35788.1","KPK35789.1","KPK35790.1","KPK35791.1","KPK357(...TRUNCATED) | [["MKHLCVVLTEPTQGKAAEFDSYYENVHLDEVLATTGWESAQRFVLTDQNGQKYPLPYLALYEIEAPAPSVVIRKMNDTRAKRPQSESLNRRPAAVWV(...TRUNCATED) | 1703389 | [[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,nul(...TRUNCATED) | [[132,1243,1777,3006,4225,4469,4714,5342,5813,7122,7751,10457,11319,14961,15909,16389,17648,18453,19(...TRUNCATED) | [[470,1641,2931,4016,4479,4717,5127,5731,6916,7718,9661,11056,11711,15728,16325,16811,18274,19352,20(...TRUNCATED) | [["hypothetical protein","hypothetical protein","hypothetical protein","hypothetical protein","hypot(...TRUNCATED) |
GCA_001304445.1 | ["LJTU01000001.1","LJTU01000002.1","LJTU01000003.1","LJTU01000004.1","LJTU01000005.1","LJTU01000006.(...TRUNCATED) | [["KPK12816.1","KPK12817.1","KPK12818.1","KPK12819.1","KPK12820.1","KPK12821.1","KPK12822.1","KPK128(...TRUNCATED) | [["MIYSFGSIELDLAKVELRDNGEPRPVEPQVFALIAYLAEHRDRMVSRDELFEKLWEGKVVSDSALSSRIKSARRAVGDDGRAQAIIKTVHGQGLRFV(...TRUNCATED) | 1703383 | [[null,null,null,null,null,null,null,null,null,null,null,"recR",null,null,null,null,null,null,null,n(...TRUNCATED) | [[324,2066,2520,4071,4466,4994,7299,8413,10079,11284,12911,13242,13851,14198,15203,16505,17189,19654(...TRUNCATED) | [[1898,2290,4103,4379,4987,7144,8252,10068,11020,12897,13234,13841,14201,15049,15790,17176,19516,204(...TRUNCATED) | [["transcriptional regulator","4-oxalocrotonate tautomerase","hypothetical protein","hypothetical pr(...TRUNCATED) |
GCA_001304455.1 | ["LJTW01000001.1","LJTW01000002.1","LJTW01000003.1","LJTW01000004.1","LJTW01000005.1","LJTW01000006.(...TRUNCATED) | [["KPK56692.1","KPK56693.1","KPK56694.1","KPK56695.1","KPK56696.1","KPK56697.1","KPK56698.1","KPK566(...TRUNCATED) | [["MSAGVILIAKTGTGIGPRASLNVAGILAVIAVLLYLAARFNGLSFAALSALWRRSLPFTRPSRV","MTTRQQSLVRRWAALLAVSLGVFAITFDGS(...TRUNCATED) | 1703416 | [[null,null,null,null,null,null,null,null,null,null,null,null,"rpsU",null,null,null,null,null,null,n(...TRUNCATED) | [[59,2353,4451,6589,7406,8072,9571,10345,11959,12476,14444,16360,16866,17199,18321,18689,19927,20832(...TRUNCATED) | [[253,3993,5350,7383,8050,9403,10254,11802,12282,14314,16225,16764,17081,18230,18605,19915,20835,216(...TRUNCATED) | [["hypothetical protein","hypothetical protein","hypothetical protein","hypothetical protein","hypot(...TRUNCATED) |
GCA_001304495.1 | ["LJUN01000001.1","LJUN01000002.1","LJUN01000003.1","LJUN01000004.1","LJUN01000005.1","LJUN01000006.(...TRUNCATED) | [["KPL08494.1","KPL08495.1","KPL08496.1","KPL08497.1","KPL08498.1","KPL08499.1","KPL08500.1","KPL085(...TRUNCATED) | [["WKDYTIYFDDKYGQIEIGSKYAGVEFHHSCPLPSRISFYYPVANSLDLSTDYWKRDQSFPISLVVKHDGITDTIAKYAFPYNYTPYHAIFKKQFQDF(...TRUNCATED) | 1703763 | [[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,nul(...TRUNCATED) | [[1,2948,4546,6034,6498,12878,14157,17213,17877,18306,18724,19828,20691,22042,23704,26856,28322,3021(...TRUNCATED) | [[2404,3934,5520,6444,12827,14137,17177,17827,18293,18707,19785,20664,21845,23472,26850,28007,29158,(...TRUNCATED) | [["hypothetical protein","hypothetical protein","aldo/keto reductase","hypothetical protein","hypoth(...TRUNCATED) |
GCA_001304505.1 | ["LJUQ01000001.1","LJUQ01000002.1","LJUQ01000003.1","LJUQ01000004.1","LJUQ01000005.1","LJUQ01000006.(...TRUNCATED) | [["KPK88179.1","KPK88231.1","KPK88180.1","KPK88232.1","KPK88181.1","KPK88182.1","KPK88183.1","KPK881(...TRUNCATED) | [["MKQNLSRRRFLLQTAGATAAFTIIPRHVLGKGFIPPSDRISLGFIGTGKLIRELFPRFADLDDVIILAGSDVDSKKVQWFKDHVEAYYEEKTGQSDY(...TRUNCATED) | 1703353 | [[null,null,null,null,null,null,"pyrH",null,null,null,null,null,null,null,null,null,null,null,null,n(...TRUNCATED) | [[1,1236,2795,4912,6206,7230,7966,8854,9711,10727,11118,12055,14076,14847,17908,18892,20188,21220,21(...TRUNCATED) | [[734,2762,4720,5901,7225,7793,8676,9684,10631,11113,11573,13707,14645,17897,18528,20178,21171,21654(...TRUNCATED) | [["oxidoreductase","aldehyde dehydrogenase","1-deoxy-D-xylulose-5-phosphate synthase","hypothetical (...TRUNCATED) |
GCA_001314525.1 | ["LLEX01000001.1","LLEX01000002.1","LLEX01000003.1","LLEX01000004.1","LLEX01000005.1","LLEX01000006.(...TRUNCATED) | [["KPQ38539.1","KPQ38540.1","KPQ38541.1","KPQ38542.1","KPQ38543.1","KPQ38544.1","KPQ38545.1","KPQ385(...TRUNCATED) | [["MDDSAHRLIEQLGLTAHPEGGWYRETWRGAAIAARQGEGAAEGRASGTAIIFLLQAGEASHWHTVDAAELWFWQAGDPLELRLAASDEGPLRSIILG(...TRUNCATED) | 1479239 | [[null,null,null,"dapD",null,"frmA",null,null,null,"ivd"],[null,null,null,null,null,null,null],[null(...TRUNCATED) | [[48,581,1877,2082,3125,4207,5436,6862,8573,9848],[974,1406,2304,2691,3828,4524,6327],[261,2562,4023(...TRUNCATED) | [[515,1876,2029,2918,4207,5295,6770,8358,9766,10217],[1309,2188,2687,3047,4448,6203,8186],[2492,4022(...TRUNCATED) | [["hypothetical protein","Zn-dependent dipeptidase","hypothetical protein","2%2C3%2C4%2C5-tetrahydro(...TRUNCATED) |
Dataset for phenotypic traits prediction from whole-bacterial genomes (protein sequences)
A dataset of 24,462 bacterial genomes across 15,477 species with diverse phenotypic traits as labels.
The genome protein sequences have been extracted from GenBank. Each row contains a list of protein sequences present in the bacterial genome, ordered by their location on the chromosome and plasmids.
The phenotypic traits have been extracted from a number of sources [1, 2, 3] and include a diversity of categorical phenotypes. We exclude phenotypic traits with a low nr of samples, giving us 139
uniqe phenotypic traits. If the same or similar label appeared in two different sources,
we kept it as separate labels as the label collection setup may differ for the labels.
Labels
We provide labels in the Files and versions
(labels.csv
).
Usage
We recommend loading the dataset in a streaming mode to prevent memory errors.
from datasets import load_dataset
ds = load_dataset("macwiatrak/bacbench-phenotypic-traits-protein-sequences", split="train", streaming=True)
Fetch the labels for the genome
import pandas as pd
from datasets import load_dataset
ds = load_dataset("macwiatrak/bacbench-phenotypic-traits-protein-sequences", split="train", streaming=True)
item = next(iter(ds))
# read labels (available in repo root)
labels_df = pd.read_csv("<input-dir>/labels.csv").set_index("genome_name")
# fetch labels
labels = labels_df.loc[item["genome_name"]]
# drop labels without a value for the genome (NaN)
labels = labels.dropna()
Split
Due to low number of samples for many phenotypic traits and the variability between genomes, which may skew the results when using a single split, we recommend training and evaluating the model across numerous splits. Specifically, for each phenotypic traits we recommend:
- Splitting the data into
60 / 20 / 20
(%) train, validation and test partitions respectively - Training the model on the train set and monitoring the results on the validation set using macro
AUROC
. - Using the best performing model on validation to evaluate the model on the test set.
- Repeat the (1-3) steps 5 times and report the average result across the runs.
See github repository for details on how to embed the dataset with DNA and protein language models as well as code to predict antibiotic resistance from sequence. For DNA representation of the genome see the phenotypic-traits-dna dataset.
References
[1] Madin, Joshua S., et al. "A synthesis of bacterial and archaeal phenotypic trait data." Scientific data 7.1 (2020): 170.
[2] Weimann, Aaron, et al. "From genomes to phenotypes: Traitar, the microbial trait analyzer." MSystems 1.6 (2016): 10-1128.
[3] Brbić, Maria, et al. "The landscape of microbial phenotypic traits and associated genes." Nucleic acids research (2016): gkw964.
dataset_info: features: - name: genome_name dtype: string - name: contig_name sequence: string - name: protein_id sequence: sequence: string - name: protein_sequence sequence: sequence: string - name: taxid dtype: string - name: locus_tag sequence: sequence: string - name: start sequence: sequence: int64 - name: end sequence: sequence: int64 - name: product sequence: sequence: string splits: - name: train num_bytes: 37098323931 num_examples: 24462 download_size: 31451416670 dataset_size: 37098323931 configs: - config_name: default data_files: - split: train path: data/train-*
- Downloads last month
- 95