comparison multifasta/align.pl @ 1:2a5485758ae7 draft default tip

Uploaded
author elixir-it
date Tue, 16 Feb 2021 09:26:30 +0000
parents 3f6d4e4340e8
children
comparison
equal deleted inserted replaced
0:3f6d4e4340e8 1:2a5485758ae7
165 if ($_=~/^>(.*)/) 165 if ($_=~/^>(.*)/)
166 { 166 {
167 my $id=$1; 167 my $id=$1;
168 $id=(split(/\s+/,$id))[0]; 168 $id=(split(/\s+/,$id))[0];
169 $id=~s/\-//g; 169 $id=~s/\-//g;
170 if ($id=~/\|/)
171 {
172 $id=(split(/\|/,$id))[1];
173 }
174 $id=~s/\//\_/g;
170 open(OUT,">$tgdir/$id.fasta"); 175 open(OUT,">$tgdir/$id.fasta");
171 print OUT ">$id\n"; 176 print OUT ">$id\n";
172 push(@list_files,"$tgdir/$id.fasta"); 177 push(@list_files,"$tgdir/$id.fasta");
173 }else{ 178 }else{
174 chomp(); 179 chomp();