Entering edit mode
3.4 years ago
Changhao Li
•
0
Hello!
I'm trying to get per-nucleotide mapping position for each mapped read from a bam file.
Specifically, for each read from a bam file, I want to know the mapping position for the 13th nt in the read. Because its RNAseq bam, there should be lots of splicing reads. So we cannot just count 13 from the first mapping position.
So does anyone have any scripts to solve this problem? Many thanks in advance.
Thank you very much Pierre! I will try your method.
Hi Pierre,
I have one more question is that do you consider strandness in your scripts. For example, if one read mapped to the negative strand, the 5' of the read should map to the 3' of the reference.
no, it's always from 5' to 3' of the REF.
So for the negative mapped reads, if the READ-POS0 is 0, actually it should be the last nucleotide, right?
yes !
OK, thank you very much!