Lea Picard (leapfroggie_)
11/07/2025, 11:48 AMCommand error:
NCBI database not present yet (first time used?)
Traceback (most recent call last):
File "/home/l/lea-picard/genephylo/bin/rename_seqs.py", line 131, in module
main()
File "/home/l/lea-picard/genephylo/bin/rename_seqs.py", line 87, in main
taxid_to_name = fetch_taxid_to_name_ete3([int(t) for t in taxids_needed if t.isdigit()])
File "/home/l/lea-picard/genephylo/bin/rename_seqs.py", line 55, in fetch_taxid_to_name_ete3
ncbi = NCBITaxa()
File "/usr/local/lib/python3.7/site-packages/ete3/ncbi_taxonomy/ncbiquery.py", line 112, in __init__
self.update_taxonomy_database(taxdump_file)
File "/usr/local/lib/python3.7/site-packages/ete3/ncbi_taxonomy/ncbiquery.py", line 131, in update_taxonomy_database
update_db(self.dbfile)
File "/usr/local/lib/python3.7/site-packages/ete3/ncbi_taxonomy/ncbiquery.py", line 750, in update_db
os.mkdir(basepath)
OSError: [Errno 30] Read-only file system: '/home/l/lea-picard/.etetoolkit'
Is there an "easy" way to deal with this kind of behavior in Nextflow?James Fellows Yates
11/07/2025, 11:56 AMete3 to accept custom non-home locations for databases?James Fellows Yates
11/07/2025, 11:57 AMJames Fellows Yates
11/07/2025, 11:58 AMpontus
11/07/2025, 1:47 PMHOME to the your task work directory.
(I don't know this tooling, if it expects to store something in the home directory which a later process expects to be there, it needs additional management.)Lea Picard (leapfroggie_)
11/07/2025, 2:29 PMValueError: Cannot open taxonomy database: /flash/YamamotoU/Lea/work/36/643e4e98b44481dbdaed603b8dc911/taxa.sqlite
Granted, it might be my implementation that's lacking, I've tried:
dbpath = f"{args.workdir}/taxa.sqlite"
ncbi = NCBITaxa(dbfile = dbpath)
(args.workdir being the current work directory)
it doesn't seem like the database is downloading.Lea Picard (leapfroggie_)
11/07/2025, 2:30 PMLea Picard (leapfroggie_)
11/07/2025, 2:30 PM