Skip to content

Commit

Permalink
Fix for revcom issues with MAF format from @dandaman, fixes #147"
Browse files Browse the repository at this point in the history
  • Loading branch information
cjfields committed Sep 13, 2016
1 parent a16f466 commit 611e1c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Bio/AlignIO/maf.pm
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ sub next_aln {
$strand = $strand eq '+' ? 1 : $strand eq '-' ? -1 : 0;
my $seq = Bio::LocatableSeq->new('-seq' => $text,
'-display_id' => $src,
'-start' => $start,
'-end' => $start + $size - 1,
'-start' => $strand > 0 ? $start : ($srcsize-($start+$size-2)),
'-end' => $strand > 0 ? ($start + $size - 1) : ($srcsize-($start-1)) ,
'-strand' => $strand,
'-alphabet' => $self->alphabet,
);
Expand Down

0 comments on commit 611e1c5

Please sign in to comment.