pull out flanking sequences of snp
4
1
Entering edit mode
8.7 years ago

Hi,

I work on plant species. I would like to get flanking sequences of SNPs from the reference genome and the different bam files.

Any help would be appreciated.

Thanks

snp sequence R • 3.5k views
ADD COMMENT
0
Entering edit mode

So you have bam files and a reference genome, and a list of snps (their positions), right? Or do you still need to generate the SNP calls based on the bam files? Do you want the flanking sequences as in the reference genome or as sequenced for your bam files?

ADD REPLY
0
Entering edit mode

Thanks for your reply. I do have SNPs and their positions. I would like to get the flanking sequences in reference as well as in bams.

Thanks

ADD REPLY
0
Entering edit mode

How can I get snp flanking sequence from the genome file?

Thanks

ADD REPLY
0
Entering edit mode

I'm not sure it makes sense to get the flanking sequence from the BAM files. This would be either the flanking sequence from all the reads at all the variant positions, or a consensus variant call which you presumably have in your VCF/FASTA combination.

ADD REPLY
1
Entering edit mode
8.7 years ago

How can I get snp flanking sequence from the genome file?

Thanks

ADD COMMENT
0
Entering edit mode
8.6 years ago

Do you have a VCF file listing all the SNPs in the reference? If so, you can use the SNiPlay application: http://sniplay.southgreen.fr/cgi-bin/analysis_v3.cgi Load your VCF file and select the plant genome used as reference. And then export flanking sequences of SNPs...

ADD COMMENT
0
Entering edit mode
8.6 years ago

You could use the FastaVariant class in pyfaidx:

ADD COMMENT
0
Entering edit mode
8.6 years ago
jwala • 0

To get read pairs surrounding a SNP site from a BAM, you might try VariantBam. You can input any number of sites, and add a padding to the SNP if you like: https://github.com/jwalabroad/VariantBam

ADD COMMENT

Login before adding your answer.

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