Skip to content

ncbi_taxonomy.categories

import bedrock_bio as bb

rel = bb.load_table('ncbi_taxonomy.categories')

df = rel.limit(5).pl()  # Polars
df = rel.limit(5).df()  # Pandas
df.head()
sources category species_id taxon_id
0 [{'url': 'https://ftp.ncbi.nlm.nih.gov/pub/tax... Bacteria 100 100
1 [{'url': 'https://ftp.ncbi.nlm.nih.gov/pub/tax... Bacteria 100000 100000
2 [{'url': 'https://ftp.ncbi.nlm.nih.gov/pub/tax... Bacteria 1000000 1000000
3 [{'url': 'https://ftp.ncbi.nlm.nih.gov/pub/tax... Bacteria 1000001 1000001
4 [{'url': 'https://ftp.ncbi.nlm.nih.gov/pub/tax... Bacteria 1000002 1000002

NCBI’s broad category and species-level mapping, one row per taxon.

Not partitioned.

Column Type Description
sources STRUCT(url TEXT, filename TEXT, last_modified_at TIMESTAMPTZ, sha256 TEXT)[] Source provenance for the row.
category TEXT Broad NCBI category — Archaea, Bacteria, Eukaryota, Viruses and Viroids, Unclassified, or Other.
species_id TEXT Species-level taxonomy ID containing this taxon.
taxon_id TEXT Taxonomy ID for this taxon.