输出后当作输入文件

foreach my $i (@region){
        $all++;
        @Rgene = split "\t",$i;
        system "samtools depth -r $Rgene[1] $bam > $all.txt";
        my $file = "$all.txt";
#       print $file,"\n";
        open(IN2,"$file");
        while(<IN2>){
                chomp;
                $sum++;
                my @line = split "\t";

posted @ 2013-10-24 13:55  蒋蒋  阅读(251)  评论(0编辑  收藏  举报