Skip to content

CIGAR and query sequence lengths differ for reads in smoothed.selective.bam #16

@kfletcher88

Description

@kfletcher88

Hi,
I was trying to use this exciting tool to call SVs using HiFi reads on a genome assembled from those same reads.
I can run SVDSS index and SVDSS smooth. The file smoothed.selective.bam is generated. When I run SVDSS search --assemble the process completes generating files called solution_batch_*.assembled.sfs, but the log contains the samtools error [E::bam_read1] CIGAR and query sequence lengths differ for m64069_220917_213940/14419164/ccs multiple times for different reads.

Because of this, I am unable to generate an index for the BAM

$ samtools index smoothed.selective.bam
[E::bam_read1] CIGAR and query sequence lengths differ for m64069_220917_213940/163645521/ccs
samtools index: failed to create index for "smoothed.selective.bam"

Meaning I cannot complete the pipeline.
I am able to index the BAM input to SVDSS smooth without issue.

I have tried to filter the BAM for primary reads, but I run into the same problem.
Please let me know if you have any advice to overcome this issue.
Thanks
Kyle

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingv1This refers to SVDSS (v1.*.*)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions