--- license: apache-2.0 tags: - biology - bacteria - genomics - phenotypes - DNA pretty_name: Dataset for predicting phenotypic traits from whole bacterial genomes (DNA) size_categories: - 10K/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: 1. Splitting the data into `60 / 20 / 20` (%) train, validation and test partitions respectively 2. Training the model on the train set and monitoring the results on the validation set using macro `AUROC`. 3. Using the best performing model on validation to evaluate the model on the test set. 4. Repeat the (1-3) steps 5 times and report the average result across the runs. See [github repository](https://github.com/macwiatrak/Bacbench) 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 coding sequence representation of the genome see the [phenotypic-traits-protein-sequences](https://huggingface.co/datasets/macwiatrak/bacbench-phenotypic-traits-protein-sequences) 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: dna_sequence dtype: string - name: taxid dtype: string splits: - name: train num_bytes: 104142909218 num_examples: 24462 download_size: 48217470302 dataset_size: 104142909218 configs: - config_name: default data_files: - split: train path: data/train-* ---