files
| path | files | rows | size | key |
|---|---|---|---|---|
| parts/part_NN.parquet | 64 | 2,835,102,637 | 56 GB | part_id |
| records/record_NN.parquet | 64 | 16,502,731,941 | 487 GB | part_id |
| families/family_NN.parquet | 64 | 2,835,102,637 | 23 GB | part_id |
| citations/citation_NN.parquet | 64 | 3,158,163,667 | 11 GB | part_id |
| annotations/annotation_NN.parquet | 64 | 137,661 | 4.4 MB | part_id |
| sequences/seq_NN.fa.zst | 64 | 2,835,102,637 | 922 GB | >part_id |
| taxon.parquet | 1 | 52 MB | taxid | |
| taxon_merged.parquet | 1 | 0.6 MB | old_taxid | |
| so_term.parquet | 1 | 4 KB | so_acc | |
| fill_reason.tsv | 1 | 96 KB | column, source | |
| sources.tsv | 1 | 56 KB | source | |
| counts.tsv | 1 | 4 KB | table | |
| SHA256SUMS | 1 | 36 KB | file |
NNfirst byte of SHA-1(sequence) divided by 4
orderrows sorted by part_id
counts, sizesv1.0
sample
| file | rows | size |
|---|---|---|
| parts_1m.parquet | 1,000,000 | 289.5 MB |
| parts_1m_meta.parquet | 1,000,000 | 59.2 MB |
| sightings_1m.parquet | 1,988,125 | 87.1 MB |
| citations_1m.parquet | 1,302,496 | 5.1 MB |
| sequences_1m.fa.gz | 1,000,000 | 252.3 MB |
| parts_1m.ndjson.gz | 1,000,000 | 386.7 MB |
| catalog_summary.json | 3 KB |
releasev1.2 sample
parts1,000,000
sequenceparts_1m.parquet, sequences_1m.fa.gz, parts_1m.ndjson.gz
parts
| column | type | note |
|---|---|---|
| part_id | VARCHAR | PB + serial |
| class | VARCHAR | class |
| length | UINTEGER | bases |
| gc | FLOAT | GC fraction |
| n_copies | UBIGINT | records |
| n_sources | USMALLINT | databases |
| rep_source | VARCHAR | database of naming record |
| rep_source_id | VARCHAR | id of naming record |
| so_role | VARCHAR | SO / PBO accession, so_term |
| name | VARCHAR | |
| taxon | INTEGER | NCBI taxid, taxon |
records
| column | type | note |
|---|---|---|
| part_id | VARCHAR | parts |
| source | VARCHAR | sources.tsv |
| source_id | VARCHAR | record id |
| cls | VARCHAR | class |
| so_role | VARCHAR | SO accession |
| taxon | INTEGER | NCBI taxid |
| name | VARCHAR | |
| feature | VARCHAR | feature type |
| description | VARCHAR | |
| symbol | VARCHAR | gene symbol |
| organism | VARCHAR | |
| xrefs | VARCHAR | cross-references |
| evidence | VARCHAR | |
| parent_id | VARCHAR | parent record |
| chrom | VARCHAR | chromosome / contig |
| strand | VARCHAR | +, − |
| source_url | VARCHAR | |
| start | BIGINT | 1-based |
| end | BIGINT | inclusive |
| engineered | BOOLEAN |
families
| column | type | note |
|---|---|---|
| part_id | VARCHAR | parts |
| family_db | VARCHAR | Pfam, Rfam, Dfam |
| family_acc | VARCHAR | |
| family | VARCHAR | |
| confidence | VARCHAR | |
| provenance | VARCHAR | search, record |
| via_source | VARCHAR | |
| via_source_id | VARCHAR |
citations
| column | type | note |
|---|---|---|
| part_id | VARCHAR | parts |
| type | VARCHAR | database, record |
| source | VARCHAR | |
| doi | VARCHAR | |
| year | VARCHAR | |
| reference | VARCHAR |
annotations
| column | type | note |
|---|---|---|
| part_id | VARCHAR | parts |
| rank | INTEGER | |
| tool | VARCHAR | |
| family_db | VARCHAR | |
| family | VARCHAR | |
| family_acc | VARCHAR | |
| so_role | VARCHAR | |
| e_value | DOUBLE | |
| bitscore | DOUBLE | |
| pct_id | DOUBLE | |
| coverage | DOUBLE | |
| score | DOUBLE | |
| provenance | VARCHAR |
taxon
| column | type | note |
|---|---|---|
| taxid | INTEGER | |
| parent | INTEGER | |
| rank | VARCHAR | |
| name | VARCHAR | |
| kingdom | VARCHAR | |
| dfs_in | INTEGER | clade = [dfs_in, dfs_out] |
| dfs_out | INTEGER |
parts_1m (v1.2 sample)
| column | type | note |
|---|---|---|
| part_id | VARCHAR | PB + 10 digits |
| part_key | BIGINT | number in part_id |
| sha1 | VARCHAR | SHA-1(sequence) |
| class | VARCHAR | class |
| so_role | VARCHAR | SO / PBO accession |
| so_name | VARCHAR | role |
| name | VARCHAR | |
| length | INTEGER | bases |
| gc | FLOAT | GC fraction |
| n_copies | BIGINT | records |
| n_sources | INTEGER | databases |
| rep_source | VARCHAR | database of naming record |
| rep_source_id | VARCHAR | id of naming record |
| sources | VARCHAR[] | |
| taxon_id | INTEGER | NCBI taxid |
| organism_name | VARCHAR | |
| taxon_rank | VARCHAR | |
| domain_group | VARCHAR | |
| tax_resolution | VARCHAR | |
| family_db | VARCHAR | Pfam, Rfam, Dfam, eggNOG |
| family_acc | VARCHAR | |
| family_name | VARCHAR | |
| family_provenance | VARCHAR | |
| dfam_type | VARCHAR | |
| dfam_subtype | VARCHAR | |
| n_citations | INTEGER | |
| engineered | BOOLEAN | |
| has_coordinates | BOOLEAN | |
| sample_tier | VARCHAR | flagship, balanced |
| sequence | VARCHAR | not in parts_1m_meta |
sightings_1m (v1.2 sample)
| column | type | note |
|---|---|---|
| part_id | VARCHAR | parts_1m |
| source | VARCHAR | |
| source_id | VARCHAR | |
| cls | VARCHAR | |
| so_role | VARCHAR | |
| feature | VARCHAR | |
| name | VARCHAR | |
| description | VARCHAR | |
| symbol | VARCHAR | gene symbol |
| organism | VARCHAR | |
| taxon | INTEGER | NCBI taxid |
| chrom | VARCHAR | chromosome / contig |
| start | BIGINT | |
| end | BIGINT | |
| strand | VARCHAR | |
| engineered | BOOLEAN | |
| xrefs | VARCHAR | cross-references |
| source_url | VARCHAR |
citations_1m (v1.2 sample)
| column | type | note |
|---|---|---|
| part_id | VARCHAR | parts_1m |
| type | VARCHAR | source_db, in_record |
| source | VARCHAR | |
| doi | VARCHAR | |
| year | VARCHAR | |
| reference | VARCHAR |
empty-value codes
| code | table | note |
|---|---|---|
| not_provided_by_source | records | no value in source record |
| not_applicable | records, families | fill_reason.tsv |
| unresolved_taxon | records | taxid not in pinned taxonomy |
| searched_no_hit | families | Pfam / Rfam, no hit |
| no_translatable_protein | families | no open reading frame |
| non_nucleotide_sequence | families | letter outside IUPAC DNA |
slice
import hashlib
h = hashlib.sha1(seq.encode()).hexdigest()
nn = int(h[:2], 16) // 4
promoters, Escherichia coli
WITH clade AS (SELECT dfs_in, dfs_out FROM 'taxon.parquet' WHERE taxid = 562)
SELECT p.part_id, p.name, p.length
FROM 'parts/*.parquet' p
JOIN 'taxon.parquet' t ON t.taxid = p.taxon, clade c
WHERE p.so_role = 'SO:0000167'
AND t.dfs_in BETWEEN c.dfs_in AND c.dfs_out;
records of a part
SELECT source, source_id, name, organism, start, "end", strand
FROM 'records/record_NN.parquet'
WHERE part_id = '…';
parts per role
SELECT s.name AS role, count(*) AS parts
FROM 'parts/*.parquet' p JOIN 'so_term.parquet' s ON s.so_acc = p.so_role
GROUP BY ALL ORDER BY parts DESC;
sequence by id
zstd -dc sequences/seq_NN.fa.zst | grep -A1 -m1 '^>…$'
sample, parts per class
SELECT class, count(*) AS parts
FROM 'parts_1m_meta.parquet'
GROUP BY ALL ORDER BY parts DESC;
sample, records of a part
SELECT source, source_id, feature, chrom, start, "end", strand
FROM 'sightings_1m.parquet'
WHERE part_id = 'PB0046596288';