spacemorrissey commited on
Commit
1a97f33
·
verified ·
1 Parent(s): 091870a

Dataset card; drop internal fasta_path column from manifests

Browse files
Files changed (3) hide show
  1. README.md +88 -0
  2. manifests/genomes.csv +0 -0
  3. manifests/pilot_genomes.csv +13 -13
README.md CHANGED
@@ -1,3 +1,91 @@
1
  ---
2
  license: cc-by-4.0
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: cc-by-4.0
3
+ pretty_name: IMAGINE-AI contig-level Evo 2 embeddings
4
+ tags: [biology, genomics, microbiology, embeddings, dna-language-model, evo2]
5
+ size_categories: [10K<n<100K]
6
+ viewer: false
7
  ---
8
+
9
+ # IMAGINE-AI contig-level Evo 2 embeddings
10
+
11
+ Per-contig **Evo 2** (7B base) embeddings, all 32 layers, for **11,862 bacterial and archaeal genomes**
12
+ (public NCBI assemblies), computed on ALCF Polaris (A100) in October 2026. Built for genotype→phenotype
13
+ modelling in IMAGINE-AI (DOE DE-FOA-0003612, Topic 2-B; PI Ember Morrissey, West Virginia University).
14
+
15
+ The genome-level vectors (Evo 2 and MicroGlot, one small file per layer) are in the companion dataset
16
+ [`ImagineG2P/genome-embeddings`](https://huggingface.co/datasets/ImagineG2P/genome-embeddings). Use this
17
+ dataset when you need **one vector per contig**, e.g. to re-pool genomes by contig length, drop plasmids or
18
+ short contigs, or study contig-level signal.
19
+
20
+ ## What is in it
21
+
22
+ | Path | Contents |
23
+ |---|---|
24
+ | `contigs/evo2/<ddd>/<accession>.npz` | one file per genome (11,862 files, ~465 GB in total; 1 MB to 2.6 GB, median 15 MB) |
25
+ | `manifests/genomes.csv` | one row per listed genome (11,868; 6 have `status = rejected` and no `.npz`) |
26
+ | `manifests/pilot_genomes.csv` | selection checks for the 12 pilot genomes |
27
+ | `manifests/labels.csv` | phenotype labels for the pilot genomes only (Madin, BacDive, Bergey's) |
28
+
29
+ `<ddd>` is digits 4–6 of the accession number: `GCF_000007365.1` → `contigs/evo2/007/`
30
+ (in Python, `acc[7:10]`). This keeps every folder well under 10,000 files.
31
+
32
+ ### Each `.npz`
33
+
34
+ | Key | dtype, shape | Meaning |
35
+ |---|---|---|
36
+ | `embedding` | float32 [32, 4096] | genome vector, all layers (identical to the row in `genome-embeddings/evo2/`) |
37
+ | `contig_means` | float32 [n_contigs, 32, 4096] | one vector per contig, all layers |
38
+ | `contig_ids` | str [n_contigs] | FASTA record IDs, same order as `contig_means` |
39
+ | `meta` | JSON string | per-genome provenance: model revision, layers, pooling policy, `fasta_sha256`, `n_contigs`, `n_windows`, `total_bp`, IUPAC cleaning per contig, runtime and software environment |
40
+
41
+ Layer *i* is `blocks.i`: the residual stream after Evo 2 block *i*, before the final norm.
42
+
43
+ ```python
44
+ from huggingface_hub import hf_hub_download
45
+ import numpy as np, json
46
+
47
+ acc = "GCF_000007365.1"
48
+ p = hf_hub_download("ImagineG2P/Contig_embeddings", f"contigs/evo2/{acc[7:10]}/{acc}.npz",
49
+ repo_type="dataset")
50
+ z = np.load(p)
51
+ contigs = z["contig_means"][:, 24] # [n_contigs, 4096], layer blocks.24
52
+ ids = z["contig_ids"]
53
+ meta = json.loads(str(z["meta"]))
54
+ ```
55
+
56
+ To fetch a subset without downloading everything, use `snapshot_download(..., allow_patterns=[...])` or
57
+ `hf download ImagineG2P/Contig_embeddings --repo-type dataset --include "contigs/evo2/007/*"`.
58
+
59
+ ## Model and pooling
60
+
61
+ | | |
62
+ |---|---|
63
+ | Model | [`arcinstitute/evo2_7b_base`](https://huggingface.co/arcinstitute/evo2_7b_base) @ `074097e9` |
64
+ | Tokens | one byte per base (CharLevelTokenizer) |
65
+ | Window | 8,192 bp, forward strand only |
66
+ | Precision | bf16 inference, float32 pooling |
67
+
68
+ **Pooling.** Mean over tokens within each 8,192-bp window, then an equal-weight mean over the windows of a
69
+ contig (the short last window counts as much as a full one) → `contig_means`. The genome vector
70
+ `embedding` is an **equal-weight mean over contigs**, so a 1-kb contig counts as much as a 5-Mb chromosome.
71
+ For a length-weighted genome vector, weight `contig_means` by contig length (from the assembly FASTA; the
72
+ total is `total_bp` in `meta`). Non-ACGT IUPAC codes were set to N before embedding (counts in `meta`).
73
+
74
+ ## Genomes
75
+
76
+ All public NCBI assemblies (GCF_/GCA_), each with a `priority` from the IMAGINE-AI master list: 0 pilot
77
+ genomes (11), 1 reference genomes for the WVU isolates' species (80), 2 QC-passed genomes from the
78
+ growth-rate master table (283), 3 other genomes in that table (554), 4
79
+ [`ImagineG2P/fasta`](https://huggingface.co/datasets/ImagineG2P/fasta) (10,940). `fna_sha256` in
80
+ `manifests/genomes.csv` is the hash of the exact FASTA embedded.
81
+
82
+ ## Notes and limits
83
+
84
+ - Frozen-model features, not fine-tuned. MicroGlot contig vectors are not included.
85
+ - Draft assemblies vary widely in contig count (`n_contigs` in `manifests/genomes.csv`); see the pooling note.
86
+ - Code: `Hackathon/pilot/` in the IMAGINE-AI repository (`embed_evo2.py`, `export_genome_embeddings.py`).
87
+
88
+ ## License and citation
89
+
90
+ CC-BY-4.0. Please cite IMAGINE-AI (DOE DE-FOA-0003612), Evo 2 (Brixi et al., *Nature* 2026; weights
91
+ Apache-2.0, Arc Institute) and NCBI for the assemblies.
manifests/genomes.csv CHANGED
The diff for this file is too large to render. See raw diff
 
manifests/pilot_genomes.csv CHANGED
@@ -1,13 +1,13 @@
1
- sample_id,assembly_accession,organism_name,ncbi_taxid,microglot_species,selection_checks_pass,selection_failures,ncbi_accession_exact,ncbi_species_matches_csv,ncbi_taxid_matches_csv,ncbi_complete_genome,fasta_length_matches_csv,fasta_contigs_match_qc,fasta_gc_matches_qc,fasta_length_matches_qc,contig_ids_unique,qc_stem_matches_selected_or_paired,ph_stem_matches_selected_or_paired,ncbi_organism_name,ncbi_report_taxid,ncbi_strain,ncbi_paired_accession,ncbi_assembly_status,ncbi_biosample,qc_identity,status,status_reason,download,fasta_path,fna_sha256,n_contigs,total_length
2
- imagineai:taxid:1313,GCF_001457635.1,Streptococcus pneumoniae,1313,Streptococcus pneumoniae,True,,True,True,True,True,True,True,True,True,True,True,True,Streptococcus pneumoniae,1313,NCTC7465,GCA_001457635.1,current,SAMEA2479568,stem match + FASTA stats match QC table (version not recorded in QC source),accepted,,cached,/eagle/GenesisHackathonOct26/spacemorrissey/imagineai_pilot/data/genomes/GCF_001457635.1/genomic.fna,4ac5582739e59a11ba428981fbfa98d6f4e805f7bd7551a1ee328ed7381fe71a,1,2110968
3
- imagineai:taxid:291048,GCF_005843985.1,Caminibacter mediatlanticus,291048,Caminibacter mediatlanticus,True,,True,True,False,True,True,True,True,True,True,True,True,Caminibacter mediatlanticus TB-2,391592,TB-2,GCA_005843985.1,current,SAMN02436122,stem match + FASTA stats match QC table (version not recorded in QC source),accepted,,cached,/eagle/GenesisHackathonOct26/spacemorrissey/imagineai_pilot/data/genomes/GCF_005843985.1/genomic.fna,b0725d1bdb18bf5f7c9645ed4a277c96dfa8606af4f265a47845c2a52fb1c19e,1,1685887
4
- imagineai:taxid:940,GCF_000164905.1,Hydrogenobacter thermophilus,940,Hydrogenobacter thermophilus,True,,True,True,False,True,True,True,True,True,True,True,True,Hydrogenobacter thermophilus TK-6,608538,TK-6,GCA_000164905.1,current,SAMN00191234,stem match + FASTA stats match QC table (version not recorded in QC source),accepted,,cached,/eagle/GenesisHackathonOct26/spacemorrissey/imagineai_pilot/data/genomes/GCF_000164905.1/genomic.fna,9e4aede9d10322a985b6f6911b6d652ae941efedd255a0f9a1c370a275198784,1,1742932
5
- imagineai:taxid:1520,GCF_018223745.1,Clostridium beijerinckii,1520,Clostridium beijerinckii,True,,True,True,True,True,True,True,True,True,True,True,True,Clostridium beijerinckii,1520,DSM 791,GCA_018223745.1,current,SAMN18839070,stem match + FASTA stats match QC table (version not recorded in QC source),accepted,,cached,/eagle/GenesisHackathonOct26/spacemorrissey/imagineai_pilot/data/genomes/GCF_018223745.1/genomic.fna,87f5591623c7b1aaef4d715ef02415aee563e6c151951bfded08f99fb6a8a8ce,2,5950247
6
- imagineai:taxid:244787,GCF_000021725.1,Nautilia profundicola,244787,Nautilia profundicola,True,,True,True,False,True,True,True,True,True,True,True,True,Nautilia profundicola AmH,598659,AmH,GCA_000021725.1,current,SAMN02603431,stem match + FASTA stats match QC table (version not recorded in QC source),accepted,,cached,/eagle/GenesisHackathonOct26/spacemorrissey/imagineai_pilot/data/genomes/GCF_000021725.1/genomic.fna,d43f7ec07b42fe5f997cc45e2af934c6ca90e2aed38bbdbdaa59be976865d38f,1,1676444
7
- imagineai:taxid:2424,GCF_000017545.1,Fervidobacterium nodosum,2424,Fervidobacterium nodosum,True,,True,True,False,True,True,True,True,True,True,True,True,Fervidobacterium nodosum Rt17-B1,381764,Rt17-B1,GCA_000017545.1,current,SAMN00623043,stem match + FASTA stats match QC table (version not recorded in QC source),accepted,,downloaded,/eagle/GenesisHackathonOct26/spacemorrissey/imagineai_pilot/data/genomes/GCF_000017545.1/genomic.fna,182b58b0da5ca067ffff8e4eff3d699e17f6b98675f666f8aba8092075d40cf1,1,1948941
8
- imagineai:taxid:97477,GCF_000266925.1,Anaerobaculum mobile,97477,Anaerobaculum mobile,True,,True,False,False,True,True,True,True,True,True,True,True,Acetomicrobium mobile DSM 13181,891968,DSM 13181,GCA_000266925.1,suppressed,SAMN02261375,stem match + FASTA stats match QC table (version not recorded in QC source),rejected,failed: ncbi_species_matches_csv,downloaded,/eagle/GenesisHackathonOct26/spacemorrissey/imagineai_pilot/data/genomes/GCF_000266925.1/genomic.fna,09fde4342c13fa23cd750159167ae81294abf9db77923e218f61adf1725f3389,1,2160700
9
- imagineai:taxid:171695,GCF_000217795.1,Thermodesulfatator indicus,171695,Thermodesulfatator indicus,True,,True,True,False,True,True,True,True,True,True,True,True,Thermodesulfatator indicus DSM 15286,667014,DSM 15286,GCA_000217795.1,current,SAMN02232057,stem match + FASTA stats match QC table (version not recorded in QC source),accepted,,downloaded,/eagle/GenesisHackathonOct26/spacemorrissey/imagineai_pilot/data/genomes/GCF_000217795.1/genomic.fna,76a0b90de5885e4fa621d791d10d32a2c2ad740b346a78f8d9b11bde17e23b70,1,2322224
10
- imagineai:taxid:269261,GCF_000186245.1,Nitratifractor salsuginis,269261,Nitratifractor salsuginis,True,,True,True,False,True,True,True,True,True,True,True,True,Nitratifractor salsuginis DSM 16511,749222,DSM 16511,GCA_000186245.1,current,SAMN00713578,stem match + FASTA stats match QC table (version not recorded in QC source),accepted,,downloaded,/eagle/GenesisHackathonOct26/spacemorrissey/imagineai_pilot/data/genomes/GCF_000186245.1/genomic.fna,3ce115334063262c20a44bd2e70a22a9db801b143a6ea6453db4e8d1dd672de3,1,2101285
11
- imagineai:taxid:412593,GCF_001547735.1,Thermosulfidibacter takaii,412593,Thermosulfidibacter takaii,True,,True,True,False,True,True,True,True,True,True,True,True,Thermosulfidibacter takaii ABI70S6,1298851,ABI70S6,GCA_001547735.1,current,SAMD00061062,stem match + FASTA stats match QC table (version not recorded in QC source),accepted,,downloaded,/eagle/GenesisHackathonOct26/spacemorrissey/imagineai_pilot/data/genomes/GCF_001547735.1/genomic.fna,8521c6e33542bee50b8bf189b747fa53dcba2ad1677143e9bda551ef204272fe,1,1816670
12
- imagineai:taxid:413889,GCF_000166775.1,Caldicellulosiruptor kronotskyensis,413889,Caldicellulosiruptor kronotskyensis,True,,True,True,False,True,True,True,True,True,True,True,True,Caldicellulosiruptor kronotskyensis 2002,632348,2002,GCA_000166775.1,current,SAMN00713565,stem match + FASTA stats match QC table (version not recorded in QC source),accepted,,downloaded,/eagle/GenesisHackathonOct26/spacemorrissey/imagineai_pilot/data/genomes/GCF_000166775.1/genomic.fna,2863a52488de3c7100dc317cc6c15030be5c46fc1e866e83a099dc99e3982dba,1,2843785
13
- imagineai:taxid:717609,GCF_000145215.1,Caldicellulosiruptor obsidiansis,717609,Caldicellulosiruptor obsidiansis,True,,True,True,False,True,True,True,True,True,True,True,True,Caldicellulosiruptor obsidiansis OB47,608506,OB47,GCA_000145215.1,current,SAMN00713559,stem match + FASTA stats match QC table (version not recorded in QC source),accepted,,downloaded,/eagle/GenesisHackathonOct26/spacemorrissey/imagineai_pilot/data/genomes/GCF_000145215.1/genomic.fna,8b1628e03ae398ae81c46a51c3a30d2352ce4e371f47805ba1e262a835fe2daa,1,2532343
 
1
+ sample_id,assembly_accession,organism_name,ncbi_taxid,microglot_species,selection_checks_pass,selection_failures,ncbi_accession_exact,ncbi_species_matches_csv,ncbi_taxid_matches_csv,ncbi_complete_genome,fasta_length_matches_csv,fasta_contigs_match_qc,fasta_gc_matches_qc,fasta_length_matches_qc,contig_ids_unique,qc_stem_matches_selected_or_paired,ph_stem_matches_selected_or_paired,ncbi_organism_name,ncbi_report_taxid,ncbi_strain,ncbi_paired_accession,ncbi_assembly_status,ncbi_biosample,qc_identity,status,status_reason,download,fna_sha256,n_contigs,total_length
2
+ imagineai:taxid:1313,GCF_001457635.1,Streptococcus pneumoniae,1313,Streptococcus pneumoniae,True,,True,True,True,True,True,True,True,True,True,True,True,Streptococcus pneumoniae,1313,NCTC7465,GCA_001457635.1,current,SAMEA2479568,stem match + FASTA stats match QC table (version not recorded in QC source),accepted,,cached,4ac5582739e59a11ba428981fbfa98d6f4e805f7bd7551a1ee328ed7381fe71a,1,2110968
3
+ imagineai:taxid:291048,GCF_005843985.1,Caminibacter mediatlanticus,291048,Caminibacter mediatlanticus,True,,True,True,False,True,True,True,True,True,True,True,True,Caminibacter mediatlanticus TB-2,391592,TB-2,GCA_005843985.1,current,SAMN02436122,stem match + FASTA stats match QC table (version not recorded in QC source),accepted,,cached,b0725d1bdb18bf5f7c9645ed4a277c96dfa8606af4f265a47845c2a52fb1c19e,1,1685887
4
+ imagineai:taxid:940,GCF_000164905.1,Hydrogenobacter thermophilus,940,Hydrogenobacter thermophilus,True,,True,True,False,True,True,True,True,True,True,True,True,Hydrogenobacter thermophilus TK-6,608538,TK-6,GCA_000164905.1,current,SAMN00191234,stem match + FASTA stats match QC table (version not recorded in QC source),accepted,,cached,9e4aede9d10322a985b6f6911b6d652ae941efedd255a0f9a1c370a275198784,1,1742932
5
+ imagineai:taxid:1520,GCF_018223745.1,Clostridium beijerinckii,1520,Clostridium beijerinckii,True,,True,True,True,True,True,True,True,True,True,True,True,Clostridium beijerinckii,1520,DSM 791,GCA_018223745.1,current,SAMN18839070,stem match + FASTA stats match QC table (version not recorded in QC source),accepted,,cached,87f5591623c7b1aaef4d715ef02415aee563e6c151951bfded08f99fb6a8a8ce,2,5950247
6
+ imagineai:taxid:244787,GCF_000021725.1,Nautilia profundicola,244787,Nautilia profundicola,True,,True,True,False,True,True,True,True,True,True,True,True,Nautilia profundicola AmH,598659,AmH,GCA_000021725.1,current,SAMN02603431,stem match + FASTA stats match QC table (version not recorded in QC source),accepted,,cached,d43f7ec07b42fe5f997cc45e2af934c6ca90e2aed38bbdbdaa59be976865d38f,1,1676444
7
+ imagineai:taxid:2424,GCF_000017545.1,Fervidobacterium nodosum,2424,Fervidobacterium nodosum,True,,True,True,False,True,True,True,True,True,True,True,True,Fervidobacterium nodosum Rt17-B1,381764,Rt17-B1,GCA_000017545.1,current,SAMN00623043,stem match + FASTA stats match QC table (version not recorded in QC source),accepted,,downloaded,182b58b0da5ca067ffff8e4eff3d699e17f6b98675f666f8aba8092075d40cf1,1,1948941
8
+ imagineai:taxid:97477,GCF_000266925.1,Anaerobaculum mobile,97477,Anaerobaculum mobile,True,,True,False,False,True,True,True,True,True,True,True,True,Acetomicrobium mobile DSM 13181,891968,DSM 13181,GCA_000266925.1,suppressed,SAMN02261375,stem match + FASTA stats match QC table (version not recorded in QC source),rejected,failed: ncbi_species_matches_csv,downloaded,09fde4342c13fa23cd750159167ae81294abf9db77923e218f61adf1725f3389,1,2160700
9
+ imagineai:taxid:171695,GCF_000217795.1,Thermodesulfatator indicus,171695,Thermodesulfatator indicus,True,,True,True,False,True,True,True,True,True,True,True,True,Thermodesulfatator indicus DSM 15286,667014,DSM 15286,GCA_000217795.1,current,SAMN02232057,stem match + FASTA stats match QC table (version not recorded in QC source),accepted,,downloaded,76a0b90de5885e4fa621d791d10d32a2c2ad740b346a78f8d9b11bde17e23b70,1,2322224
10
+ imagineai:taxid:269261,GCF_000186245.1,Nitratifractor salsuginis,269261,Nitratifractor salsuginis,True,,True,True,False,True,True,True,True,True,True,True,True,Nitratifractor salsuginis DSM 16511,749222,DSM 16511,GCA_000186245.1,current,SAMN00713578,stem match + FASTA stats match QC table (version not recorded in QC source),accepted,,downloaded,3ce115334063262c20a44bd2e70a22a9db801b143a6ea6453db4e8d1dd672de3,1,2101285
11
+ imagineai:taxid:412593,GCF_001547735.1,Thermosulfidibacter takaii,412593,Thermosulfidibacter takaii,True,,True,True,False,True,True,True,True,True,True,True,True,Thermosulfidibacter takaii ABI70S6,1298851,ABI70S6,GCA_001547735.1,current,SAMD00061062,stem match + FASTA stats match QC table (version not recorded in QC source),accepted,,downloaded,8521c6e33542bee50b8bf189b747fa53dcba2ad1677143e9bda551ef204272fe,1,1816670
12
+ imagineai:taxid:413889,GCF_000166775.1,Caldicellulosiruptor kronotskyensis,413889,Caldicellulosiruptor kronotskyensis,True,,True,True,False,True,True,True,True,True,True,True,True,Caldicellulosiruptor kronotskyensis 2002,632348,2002,GCA_000166775.1,current,SAMN00713565,stem match + FASTA stats match QC table (version not recorded in QC source),accepted,,downloaded,2863a52488de3c7100dc317cc6c15030be5c46fc1e866e83a099dc99e3982dba,1,2843785
13
+ imagineai:taxid:717609,GCF_000145215.1,Caldicellulosiruptor obsidiansis,717609,Caldicellulosiruptor obsidiansis,True,,True,True,False,True,True,True,True,True,True,True,True,Caldicellulosiruptor obsidiansis OB47,608506,OB47,GCA_000145215.1,current,SAMN00713559,stem match + FASTA stats match QC table (version not recorded in QC source),accepted,,downloaded,8b1628e03ae398ae81c46a51c3a30d2352ce4e371f47805ba1e262a835fe2daa,1,2532343