Closed RainerWaldmann closed 1 month ago
Hey @RainerWaldmann,
This seems to be an issue related to pysam reading your input data, but without the actual files there's not much more I can say. If possible, could you send the bam files to me via dpilz@scripps.edu and I'll try to reproduce the error?
After taking a closer look, it seems the issue is arising from there being hard and softclipped bases in the cigar string for some reads in your data.
I'll make some changes to make covariants more flexible for this kind of input data.
freyja covariants -> IndexError: string index out of range error
Freya v 1.5, conda install into clean new environment. Python 3.10.14
Input bam file: minimap2 mapped Nanopore reads. Primers were trimmed with custom software (soft clipping of sam records). Custom software was used for primer trimming since iVar did not work with the multiple overlapping primer panels we used. The bam file worked fine with other applications and displays correctly in IGV.
I get the same error if I don't supply the ref and gff: freyja covariants ./2021/barcode13TrimmedSorted.bam 21563 25384 --output BC13_covariants.tsv