Open adthrasher opened 4 months ago
Hi @adthrasher
In this case, there are three alignments for one of the mates, while the other mate is not mapped - so it's output only once and attached to one of the alignments.
If you want the unmapped mate to be output for each alignment of the mapped mate, use --outSAMunmapped Within KeepPairs
Yes, that is what I see. However, this is not SAM spec-compliant. The RNEXT
and PNEXT
fields for the unmapped read MUST be that of the primary alignment of the mate. Instead, STAR is pointing to one of the secondary alignments.
From https://samtools.github.io/hts-specs/SAMv1.pdf:
PNEXT: 1-based Position of the primary alignment of the NEXT read in the template. Set as 0 when
the information is unavailable. This field equals POS at the primary line of the next read. If PNEXT
is 0, no assumptions can be made on RNEXT and bit 0x20.
Hello,
I have encountered an issue where STAR is pairing read records incorrectly. In the following set of reads, the 4th record is read 1 and is unaligned. It records its mate as having a position of
chr2:32916431
. However, that is the start position of one of the supplementary alignments for read 2. It should point to the primary alignment (chr2:32916428
). I didn't see an issue for this and I didn't find anything in the documentation to explain it. I am using STAR 2.7.11b. I've attached a zip with the two reads and the command I'm invoking. I am aligning to GRCh38.Archive.zip