Skip to content

Fail on sorted bam input #8

Description

@bwlang

The documentation covers the requirement for random ordered input, however It would be nice to add a check to be sure that a bam file is not coordinate sorted before attempting to process it. (see https://twitter.com/KeywanHP/status/646661366774923264)

Testing for a stretch of reads from the same chromosome and monotonically increasing position is probably a reliable test. If that's hard, at minimum you could check for presence of a so:coordinate header.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions