Bio-Lite

 view release on metacpan or  search on metacpan

lib/Bio/Lite.pm  view on Meta::CPAN



sub reverseComplemente {
  my $seq = reverse shift;
  $seq =~ tr/ACGTacgt/TGCAtgca/;
  return $seq;
}


my %conversion_hash = ( '+' => 1, '-' => '-1', '1' => '+', '-1' => '-');
sub convertStrand($) {
  my $strand = shift;
  return $conversion_hash{$strand};
}


sub seqFileIterator {
  my ($file,$format) = @_;

  croak "Missing file in argument of seqFileIterator" if !defined $file;



( run in 0.371 second using v1.01-cache-2.11-cpan-65fba6d93b7 )