perl应用:DNA互补序列的获取

来源:互联网 发布:2017nba总决赛数据 编辑:程序博客网 时间:2024/04/30 13:34



sub revcom{# A subroutine to compute the reverse complement of DNA sequence # 一个获取DNA互补序列的子程序my($dna)=@_;print $dna."\n";my ($revcom)=reverse($dna);$revcom=~tr/ACGTacgt/TGCAtgca/;return $revcom;}my $plus_dna="ATATTATATATAGCGC";my $the_result;$the_result=revcom($plus_dna);print $the_result;


原创粉丝点击