Skip to content

Commit

Permalink
Linear sequence viewer does not display full sequence (#246)
Browse files Browse the repository at this point in the history
* fix aa end index.

* format

---------

Co-authored-by: Nick Rosenau <[email protected]>
  • Loading branch information
digithed and Nick Rosenau authored Nov 27, 2023
1 parent 1534473 commit 0962fb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SeqViz.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ export default class SeqViz extends React.Component<SeqVizProps, SeqVizState> {
showIndex: !!showIndex,
translations: (translations || []).map((t): { direction: 1 | -1; end: number; start: number } => ({
direction: t.direction ? (t.direction < 0 ? -1 : 1) : 1,
end: t.start + Math.floor((t.end - t.start) / 3) * 3,
end: seqType === "aa" ? t.end : t.start + Math.floor((t.end - t.start) / 3) * 3,
start: t.start % seq.length,
})),
viewer: this.props.viewer || "both",
Expand Down

0 comments on commit 0962fb9

Please sign in to comment.