tag fourth (and hopefully last) alpha
[bioperl-live.git] / branch-1-6 / examples / contributed / rebase2list.pl
blob1786969120f0abf388add0ed02d7eafce7f3d81e
1 #!/usr/bin/perl
2 # Generate an enzyme list for RestrictionEnzyme.pm from rebase
3 # From Ryan Brinkman
5 my $strider = $ARGV[0]; #commercial_version_rebase_strider_format
7 open (FILEIN,"$strider") or die "can't open $strider: $!\n";
9 while (<FILEIN>){
10 chomp;
11 if ( /^[A-Z]\S+,\S+/ ){
12 ($enzyme,$cutsite)=split(',');
13 if ($cutsite =~ m#/#){
14 $match=$-[0];
16 ($seqfixed=$cutsite) =~ s/\///g;
17 $seqfixed=uc $seqfixed;
18 print " \'$enzyme\'\t=> \'".$seqfixed." ".$match."\'\,\n";