Closed turbomam closed 8 months ago
runoak -i ncbitaxon.db descendants "metagenomes" -p i \
| sed 's/NCBITaxon://' \
| sed 's/ ! /\t/' > metagenomes.tsv > ncbi_metagenomes.tsv
CREATE TABLE ncbi_metagenomes (
taxon_id INTEGER PRIMARY KEY,
description TEXT
);
with credentials in a .pgpass
file
psql -h localhost -p 15432 -d ncbi_biosamples_feb26 -U postgres
then:
\copy ncbi_metagenomes(taxon_id, description) FROM 'ncbi_metagenomes.tsv' WITH (FORMAT csv, DELIMITER E'\t', HEADER false);
minimal list added
gunzip ncbitaxon.db.gz
oaklib
installedmkdir NCBITaxon
mv ncbitaxon.db NCBITaxon
cd NCBITaxon
python -m venv venv
source venv/bin/activate
pip install oaklib