Datasets:
license: apache-2.0
tags:
- bacteria
- biology
- DNA
- clustering
- prokaryotes
pretty_name: Dataset for clustering bacterial genomes (DNA)
size_categories:
- 10K<n<100K
Dataset for whole-bacterial genomes clustering (DNA)
A dataset of 60,710 bacterial genomes across 25 species, 10 genera and 7 families.
The genome DNA sequences have been extracted from MGnify. Each row contains whole bacterial genome, with spaces separating different contigs present in the genome.
Labels
The species, genus and family labels have been provided by MGnify
Usage
We recommend loading the dataset in a streaming mode to prevent memory errors.
from datasets import load_dataset
ds = load_dataset("macwiatrak/bacbench-strain-clustering-dna", split="test", streaming=True)
# fetch the DNA sequence of the genome
item = next(iter(ds))
dna_seq = item["dna_sequence"]
# get DNA sequences for each contig
dna_seq_contigs = dna_seq.split()
Split
The strain clustering task is a fully unsupervised task, therefore, we do not perform any split and the whole dataset is available as part of the test
split.
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 coding sequence representation of the genome see the strain-clustering-protein-sequences dataset.