Running Mpileup on a list of SNP regions
0
0
Entering edit mode
4.9 years ago
AK2019 • 0

Hello!

Budding bioinformaticion here so please bear with me here..

I am trying to run mpileup on a bed file (chrX start stop) that contains SNPs located only in exons. I can run mpileup on a particular region of interest with this command:

samtools mpileup -f hg38.fa -r chrX:1120516-1120517 -s [path to RNAseq bam file]

My question is, what is the best way to go about going through the entire list of SNPs in the bed file? There are roughly 700 SNPs found so it would take too long to do manually. Would I need to make a python script to loop through the file? If so what would that potentially look like and what libraries would I need?

I have some experience with both bash and python so any help or guidance is appreciated!

RNA-Seq SNP • 1.1k views
ADD COMMENT
0
Entering edit mode

Welcome to Biostars and thank you for the contribution! Please use the formatting bar (especially the code option) to present your post better. You can use backticks for inline code (`text` becomes text), or select a chunk of text and use the highlighted button to format it as a code block. I've done it for you this time.
code_formatting

ADD REPLY
0
Entering edit mode

Okay, thank you! Will do for the future.

ADD REPLY

Login before adding your answer.

Traffic: 2635 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