useList::Compare;#需要安装@Llist=qw(abel abel baker camera delta edward fargo golfer);@Rlist=qw(baker camera delta delta edward fargo golfer hilton);$lc=List::Compare->new(\@Llist,\@Rlist);#使用数组的reference@intersection=$lc->get_intersection;#子集@union=$lc->get_union;#并集print"@intersection\n@union\n";
sudo port selfupdate #升级port
sudo port sync #同apt-get的update。
port list #列出所有软件
port search XXX #查找XXX软件
port deps XXX #查看XXX软件的依赖
sudo port install XXX #安装XXX软件
sudo port uninstall XXX #卸载
LOCUS #12345 23 bp dna linear UNK
DEFINITION example 1
ACCESSION unknown
FEATURES Location/Qualifiers
BASE COUNT 4 a 4 c 12 g 3 t
ORIGIN 1 aaaatggggg ggggggcccc gtt
//
useBio::DB::Query::GenBank;$query="Arabidopsis[ORGN] AND topoisomerase[TITL] and 0:3000[SLEN]";$query_obj=Bio::DB::Query::GenBank->new(-db=>'nucleotide',-query=>$query);
useBio::DB::GenBank;useBio::DB::Query::GenBank;$query="Arabidopsis[ORGN] AND topoisomerase[TITL] and 0:3000[SLEN]";$query_obj=Bio::DB::Query::GenBank->new(-db=>'nucleotide',-query=>$query);$gb_obj=Bio::DB::GenBank->new;$stream_obj=$gb_obj->get_Stream_by_query($query_obj);while($seq_obj=$stream_obj->next_seq){# do something with the sequence object print$seq_obj->display_id,"\t",$seq_obj->length,"\n";}
第一个脚本先来学习如何创建一个序列,准确的说是一个序列对象。Bioperl是“面向对象”方式的。至于为什么要用“面向对象”,Why introduce these odd or intrusive notions into software that should be biological or intuitive?(不会翻译)。原因在于模块化或者面向对象化会使得处理复杂数据的时候更灵活更简单。一旦越过了这个坎儿,你会发现使用“对象”是理所当然的。
This is perl, v5.10.0 built for cygwin-thread-multi-64int
Copyright 1987-2007, Larry Wall Perl may be copied only under the terms of
either the Artistic License or the GNU General Public License, which may be
found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on this
system using “man perl” or “perldoc perl”. If you have access to the Internet,
point your browser at http://www.perl.org/, the Perl Home Page.
最好使用最新版本,5.4一下的版本可能会有些问题。查看Perl程序所在的位置