I am working with Nanopore cDNA data. I tried samtool mpileup before like this:
samtools mpileup intersectedReads.bam -r chr1:13625035-13625035 > intersectedReads.pileup
as a test case, but I got:
chr1 13625035 N 0 * *
chr1 13625036 N 0 * *
which is not correct, since when I look at the genome browser I see two reads aligning to that region
Hello rsafavi,
why do you like to do this and how should your desired output look like?
The procedure would be to get all reads that overlap the desired position using
samtools view. Due to the mapping position given for each read, one can than find the base on the location with respect to the CIGAR value.fin swimmer