Pindel can detect breakpoints of large deletions, medium sized insertions, inversions, tandem duplications and other structural variants at single-based resolution from next-gen sequence data. It uses a pattern growth approach to identify the breakpoints of these variants from paired-end short reads.
GNU General Public License v3.0
163
stars
90
forks
source link
Convert pindel to use the HTSlib API instead of the legacy samtools API #12
This pull request converts the pindel source code to use HTSlib for its BAM-reading needs rather than the old samtools 0.1.x API. Since the old API is unmaintained (and has been for several years), I would suggest converting wholesale as in this PR rather than complicating the code by retaining the option to use either old-samtools or htslib.
Using the currently-maintained API will fix bugs such as #9; using the better-packaged htslib will fix issues #3 and #10 and remove the need for such as #11.
This now compiles, but I have not tested it.
Still to do:
[x] Fix header parsing in search_MEI_util.cpp
[x] Update makefiles to look for htslib instead of old samtools
Eventually README.md and INSTALL will need to be updated to talk about HTSlib instead of Samtools too.
Okay... I've merged the pull request. I don't expect really funny things to happen, but I've discussed with Kai and he may be able to test it somewhere the coming days.
This pull request converts the pindel source code to use HTSlib for its BAM-reading needs rather than the old samtools 0.1.x API. Since the old API is unmaintained (and has been for several years), I would suggest converting wholesale as in this PR rather than complicating the code by retaining the option to use either old-samtools or htslib.
Using the currently-maintained API will fix bugs such as #9; using the better-packaged htslib will fix issues #3 and #10 and remove the need for such as #11.
This now compiles, but I have not tested it.
Still to do:
search_MEI_util.cpp
Eventually README.md and INSTALL will need to be updated to talk about HTSlib instead of Samtools too.