Entering edit mode
2.8 years ago
DanK
▴
10
Hi,
I have the commands "samtools view -f 64" and I want to convert into R code, with the Rsamtools package. Does anyone know how this is done?
I'm confused reading the Rsamtools overview.
Thank you in advance.
Thank you very much for the reply.
Your example is very instructive. I think that the
-f 64
flag is to extract the first read in pair-end sequencing, so the R flag will be theisFirstMateRead=TRUE
.Right?
I believe so, I will say that you should double-check the counts as well with
countBam()
instead ofscanBam()
. This latter will return a count that you can verify from command line as well:ought to give you the same count as:
You are right! Thank you.