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

--overwrite fails #21

Closed
mattloose opened this issue Nov 4, 2022 · 2 comments
Closed

--overwrite fails #21

mattloose opened this issue Nov 4, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@mattloose
Copy link

[2022-11-03 20:16:22] INFO: Filtering alignments
Traceback (most recent call last):
File "/data/test_data/GIT/hapdup/hapdup.py", line 24, in
sys.exit(main())
File "/data/test_data/GIT/hapdup/hapdup/main.py", line 153, in main
filter_alignments_parallel(args.bam, filtered_bam, min(args.threads, 30),
File "/data/test_data/GIT/hapdup/hapdup/filter_misplaced_alignments.py", line 188, in filter_alignments_parallel
pysam.merge("-@", str(num_threads), bam_out, *bams_to_merge)
File "/home/plzmwl/anaconda3/envs/hapdup/lib/python3.8/site-packages/pysam/utils.py", line 69, in call
raise SamtoolsError(
pysam.utils.SamtoolsError: "samtools returned with error 1: stdout=, stderr=[bam_merge] File 'hapdup/filtered.bam' exists. Please apply '-f' to overwrite. Abort.\n"

Looks as though when you run with --overwrite the command is not being correctly passed through to sub processes.

@fenderglass fenderglass added the bug Something isn't working label Nov 8, 2022
@fenderglass
Copy link
Collaborator

Oups! Will try to fix it soon.

@fenderglass
Copy link
Collaborator

Just pushed a commit that should fix the problem. Haven't updated the docker image yet, but looks like you are using source builds.. Let me know if that works!

Misha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants