Skip to content

SAM file formatting #845

@Naturalist1986

Description

@Naturalist1986

Expected Behavior

Hi,

I'm trying to convert a SAM file created from a search result but I get this error:

(mmseqs) moshea@shannon:/mnt/scratch$ samtools view -Sb SRR5234505.sam > SRR5234505.bam
[E::sam_parse1] CIGAR and query sequence are of different length
[W::sam_read1_sam] Parse error at line 363193
samtools view: error reading file "SRR5234505.sam"

This is the part of the file where the error refers to:

(mmseqs) moshea@shannon:/mnt/scratch$ sed -n '363193p' SRR5234505.sam

SRR5234505.241048 16 NZ_SMKV01000006.1_67 26 254 35M * 0 0 GGTCTTACCTGCGCTCCACAGGCTGTCACCGCCAGCCCGGCGGCCTTCGCGACGTTGACCGCCGCGTTGATGTCCCGGTCCAGGTACGTCCCGCACGACCCGCAC * AS:i:98 NM:i:12

Maybe the sam file is not formatted properly?

I used:

mmseqs convertalis SRR5234505_DB curated_protein_catalogue SRR5234505_Result SRR5234505 --format-mode 1

Thanks for your help!

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