Algorithm-NeedlemanWunsch
view release on metacpan or search on metacpan
lib/Algorithm/NeedlemanWunsch.pm view on Meta::CPAN
sub new {
my $class = shift;
my $score_sub = shift;
my $self = { score_sub => $score_sub, local => 0 };
if (@_) {
$self->{gap_penalty} = $_[0];
}
return bless $self, $class;
}
sub local {
my $self = shift;
if (@_) {
$self->{local} = $_[0];
}
return $self->{local};
( run in 0.258 second using v1.01-cache-2.11-cpan-de7293f3b23 )