BGC Atlas database tables, snapshot 2026-10-22
The same 37 tables in three forms:
.tsv.gz tab-separated with a header row; all of them in bgc_atlas_v2_tables_tsv.tar.gz
pandas.read_csv(path, sep='\t') | DuckDB read_csv_auto(path)
bgc_atlas_v2_tables_parquet.tar.gz
Parquet (zstd), with the PostgreSQL column types
bgc_atlas_v2_core.dump
pg_dump of the core relational subset (29 tables):
createdb mydb
pg_restore --no-owner -d mydb bgc_atlas_v2_core.dump
HOW TO JOIN
-----------
Families: bgc_gcf(bgc_id, gcf_id, distance, is_primary, rank)
A BGC can be in more than one family; is_primary marks the one the
site shows. 14,398,961 of 16,109,198 BGCs (89.4%) have a
family. The other 1,710,237 are mostly short contig-edge
fragments, too small to place.
Taxonomy: bgc_taxonomy(bgc_id, taxonomy_id, rank, support, method) -> taxonomies
Genomes: genomes(sample_id, accession, name, assembly_id, source_type, collection,
checkm_*, genome_quality, genome_size, lineage, bgc_count)
One row per genome (750,901 isolates, MAGs and SAGs), with sample,
assembly, source and lineage fields already joined. sample_id joins to
samples, assembly_id to bgcs.assembly. Derived, so not in the pg_dump.
Sequences: bgcs.id is the key of the region GenBank and FASTA downloads. It is
uuid5 of the region file name, not of the sequence: an identical BGC
in two genomes has two ids.
GENOME QUALITY
--------------
CheckM2 completeness and contamination (percent) for 750,899 of the 750,901
genomes, in genomes and samples; empty for metagenome samples.
genome_quality MIMAG thresholds on CheckM2 alone: high = >=90% complete and
<=5% contaminated, medium = >=50% and <10%. Genomes below medium
were removed on 2026-10-09.
checkm_source
500,195 BGC Atlas CheckM2 1.1.0 run (2026-10)
250,704 GTDB R232 metadata
genomes.lineage comes from assembly_taxonomy: gtdb_r232 and gtdb_legacy are GTDB's
classification, consensus_v1 the consensus of the genome's BGC lineages.
36,134 genomes have none (35,753 of them have no BGC).
FAMILY NAMES
------------
A family name carries its data release: GCF-v2-000042 (seed tier),
GCF-v2-F-400042 (fragmented tier). A re-clustering numbers its families afresh,
so the number alone names a different family in each. gcfs.id is the family's
stable identifier; join on it, not on the name.
CONSISTENCY
-----------
Each table was exported in its own transaction: consistent within a table, not
across tables.
TABLES
------
analyses 882,462 rows
antismash_runs 834,690 rows
assemblies 836,241 rows
assembly_analyses 862,987 rows
assembly_taxonomy 714,767 rows
bgc_features 16,109,198 rows
bgc_gcf 18,588,412 rows
bgc_taxonomy 16,005,650 rows
bgcs 16,109,198 rows
biomes 562 rows
data_sources 19 rows
gcf_mibig_anchor 2,080 rows
gcf_study_count 710,379 rows
gcf_taxonomy_distribution_mv 800,045 rows
gcfs 800,091 rows
genomes 750,901 rows
mgnify_genome_catalogues 19 rows
mgnify_genomes 56,782 rows
mgnify_publications 1,785 rows
mgnify_super_studies 10 rows
product_category_map 99 rows
run_analyses 25,022 rows
run_assemblies 60,377 rows
run_studies 56,414 rows
runs 67,284 rows
sample_analyses 862,253 rows
sample_assemblies 836,241 rows
sample_biomes 100,466 rows
sample_measurements 391,587 rows
sample_runs 67,279 rows
samples 817,969 rows
studies 53,246 rows
study_bgc_summary 45,187 rows
study_biomes 0 rows
study_gcf 2,649,671 rows
study_samples 351,247 rows
taxonomies 266,607 rows
VERIFY
------
sha256sum -c SHA256SUMS