Closed dbrg77 closed 5 years ago
Hi Xi,
Thank you for reporting.
If two segments are mapped to same location and they have a same length, the sign of template length is minus because hisat2 considered a read as a rigthmost read of template. I fixed hisat2 to handle correctly.
You can download hisat2 code from master branch.
Thanks Chanhee
Thanks for the update, Chanhee.
I will close this now.
Regards, Xi
Hello,
Basically, I have this problem when a pair of reads are reverse complement to each other. This often happens when the insert size is smaller than the read length, so the the 3' end of the reads cover the adapters. After trimming, the pair of reads will become reverse-complementary to each other.
I'm using hisat2-2.1.0.
These are the reads:
This is the command I use to map this pair of reads:
hisat2 --no-head --no-temp-splicesite --no-spliced-alignment -p 8 -x /mnt/iGenome/Mus_musculus/UCSC/mm10/Sequence/Hisat2Index/genome -1 r1.fastq -2 r2.fastq
The output is:
Both reads have
-66
at the 9th column (tlen
), but thetlen
of read1 should be66
.Adding
-3 1
during mapping fixed the problem though.Regards, Xi