[Bio] / FigMetagenomeTools / gbk2fastadnaonly.pl Repository:
ViewVC logotype

Annotation of /FigMetagenomeTools/gbk2fastadnaonly.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (view) (download) (as text)

1 : olson 1.1 #!/usr/bin/perl -w
2 :    
3 :     use strict;
4 :     foreach my $file (@ARGV) {
5 :     open (IN, $file) || die "Can't open $file";
6 :     my $get=0; my $tag=0;
7 :     while (<IN>) {
8 :     if (/VERSION\s+(\S+)/) {print ">$1\n"; $tag=1}
9 :     if (/ORIGIN/) {die "couldn't find tag" unless ($tag); $get=1; next}
10 :     if (m#//#) {$get=0; $tag=0}
11 :     if ($get == 1) {
12 :     s/\d+//g; s/\s+//g;
13 :     print uc($_), "\n";
14 :     }
15 :     }
16 :    
17 :     }
18 :    

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3