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

View of /FigMetagenomeTools/gbk2fastadnaonly.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (download) (as text) (annotate)
Mon Feb 19 17:15:26 2007 UTC (13 years, 3 months ago) by olson
Branch point for: x, MAIN
Initial revision

#!/usr/bin/perl -w

use strict;
foreach my $file (@ARGV) {
 open (IN, $file) || die "Can't open $file";
 my $get=0; my $tag=0;
 while (<IN>) {
  if (/VERSION\s+(\S+)/) {print ">$1\n"; $tag=1}
  if (/ORIGIN/) {die "couldn't find tag" unless ($tag); $get=1; next}
  if (m#//#) {$get=0; $tag=0}
  if ($get == 1) {
   s/\d+//g; s/\s+//g;
   print uc($_), "\n";
  }
 }
  
}


MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3