Advertisement
Guest User

mbowen_signalp

a guest
May 18th, 2012
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.45 KB | None | 0 0
  1. #!/usr/bin/perl -w
  2.  
  3. use strict;
  4. use Bio::Tools::Signalp;
  5.  
  6.  
  7. # utilize stream I/O in your module
  8.  
  9. my $filename = "tta1_test.aa.fsa";
  10. open my $fh, '<', $filename or die "Couldn't open $filename: $!";
  11.  
  12. my $parser = Bio::Tools::Signalp->new(-fh => $fh );
  13.  
  14. my @likely_sigpep;
  15.  
  16.  while( my $sp_feat = $parser->next_result ) {
  17.    print "looping.";
  18.    if ($sp_feat->score > 0.1) {
  19.       print "found one!";
  20.       push @likely_sigpep, $sp_feat;
  21.    }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement