Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fastmultigather against rocksdb gives "No such file or directory (os error 2)" #272

Open
AnneliektH opened this issue Mar 12, 2024 · 3 comments

Comments

@AnneliektH
Copy link

Trying to run fastmultigather against a rocksdb in
/group/ctbrowngrp2/scratch/annie/2023-swine-sra/sourmash/viral_taxonomy/genbank/sc100rocksdb

When running against .zip db, command works and I get results.
rocksdb is present, so is the file with paths to the sig.zip.

For rocksdb:

input:
sourmash scripts fastmultigather \
../../votu_sigs_s100.txt \
 /home/ntpierce/2023-spillover/output.genbank-viral/genbank.2023-05.viral.dna-k21-sc100.rocksdb \
-c 5 -k 21 -t 100 -s 100

output:
== This is sourmash version 4.8.6. ==
== Please cite Brown and Irber (2016), doi:10.21105/joss.00027. ==

=> sourmash_plugin_branchwater 0.9.1; cite Irber et al., doi: 10.1101/2022.11.02.514947

ksize: 21 / scaled: 100 / moltype: DNA / threshold bp: 100.0
gathering all sketches in '../../votu_sigs_s100.txt' against '/home/ntpierce/2023-spillover/output.genbank-viral/genbank.2023-05.viral.dna-k21-sc100.rocksdb' using 5 threads
Error: No such file or directory (os error 2)
@bluegenes
Copy link
Contributor

Could you try running this from within the same directory as your rocksdb database (so you don't need to pass in a full path)? I'm curious if this is related to #206

@ctb
Copy link
Collaborator

ctb commented Mar 12, 2024

it should also be possible to symlink (ln -s) the rocksdb into your current directory -

ln -s /home/ntpierce/2023-spillover/output.genbank-viral/genbank.2023-05.viral.dna-k21-sc100.rocksdb .

and then use the path genbank.2023-05.viral.dna-k21-sc100.rocksdb directly.

@AnneliektH
Copy link
Author

Both those options work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants