close
Skip to content

sort error: "found in binary header but not text header." #548

@map2085

Description

@map2085

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions