Commit e7bd7d62 authored by Abel Ureta-Vidal's avatar Abel Ureta-Vidal
Browse files

Added strands_reversed method that 0 or 1. 0 if the strand and hstrand are...

Added strands_reversed method that 0 or 1. 0 if the strand and hstrand are those originally obtained by the alignment program, 1 other wise
parent cfb7addb
......@@ -238,7 +238,31 @@ sub ungapped_features {
return @{$self->_parse_cigar()};
}
=head2 strands_reversed
Arg [1] : int $strands_reversed
Example : none
Description: get/set for attribute strands_reversed
0 means that strand and hstrand are the original strands obtained
from the alignment program used
1 means that strand and hstrand have been flipped as compared to
the original result provided by the alignment program used.
You may want to use the reverse_complement method to restore the
original strandness.
Returntype : int
Exceptions : none
Caller : general
=cut
sub strands_reversed {
my ($self, $arg) = @_;
if ( defined $arg ) {
$self->{'strands_reversed'} = $arg ;
}
return $self->{'strands_reversed'};
}
=head2 reverse_complement
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment