samtools 1.3:
samtools sort -T sort.tmp -@ 1 -O bam -o out.bam in.bam
where in.bam has 28 million reads and 94647 reference sequences in the header (all Ensembl mouse transcripts). This is just standard RNA-seq.
Output:
[bam_sort_core] merging from 11 files...
...
[E::trans_tbl_add_sq] @sq SN (ENSMUST00000164489) found in binary header but not text header.
....
[E::hts_idx_push] unsorted positions
samtools reports an error message as above ("found in binary header but not text header") for every single reference sequence in the BAM header - in this case, all 94647 Ensembl mouse transcripts.
This does NOT happen in samtools-1.0
This error is thrown for BAMs consisting of only paired-end reads, and for BAMs consisting of only single-end reads.
samtools 1.3:
samtools sort -T sort.tmp -@ 1 -O bam -o out.bam in.bamwhere in.bam has 28 million reads and 94647 reference sequences in the header (all Ensembl mouse transcripts). This is just standard RNA-seq.
Output:
[bam_sort_core] merging from 11 files...
...
[E::trans_tbl_add_sq] @sq SN (ENSMUST00000164489) found in binary header but not text header.
....
[E::hts_idx_push] unsorted positions
samtools reports an error message as above ("found in binary header but not text header") for every single reference sequence in the BAM header - in this case, all 94647 Ensembl mouse transcripts.
This does NOT happen in samtools-1.0
This error is thrown for BAMs consisting of only paired-end reads, and for BAMs consisting of only single-end reads.