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: mpileup -r <regionspec> or -l <regionfile.bed> includes wrong areas #305

Closed
jblachly opened this issue Nov 24, 2015 · 2 comments
Closed

Comments

@jblachly
Copy link
Contributor

samtools mpileup -r chrA:nnn-mmm includes region chrA:nnn-mmm correctly, but for some combinations of BAM files it also returns pileups from the same coordinates on other contigs, for example chrF:nnn-mmm and chrQ:nnn-mmm

It is not yet clear to me under what circumstances this behaviour is triggered. I have only experienced this when passing a list of bamfiles with -b, and notably when passing the following
-b <(head bamfiles.txt | tail -n [1..x])
to narrow down to a specific file that could trigger it, I triggered the behaviour at tail -n 4. However, passing the 4th bamfile ALONE does not trigger the error.

This behaviour happens with both -r but NOT -l; see also my other Issue#304

@jblachly
Copy link
Contributor Author

I need to correct the above: the error was NOT triggered when using -l, but as I mentioned -l is abysmally slow.

@jkbonfield
Copy link
Contributor

Closing this as it doesn't sound like an error. The -l being slow issue is a different thing (streaming vs random access).

Feel free to reopen the ticket if I've misinterpreted your last comment.

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