Mercurial > repos > mcharles > rapsosnp
annotate rapsodyn/fastaGroomerForMakeBlastdb.pl @ 9:0e7c6fe60646 draft
Uploaded
author | mcharles |
---|---|
date | Mon, 20 Oct 2014 05:58:31 -0400 |
parents | 3f7b0788a1c4 |
children |
rev | line source |
---|---|
0 | 1 #!/usr/bin/perl |
7 | 2 #V1.0.0 |
0 | 3 my $inputfasta = $ARGV[0]; |
4 | |
5 open(IB, $inputfasta) or die ("Can't open $inputfasta \n"); | |
6 | |
7 while (my $ligne = <IB>){ | |
8 if ($ligne=~/\[.*?\=.*?\]/){ | |
9 $ligne =~ s/[\[\]]//g; | |
10 print $ligne; | |
11 } | |
12 elsif ($ligne =~/^\>/){ | |
13 print $ligne; | |
14 $ligne = <IB>; | |
15 $ligne =~ s/N/a/g; | |
16 print $ligne; | |
17 } | |
18 else { | |
19 print $ligne; | |
20 } | |
21 } | |
22 | |
23 close (IB); |