#!/usr/bin/perl -w
print"input your file,then press Enter!\n";
my $file=;
open FILE,"$file";
open OUT,">result";
while (){
chomp;
if(/>/){
$head=$_;
}else{$seq{$head}.=$_;}
}
foreach (keys %seq){
$num=length$seq{$_};
print OUT "$_\t$num\n";
}
exit;
#######适合大的文件###############
阅读(1307) | 评论(0) | 转发(0) |