Dataset Viewer
Auto-converted to Parquet Duplicate
genome_name
stringlengths
13
18
source
stringclasses
3 values
n_seqs
float64
25
8.97k
n_contigs
float64
1
999
genome_length
float64
202k
12M
n50
float64
1.59k
7.08M
completeness
float64
50
100
contamination
float64
0
10
derived_from_sample
stringlengths
3
64
env
stringclasses
74 values
phylum
stringclasses
212 values
class
stringclasses
488 values
order
stringlengths
3
35
family
stringlengths
2
41
genus
stringlengths
2
44
species
stringlengths
12
48
env_clean
stringclasses
7 values
taxid
float64
9
3.14M
genome_embedding
sequencelengths
480
480
__index_level_0__
int64
0
1.36M
spire_mag_00129647
SPIRE
1,818
26
2,182,316
106,628
90.62
0.06
SAMEA5616757
host-associated:animal host:mammalian host:human host
Actinobacteriota
Actinomycetia
Actinomycetales
Bifidobacteriaceae
Bifidobacterium
Bifidobacterium longum
Human host
null
[ -0.09771636128425598, 0.06070202961564064, -0.35473403334617615, -0.21807269752025604, 0.13807648420333862, -0.008234228007495403, 0.15322332084178925, -0.0932416319847107, -0.16930848360061646, 0.05097578838467598, -0.0171461533755064, -0.22578303515911102, 0.28872671723365784, -0.1516068...
0
spire_mag_01961179
SPIRE
2,043
436
1,738,214
4,036
53.56
1.02
SAMN02905588
terrestrial:soil
Proteobacteria
Alphaproteobacteria
Rhizobiales
Xanthobacteraceae
Pseudolabrys
null
Terrestrial
null
[ -0.14416682720184326, -0.07373011857271194, -0.5531715154647827, -0.6232821941375732, 0.08233527839183807, -0.17459018528461456, 0.10266907513141632, 0.011625141836702824, 0.36318063735961914, -0.07609553635120392, -0.0035348618403077126, -0.07847829908132553, 0.16561052203178406, 0.041277...
1
spire_mag_00952530
SPIRE
1,531
300
1,527,793
5,689
62
0.98
SAMEA5814460
host-associated:animal host:mammalian host:human host
Firmicutes_A
Clostridia
Oscillospirales
Ruminococcaceae
Ruminiclostridium_E
Ruminiclostridium_E siraeum
Human host
null
[ -0.3422142267227173, 0.12951205670833588, -0.3431490957736969, -0.4735346734523773, -0.11090527474880219, 0.2776038646697998, 0.05283379554748535, -0.06259030103683472, -0.22384464740753174, 0.04572739452123642, 0.022199997678399086, -0.1750563383102417, 0.1122211366891861, 0.1382407546043...
2
spire_mag_00937178
SPIRE
1,171
237
1,183,381
5,318
51.41
0.17
SAMEA5814299
host-associated:animal host:mammalian host:human host
Firmicutes_A
Clostridia
Oscillospirales
CAG-272
Firm-07
Firm-07 sp900548735
Human host
null
[ -0.20246653258800507, -0.025668364018201828, -0.4147605001926422, -0.5381190180778503, -0.1567753553390503, 0.14491194486618042, 0.054438333958387375, 0.03596632182598114, -0.1622689664363861, 0.08407354354858398, 0.08938019722700119, -0.15234795212745667, 0.04446660727262497, -0.038510352...
3
spire_mag_00366515
SPIRE
1,760
129
1,945,095
20,897
89.52
0.44
SAMN07509551
host-associated:animal host:mammalian host:human host
Bacteroidota
Bacteroidia
Bacteroidales
Rikenellaceae
Alistipes
Alistipes putredinis
Human host
null
[ -0.1189771369099617, 0.22521255910396576, -0.23493041098117828, -0.37204205989837646, 0.04456422105431557, 0.07249974459409714, 0.03413868695497513, -0.052604954689741135, -0.27841681241989136, -0.06202157959342003, -0.018710516393184662, -0.06576049327850342, 0.15545009076595306, -0.07589...
4
spire_mag_00041998
SPIRE
247
36
216,273
6,921
53.69
0.2
SAMN07960351
terrestrial:subsurface
Patescibacteria
Paceibacteria
UBA6257
Colwellbacteraceae
null
null
Terrestrial
null
[ -0.2359011471271515, -0.06258128583431244, -0.5434503555297852, -0.6074637174606323, 0.1232353076338768, -0.05070602148771286, 0.19675976037979126, -0.3015162944793701, 0.33908629417419434, 0.0921006053686142, 0.05014655739068985, 0.03743604198098183, 0.17949791252613068, -0.01283759903162...
5
spire_mag_02878429
SPIRE
536
42
589,776
19,919
82.93
0.02
SAMEA10740806
host-associated:animal host:mammalian host:human host
Firmicutes
Bacilli
Mycoplasmatales
Metamycoplasmataceae
Metamycoplasma
null
Human host
null
[ -0.22018353641033173, -0.10065429657697678, -0.34501194953918457, -0.9882708191871643, -0.18224865198135376, 0.08471620082855225, 0.3421906530857086, -0.5196852087974548, 0.40188655257225037, 0.14166346192359924, 0.1038563922047615, 0.007702209055423737, 0.27316009998321533, 0.186764970421...
6
spire_mag_00113939
SPIRE
687
3
753,463
670,015
53.63
0
SAMEA5616594
host-associated:animal host:mammalian host:human host
Firmicutes_A
Clostridia
Christensenellales
CAG-917
CAG-349
CAG-349 sp003539515
Human host
null
[ -0.30335524678230286, 0.009983940981328487, -0.48921462893486023, -0.5960410833358765, -0.2450857162475586, 0.11858588457107544, 0.1288681924343109, -0.25246405601501465, -0.017215969040989876, 0.2752532660961151, 0.18297071754932404, 0.12516209483146667, -0.13188475370407104, 0.0764416009...
7
spire_mag_02933282
SPIRE
653
4
720,850
439,787
58.54
0.02
SAMEA14101372
host-associated:animal host:mammalian host:human host
Firmicutes_A
Clostridia
Oscillospirales
Acutalibacteraceae
Ruminococcus_E
Ruminococcus_E bromii_B
Human host
null
[ -0.32779785990715027, 0.15539337694644928, -0.32791799306869507, -0.34445610642433167, -0.13985323905944824, 0.1472945362329483, 0.09415854513645172, -0.11583004891872406, -0.177512526512146, 0.18325501680374146, 0.0746573805809021, -0.2570185363292694, 0.18194040656089783, 0.1625035405158...
8
spire_mag_02708049
SPIRE
877
214
875,635
4,095
50.91
0.07
SAMN15294916
host-associated:animal host:mammalian host:human host
Bacteroidota
Bacteroidia
Bacteroidales
Rikenellaceae
Alistipes
Alistipes putredinis
Human host
null
[ -0.18490129709243774, 0.1973193734884262, -0.33062466979026794, -0.4705350995063782, -0.050678517669439316, 0.058980442583560944, -0.04857569560408592, -0.024207020178437233, -0.24248775839805603, -0.09402751922607422, -0.07572587579488754, -0.10556558519601822, 0.10204273462295532, -0.079...
9
spire_mag_01385193
SPIRE
992
15
1,201,366
158,558
62.98
2.01
SAMEA3951709
host-associated:animal host:mammalian host:human host
Actinobacteriota
Actinomycetia
Actinomycetales
Bifidobacteriaceae
Bifidobacterium
Bifidobacterium adolescentis
Human host
null
[ -0.0758083164691925, 0.07890518754720688, -0.23950457572937012, -0.2813526391983032, 0.09777287393808365, 0.11071565002202988, 0.15260057151317596, -0.12543310225009918, -0.1266578882932663, 0.12010689824819565, 0.016770467162132263, -0.21554623544216156, 0.2568448781967163, -0.08280047774...
10
spire_mag_01193605
SPIRE
2,074
287
2,060,785
8,878
85.82
1.01
haib18CEM5453_HMC2KCCXY_SL336595
anthropogenic:built environment
Actinobacteriota
Actinomycetia
Actinomycetales
Micrococcaceae
Micrococcus
Micrococcus luteus
Anthropogenic
null
[ -0.15504758059978485, -0.13974136114120483, -0.4258700907230377, -0.7794292569160461, -0.18900030851364136, 0.12915410101413727, 0.16050495207309723, -0.15607763826847076, 0.03333437815308571, -0.051755212247371674, -0.014605441130697727, 0.07486650347709656, 0.3121698796749115, 0.02058291...
11
spire_mag_01767088
SPIRE
828
128
751,239
6,658
57.54
0.06
SAMN09382617
host-associated:animal host:mammalian host:human host
Firmicutes_C
Negativicutes
Veillonellales
Negativicoccaceae
Negativicoccus
Negativicoccus succinicivorans
Human host
null
[ -0.19641926884651184, 0.010413924232125282, -0.4304615259170532, -0.6061116456985474, -0.05447045713663101, 0.027667660266160965, 0.11244166642427444, -0.09773675352334976, 0.040064021944999695, 0.042551957070827484, 0.0192303154617548, 0.026410311460494995, 0.157128244638443, -0.004148903...
12
spire_mag_01196755
SPIRE
2,450
297
2,319,976
9,270
82.12
0.06
haib17CEM5106_HCVMTCCXY_SL269541
anthropogenic:built environment
Actinobacteriota
Actinomycetia
Mycobacteriales
Mycobacteriaceae
Corynebacterium
null
Anthropogenic
null
[ -0.11595883965492249, -0.14070764183998108, -0.5028790831565857, -0.7496222257614136, 0.001870194566436112, 0.08343915641307831, 0.06146697700023651, -0.12221618741750717, 0.16011138260364532, -0.07242331653833389, -0.01770086959004402, -0.014025624841451645, 0.2974739372730255, 0.04670960...
13
spire_mag_00014372
SPIRE
461
6
485,545
211,403
50.48
0.1
SAMN10350976
salinity:low salinity
Acidobacteriota
Holophagae
Holophagales
Holophagaceae
UBA12189
UBA12189 sp003530835
null
null
[ -0.12696805596351624, 0.007123406045138836, -0.3004205822944641, -0.752360463142395, -0.05172763392329216, -0.2579869329929352, 0.35050490498542786, -0.21565251052379608, 0.10234422981739044, 0.12806913256645203, -0.010668158531188965, 0.26786690950393677, 0.023293722420930862, -0.09064262...
14
spire_mag_02624983
SPIRE
776
117
763,876
7,738
59.04
1.61
SAMEA14100779
host-associated:animal host:mammalian host:human host
Firmicutes_A
Clostridia
Christensenellales
UBA1242
UBA6345
null
Human host
null
[ -0.34274670481681824, -0.01517899613827467, -0.4837096035480499, -0.6312496066093445, -0.060606520622968674, 0.3121491074562073, 0.18574796617031097, -0.2903571128845215, 0.10722103714942932, 0.13673251867294312, 0.004377847071737051, -0.1275893896818161, 0.09284469485282898, 0.27104902267...
15
spire_mag_00129644
SPIRE
2,990
23
3,234,660
263,167
71.92
0.18
SAMEA5616757
host-associated:animal host:mammalian host:human host
Proteobacteria
Gammaproteobacteria
Enterobacterales
Enterobacteriaceae
Escherichia
Escherichia coli
Human host
null
[ -0.08621058613061905, 0.2076985239982605, -0.23967353999614716, -0.2651474177837372, -0.02775631844997406, 0.1557140350341797, 0.07850218564271927, -0.1776961088180542, -0.07969091087579727, -0.10119114071130753, -0.10596727579832077, -0.0882965549826622, 0.24871696531772614, -0.0359238907...
16
spire_mag_01195381
SPIRE
5,614
443
5,742,297
20,607
85.05
3.63
haib18CEM5453_HNHKFCCXY_SL345575
anthropogenic:built environment
Cyanobacteria
Cyanobacteriia
Cyanobacteriales
Chroococcidiopsidaceae
Chroococcidiopsis
null
Anthropogenic
null
[ -0.2638664245605469, -0.09424836933612823, -0.324227899312973, -0.7385815382003784, -0.09237255156040192, 0.27807214856147766, 0.31077563762664795, -0.1345883160829544, -0.009158878587186337, -0.03504997864365578, -0.10864759236574173, 0.0333586260676384, 0.3628633916378021, -0.02581037208...
17
spire_mag_00952537
SPIRE
1,546
270
1,402,418
5,632
75.86
1.98
SAMEA5814460
host-associated:animal host:mammalian host:human host
Firmicutes_A
Clostridia
Oscillospirales
Oscillospiraceae
Limivicinus
Limivicinus sp002320035
Human host
null
[ -0.2089751660823822, 0.0214274600148201, -0.40939706563949585, -0.5944615006446838, -0.10334322601556778, 0.09123314917087555, 0.05291276425123215, 0.012776493094861507, -0.1492135375738144, 0.027834270149469376, 0.11546219885349274, -0.1488165706396103, 0.10897435992956161, 0.023853164166...
18
End of preview. Expand in Data Studio

Corpus of >1.3M genome embeddings from Bacformer

A dataset of over 1.3M bacterial genome embeddings together with associated metadata.

The dataset was collated by combining publicly available bacterial genomes from MGnify, SPIRE and NCBI. The extracted genomes were then embedded with a pretrained Bacformer model (masked objective). The genome embeddings were calculated by taking the average of contextual protein embeddings from the last layer of the Bacformer encoder.

Usage

We outline a full example on how to use the dataset for scalable search of similar genomes in the Bacformer tutorial.

from datasets import load_dataset

# load the dataset
ds = load_dataset("macwiatrak/bacformer-genome-embeddings-corpus", split="test")

# add a FAISS index
ds.add_faiss_index(column="genome_embedding"

# get k most similar genomes
query_vector = np.array(ds[0]['genome_embedding'])
# set k (i.e. number of most similar genomes to retrieve)
k = 10
# get k most similar genomes
dists, examples = ds.get_nearest_examples(
        "genome_embedding",
        query_vector,
        k=k
    )
# convert the examples to a DF, exclude the first item as it's the genome embedding itself
examples = pd.DataFrame(examples)[1:].drop(columns=['genome_embedding'])
# add L2 distances
examples['l2_distance'] = dists[1:]
examples.head()

See github repository for more details.

Downloads last month
25