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

subprocess.CalledProcessError #94

Open
zilaijuand opened this issue Aug 6, 2024 · 1 comment
Open

subprocess.CalledProcessError #94

zilaijuand opened this issue Aug 6, 2024 · 1 comment

Comments

@zilaijuand
Copy link

Hi, developer:
I run fcs-gx with singularity using the following command and meet this error messages.

python3 fcs_db/fcs.py --image=../fcs/fcs-gx.sif screen genome --fasta ../../genome.fasta --out-dir gx_aris_out --gx-db fcs_db --tax-id 1

Traceback (most recent call last):
File "/tmp/Bazel.runfiles_oslwp9y_/runfiles/gdh_datasets/apps/fcs_genome/public/run_gx.py", line 1091, in
main()
File "/tmp/Bazel.runfiles_oslwp9y_/runfiles/gdh_datasets/apps/fcs_genome/public/run_gx.py", line 1054, in main
fill_missing_args(args)
File "/tmp/Bazel.runfiles_oslwp9y_/runfiles/gdh_datasets/apps/fcs_genome/public/run_gx.py", line 550, in fill_missing_args
assert args.div, "Could not look-up blast-div for the tax-id. Must be specified wih --div"
AssertionError: Could not look-up blast-div for the tax-id. Must be specified wih --div
Traceback (most recent call last):
File "/public/home/zilaijuan/software/nt_dataset/fcs_db/fcs.py", line 476, in
sys.exit(main())
File "/public/home/zilaijuan/software/nt_dataset/fcs_db/fcs.py", line 465, in main
gx.run()
File "/public/home/zilaijuan/software/nt_dataset/fcs_db/fcs.py", line 347, in run
self.args.func(self)
File "/public/home/zilaijuan/software/nt_dataset/fcs_db/fcs.py", line 325, in run_screen_mode
self.run_gx()
File "/public/home/zilaijuan/software/nt_dataset/fcs_db/fcs.py", line 243, in run_gx
self.safe_exec(docker_args)
File "/public/home/zilaijuan/software/nt_dataset/fcs_db/fcs.py", line 168, in safe_exec
subprocess.run(args, shell=False, check=True, text=True, stdout=sys.stdout, stderr=sys.stderr)
File "/public/home/zilaijuan/anaconda3/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['singularity', 'exec', '--bind', '/public/home/zilaijuan/software/nt_dataset:/app/db/gxdb/', '--bind', '/public/home/zilaijuan/Aristolochia/hifi_and_ont:/sample-volume/', '--bind', '/public/home/zilaijuan/software/nt_dataset/gx_aris_out:/output-volume/', '../fcs/fcs-gx.sif', 'python3', '/app/bin/run_gx', '--fasta', '/sample-volume/finish.fasta', '--out-dir', '/output-volume/', '--gx-db', '/app/db/gxdb/fcs_db', '--tax-id', '1']' returned non-zero exit status 1.

Thanks for your work and the update, looking forward to your help.

@etvedte
Copy link
Contributor

etvedte commented Aug 6, 2024

--tax-id 1 should work if you also set --div unknown

Eric

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