24小时热门版块排行榜    

查看: 1780  |  回复: 13
本帖产生 1 个 BioEPI ,点击这里进行查看
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

genomelin

银虫 (小有名气)

【答案】应助回帖

★ ★ ★ ★ ★ ★ ★ ★ ★ ★
感谢参与,应助指数 +1
wizardfan: 金币+10, BioEPI+1, 感谢热心的回答 2013-04-24 06:31:58
GO to "http://www.ncbi.nlm.nih.gov/genomes/OrganelleResource.cgi?opt=organelle&taxid=6544"
click "Download"-> "download the list of accessions"-> fileA
GO to "http://www.ncbi.nlm.nih.gov/sites/batchentrez"
upload the fileA and got the all GBk webpage
click "send to" to save file with "Genebank full " -> file B

install perl and bioperl package
run "perl GetCds.pl fileB FileYouWanted"

GetCds.pl :

#!/usr/bin/perl
use Bio::SeqFeatureI;
use Bio:erl;
use Bio::Seq;

my %species;
@seq=read_all_sequences("$ARGV[0]",'genbank');
$flag=1;
foreach $seqobj (@seq) {
        @features=$seqobj->get_SeqFeatures();
        foreach $feat (@features) {
                if($feat->primary_tag eq 'CDS'){
                        print "$feat\n";
                        @name=$feat->get_tag_values('gene');
                        $name=join "",@name;
                        open OUT,">>$ARGV[1]";
                        print OUT '>'.$seqobj->desc().$name."\n";
                        print OUT $feat->seq->seq()."\n";
                        close OUT;
                }
        }
}
4楼2013-04-23 07:06:38
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

智能机器人

Robot (super robot)

我们都爱小木虫

相关版块跳转 我要订阅楼主 erlei 的主题更新
信息提示
请填处理意见