Extract sequences from local genome file by coordinates
1
0
Entering edit mode
8.7 years ago
camelbbs ▴ 710

Hi all,

I want to ask if there is a bioperl module can extract sequences by coordinates (chr1:12321321-12321921) from local genome file (eg. hg19.genome.fa). We can do that using 'bedtools getfasta', but still want to know if bioperl module can do that?

Thanks, Camel

sequence bioperl coordinates • 2.3k views
ADD COMMENT
1
Entering edit mode

You can do this with Bioperl module Bio::DB::Fasta.

Index hg19 and extract sequence string.

ADD REPLY
0
Entering edit mode

This should be promoted to the correct answer.

ADD REPLY
0
Entering edit mode
8.7 years ago
mastal511 ★ 2.1k

Have a look through the descriptions of BioPerl modules, especially those with Seq in the name.

http://www.bioperl.org/w/index.php?title=Category:Modules&pagefrom=Bio%3A%3ASearchIO%3A%3Aaxt#mw-pages

The PrimarySeq module can give you a subset of a sequence, so that may be able to do what you want.

http://doc.bioperl.org/releases/bioperl-current/bioperl-live/Bio/PrimarySeq.html/a>

ADD COMMENT

Login before adding your answer.

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