Closed u-xixi closed 1 month ago
Is it possible for you to share the reference FASTA and some of the input reads? You can also send this to my e-mail address (shown in my profile).
Thanks for sending the data. You’re reporting two issues:
the -U flag doesn't seem to work. There are plenty of entries if i run
samtools view -f 4 output.sam
This is not a bug, but we need to document this better: The -U
flag is implemented in such a way that it outputs both alignments for paired-end reads even if only one of them is mapped. So with samtools view -f 4
, you’ll find the alignments where just one of the two reads could be mapped. To check whether the option works, you would need to use samtools view -f 12
(flag 8 is "mate unmapped").
some alignment (mostly pretty bad ones) got zero coordinates, [...]
That’s a bug. I found out that this happens when the alignment function we’re using doesn’t return a valid alignment, for example, when the query is sth. like TCTCTCTCTCTCTCTCT
and the reference GAGAGAGAGAGAGAGAGAGAGA
(as in your example). Normally, the way the seeding in strobealign works, this won’t happen, but it seems that it can happen for your reference.
I’ll try to fix this soon.
Hi Strobealign devs,
I just used Strobealign 0.13.0 and there seems a few problems with the unaligned. This was my command:
strobealign -t 10 -U -S 0.9 $assembly $r1 $r2 -o output.sam
Here are the problems:samtools view -f 4 output.sam
Is it a problem with the program or my usage?
Best, Xixi