Skip to content

VarSim generated readnames too long for SAM/BAM #276

@gabeng

Description

@gabeng

VarSim may generate read names that cannot be written into SAM or BAM format. bwa-mem fails to perform alignment on these reads.

chr13_31453404_33401170-1248109-,chr13_31453404_33401170-1248192-I,chr13_31453404_33401170-1248107-,chr13_31453404_33401170-1248218-D,chr13_31453404_33401170-1248109-:chr13_31453404_33401170-1248218-D-,chr13_31453404_33401170-1248217--:::::::::::622992MjYyMDg=:0

samtools import can be used to check validity of read names.

I used seqkit to rename all reads.

seqkit replace -p .+ -r "seq_{nr}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions