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

Option to set minimap2 -I flag #13

Closed
fellen31 opened this issue Mar 9, 2022 · 3 comments
Closed

Option to set minimap2 -I flag #13

fellen31 opened this issue Mar 9, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@fellen31
Copy link

fellen31 commented Mar 9, 2022

Hi,

Ran into this error while trying to run hapdup:

[2022-03-08 10:23:36] INFO: Running: flye-minimap2 -ax asm5 -t 10 -K 5G <PATH>/assembly.fasta <PATH>/hapdup/flye_hap_1/polished_1.fasta 2>/dev/null | flye-samtools sort -m 4G -@4 > <PATH>/hapdup/structural/liftover_hp1.bam
[E::sam_parse1] missing SAM header
[W::sam_read1] Parse error at line 2
samtools sort: truncated file. Aborting
Traceback (most recent call last):
  File "/usr/local/bin/hapdup", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/hapdup/main.py", line 245, in main
    subprocess.check_call(" ".join(minimap_cmd), shell=True)
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'flye-minimap2 -ax asm5 -t 10 -K 5G <PATH>/assembly.fasta <PATH>/hapdup/flye_hap_1/polished_1.fasta 2>/dev/null | flye-samtools sort -m 4G -@4 > <PATH>/hapdup/structural/liftover_hp1.bam' returned non-zero exit status 1.

I suspect it could be because of the default minimap2 -I flag being too small (4G)?
If this is the case, maybe an option to specify this could be added, or adjust it automatically depending on genome size?

Thanks!

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

Very likely that's why, will take a look soon.

Mikhail

@fellen31
Copy link
Author

Can confirm changing -I fixed the problem.

@fenderglass
Copy link
Collaborator

Thanks. I added the fix to this docker image: mkolmogo/hapdup:0.6-iss13. And it will be incorporated into the next release.

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