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

sourmash lca classify does not write file #906

Closed
taylorreiter opened this issue Feb 13, 2020 · 4 comments
Closed

sourmash lca classify does not write file #906

taylorreiter opened this issue Feb 13, 2020 · 4 comments

Comments

@taylorreiter
Copy link
Contributor

In sourmash version 3.2.2, with command

for infile in *sig 
do
    sourmash lca classify --db ../../../genbank-k21.lca.json.gz --query ${infile} -o ${infile}.lca_class_k21.csv
done

Get the following error:

Traceback (most recent call last):
  File "/home/tereiter/miniconda3/envs/ibd/bin/sourmash", line 11, in <module>
    sys.exit(main())
  File "/home/tereiter/miniconda3/envs/ibd/lib/python3.7/site-packages/sourmash/__main__.py", line 14, in main
    return mainmethod(args)
  File "/home/tereiter/miniconda3/envs/ibd/lib/python3.7/site-packages/sourmash/cli/lca/classify.py", line 30, in main
    return sourmash.lca.command_classify.classify(args)
  File "/home/tereiter/miniconda3/envs/ibd/lib/python3.7/site-packages/sourmash/lca/command_classify.py", line 116, in classify
    csvfp.writerow(['ID','status'] + list(lca_utils.taxlist()))
ValueError: I/O operation on closed file.
@taylorreiter
Copy link
Contributor Author

with the -o parameter removed, the command runs as expected

@ctb
Copy link
Contributor

ctb commented Feb 14, 2020 via email

@taylorreiter
Copy link
Contributor Author

whoops, thanks!

@taylorreiter
Copy link
Contributor Author

For the time being I rolled back to version 3.0.1 on conda and this now works :) I could have installed from master but...conda.

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

2 participants