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

Samtools error:[E::bam_hdr_write] Header too long for BAM format #181

Open
linkmonica opened this issue Jun 2, 2021 · 2 comments
Open

Comments

@linkmonica
Copy link

Hi

When I run bamsrugeon-20200925-python-3.8.1, I get this error [E::bam_hdr_write] Header too long for BAM format, which I suspect coming from samtools/1.10. So I tried using samtools/1.9 instead and I don't get any errors, but I don't even see spike-in mutations in the data. When I use a small number of spike-in mutations they do run without any errors and with spike-in.
As I want to insert a huge number of mutations, bamsurgeon fails with the above error. Any suggestions that may help with this issue?

Thanks.
Monica

@adamewing
Copy link
Owner

Hi Monica,

Are the mutations you're trying to make close together e.g. within 1000bp of each other?

If so, try setting the -z option to something around your read length (~100-150bp probably).

It would also help troubleshoot if you post the output from addsnv.

Good luck!

@linkmonica
Copy link
Author

linkmonica commented Jun 14, 2021 via email

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