SEQanswers

Go Back   SEQanswers > Bioinformatics > Bioinformatics



Similar Threads
Thread Thread Starter Forum Replies Last Post
extracting uniquely mappable read positions bam file tahamasoodi Bioinformatics 12 05-05-2014 09:39 AM
query start and end positions from sam/bam file lpipes Bioinformatics 1 07-31-2013 07:03 PM
How to sort out cancer-specific snps from vcf file? LI Jia Bioinformatics 0 01-21-2013 04:26 AM
how to know whether a bam file is strand specific? jay2008 Bioinformatics 0 11-27-2012 11:12 PM
Fastest way to extract differing positions from each alignment in a BAM file CHRYSES Bioinformatics 5 12-14-2011 11:28 AM

Reply
 
Thread Tools
Old 04-29-2014, 02:06 PM   #1
danwiththeplan
Member
 
Location: Auckland

Join Date: Sep 2011
Posts: 72
Default Looking at specific positions in a BAM file for SNPs

Hi, I have a bunch of BAM files of mapped RNAseq reads to the human genome.

I also have a list of known positions where SNPs may or may not be.

I was wondering if there is a fast way (preferably scriptable) to look at a particular position in a BAM/SAM file to see if there is a SNP there.

I understand that I can use samtools/mpileup to globally call variants. It's just that all I really want to do is look at specific positions.

Edit: to (possibly) answer my own question, samtools mpileup has these options..

-l FILE list of positions (chr pos) or regions (BED)
-r STR region in which pileup is generated [null]

will see if that works..

Last edited by danwiththeplan; 04-29-2014 at 02:10 PM.
danwiththeplan is offline   Reply With Quote
Old 04-29-2014, 02:16 PM   #2
dpryan
Devon Ryan
 
Location: Freiburg, Germany

Join Date: Jul 2011
Posts: 3,480
Default

The samtools mpileup method that you found should work just fine.
dpryan is offline   Reply With Quote
Old 04-29-2014, 02:20 PM   #3
danwiththeplan
Member
 
Location: Auckland

Join Date: Sep 2011
Posts: 72
Default

Thanks, I have a bad habit of asking a question and answering it myself in about a minute, but I guess it helps people who are working on the same issue!
danwiththeplan is offline   Reply With Quote
Reply

Tags
bam, mpileup, samtools, snp, vcf

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT -8. The time now is 08:57 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Single Sign On provided by vBSSO