[Samtools-help] Programmatically sort and index a converted bam file

2015-01-29 Thread Johannes Helmuth
Dear list, I would like to programmatically access the samtools library for a C++ program. Unfortunately, I cannot figure out how to sort a bam file. Indeed, bam.h states that it offers ways for sorting but I did not find a matching function: --

Re: [Samtools-help] Help

2015-01-29 Thread Nils Homer
Hey Hua, the error message has a link to getting help, and the problem you are having is described in the FAQ (search for "MAPQ"): http://broadinstitute.github.io/picard/faq.html. Please send further questions here. Thank-you, N On Tue, Jan 27, 2015 at 8:53 PM, 黄桦 wrote: > Hi All > I am gett

Re: [Samtools-help] Programmatically sort and index a converted bam file

2015-01-29 Thread Devon Ryan
Hi Johannes, The sort functions aren't in the header, the main sort function isn't really constructed in a way to be conducive to use in a library (i.e., you can't just give it an htsFile* and have it run, you basically give it the command line options for "samtools sort"). Doing the sorting isn'