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

mpileup - sambamba result differs from samtools result #244

Closed
spabinger opened this issue Sep 7, 2016 · 2 comments
Closed

mpileup - sambamba result differs from samtools result #244

spabinger opened this issue Sep 7, 2016 · 2 comments

Comments

@spabinger
Copy link

Hi,

I tested several files using sambamba mpileup (v0.6.3) and compared the output to samtools mpileup (v1.2). Unfortunately, I noticed that the two output files differ, sambamba output is missing several lines.

You can find a test file at:
https://dl.dropboxusercontent.com/u/14071835/test_file.bam

I executed the following script:

Samtools

samtools mpileup -o samtools.mpileup -A -B -Q 0 -d 1000000000 -f hg19.fa test_file.bam

Sambamba

sambamba mpileup -o sambamba.mpileup -t 32 test_file.bam --samtools -A -B -Q 0 -d 1000000000 -f hg19.fa

Show diff

diff samtools.mpileup sambamba.mpileup

Best wishes,
Stephan

@lomereiter
Copy link
Contributor

Thanks, confirmed, indeed a few bases at the end of chr2 are missing because of buggy BED calculation (https://github.com/biod/BioD/blob/8a18c41b19c42589205945e9d18d1c4f5184505b/bio/bam/pileup.d#L901-L903)

@spabinger
Copy link
Author

Hi Artem,

thanks for the fast reply. Do you think you will be able to release a new version in the near future?

Best wishes,
Stephan

george-githinji pushed a commit to george-githinji/BioD that referenced this issue Jan 2, 2017
* upstream/master:
  fix toJSON usage for new and old compilers
  test osx build
  better .travis.yml, uses dub test and tests ldc
  fix tabs/spaces in dub.json
  fix toHash signature
  fix deprecations and some warnings
  std.c -> core.stdc
  switch to undead.stream;
  fixes biod/sambamba#244
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