Reads at position using samtools mpileup
0
0
Entering edit mode
6.6 years ago
charlotte • 0

Hi there,

I have a list of 386 cells and I am trying to find the number of reads at a specific position for each of them. I have done a samtools mpile up using the code below:

samtools mpileup -uf hs37d5.fa *.bam > results.bcf

How do I query my results.bcf to find out the number of reads at a specific position on chromosome 9? e.g. 9: 5073777-5073778?

I am struggling to figure out the documentation so any help would be appreciated

samtools mpileup • 3.5k views
ADD COMMENT
1
Entering edit mode

I am struggling to figure out the documentation so any help would be appreciated

http://www.htslib.org/doc/samtools.html

samtools mpileup -C50 -gf ref.fasta -r chr3:1,000-2,000 in1.bam in2.bam

ADD REPLY
1
Entering edit mode

More general comment: we all struggled with that when it was our time, but careful and repeated reading of the link that Pierre has provided always got us out of the quicksand. :)

ADD REPLY

Login before adding your answer.

Traffic: 2128 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6