Collaboration diagram for org::gel::mauve::tree::GISTree:

Public Member Functions | |
| void | _splay (int index) |
| splay this node to the root of the tree | |
| long | columnToSeqPos (long column) |
| Convert a column index to a sequence index, taking the nearest seq index to the left if the column falls in a gap region. | |
| int | find (long seq_point) |
| find the interval containing a position in the gapped sequence | |
| int | find_seqindex (long seq_point) |
| find the interval containing a position in the ungapped sequence | |
| Key | getKey (int index) |
| int | getLeft (int index) |
| long | getLength (int index) |
| int | getParent (int index) |
| int | getRight (int index) |
| long | getSeqLength (int index) |
| long | getSequenceStart (int index) |
| long | getStart (int index) |
| GISTree (TreeStore ts) | |
| Create a new GISTree using the given TreeStore to store data. | |
| Key | increment (int index) |
| returns the Key of the node immediately to the right of x, or null if x is already the righ-most tree node | |
| int | insert (Key val, long point) |
| long | length () |
| returns the total length of the gapped sequence stored in the tree | |
| int | recursiveFind (int index, long[] position) |
| find the node below cur_node containing a given position in the gapped sequence, starting at the left-most position below cur_node | |
| int | recursiveSeqFind (int index, long[] position) |
| Find the node below cur_node containing a given position in the ungapped sequence, starting at the left-most position below cur_node. | |
| long | seqPosToColumn (long seq_index) |
| Convert a sequence coordinate to a column index. | |
| long | sequenceLength () |
| returns the length of ungapped sequence stored in the tree | |
| void | setKey (int index, Key k) |
| void | setLeft (int index, int l) |
| void | setLength (int index, long l) |
| void | setParent (int index, int p) |
| void | setRight (int index, int r) |
| void | setSeqLength (int index, long l) |
Static Public Attributes | |
| long | end = Long.MAX_VALUE |
Protected Member Functions | |
| void | splay (int index) |
| splay a node to the root of the tree | |
Package Attributes | |
| int | rootIndex = TreeStore.NULL_REF |
| TreeStore | ts = null |
Static Package Attributes | |
| final long | serialVersionUID = 1 |
Private Member Functions | |
| void | recalculateLengths (int index) |
Implemented using a splay tree for O(n log n) amortized time complexity operations.
Definition at line 11 of file GISTree.java.
|
|
Create a new GISTree using the given TreeStore to store data.
Definition at line 21 of file GISTree.java. |
|
|
splay this node to the root of the tree
Definition at line 203 of file GISTree.java. References org::gel::mauve::tree::TreeStore::left, org::gel::mauve::tree::TreeStore::parent, recalculateLengths(), org::gel::mauve::tree::TreeStore::right, and ts. Referenced by splay(). |
|
|
Convert a column index to a sequence index, taking the nearest seq index to the left if the column falls in a gap region.
Definition at line 174 of file GISTree.java. References find(), getKey(), org::gel::mauve::tree::Key::getSeqLength(), getSequenceStart(), and getStart(). |
|
|
find the interval containing a position in the gapped sequence
Definition at line 38 of file GISTree.java. References recursiveFind(), rootIndex, and splay(). Referenced by columnToSeqPos(). |
|
|
find the interval containing a position in the ungapped sequence
Definition at line 47 of file GISTree.java. References recursiveSeqFind(), rootIndex, and splay(). Referenced by seqPosToColumn(). |
|
|
Definition at line 366 of file GISTree.java. References org::gel::mauve::tree::TreeStore::key, and ts. Referenced by columnToSeqPos(), and insert(). |
|
|
Definition at line 390 of file GISTree.java. References org::gel::mauve::tree::TreeStore::left, and ts. Referenced by getSequenceStart(), getStart(), and insert(). |
|
|
Definition at line 382 of file GISTree.java. References org::gel::mauve::tree::TreeStore::length, and ts. Referenced by getStart(). |
|
|
Definition at line 406 of file GISTree.java. References org::gel::mauve::tree::TreeStore::parent, and ts. |
|
|
Definition at line 398 of file GISTree.java. References org::gel::mauve::tree::TreeStore::right, and ts. Referenced by insert(). |
|
|
Definition at line 374 of file GISTree.java. References org::gel::mauve::tree::TreeStore::seqLength, and ts. Referenced by getSequenceStart(), and sequenceLength(). |
|
|
Definition at line 55 of file GISTree.java. References getLeft(), getSeqLength(), rootIndex, and splay(). Referenced by columnToSeqPos(), and seqPosToColumn(). |
|
|
Definition at line 61 of file GISTree.java. References getLeft(), getLength(), rootIndex, and splay(). Referenced by columnToSeqPos(), and seqPosToColumn(). |
|
|
returns the Key of the node immediately to the right of x, or null if x is already the righ-most tree node
Definition at line 268 of file GISTree.java. References org::gel::mauve::tree::TreeStore::key, org::gel::mauve::tree::TreeStore::left, org::gel::mauve::tree::TreeStore::parent, org::gel::mauve::tree::TreeStore::right, and ts. |
|
||||||||||||
|
|
returns the total length of the gapped sequence stored in the tree
Definition at line 26 of file GISTree.java. References org::gel::mauve::tree::TreeStore::length, rootIndex, and ts. Referenced by org::gel::mauve::XMFAAlignment::SuppressWarnings(). |
|
|
||||||||||||
|
find the node below cur_node containing a given position in the gapped sequence, starting at the left-most position below cur_node
Definition at line 301 of file GISTree.java. References org::gel::mauve::tree::Key::getLength(), org::gel::mauve::tree::TreeStore::key, org::gel::mauve::tree::TreeStore::left, org::gel::mauve::tree::TreeStore::length, org::gel::mauve::tree::TreeStore::right, and ts. |
|
||||||||||||
|
Find the node below cur_node containing a given position in the ungapped sequence, starting at the left-most position below cur_node.
Definition at line 340 of file GISTree.java. References org::gel::mauve::tree::Key::getSeqLength(), org::gel::mauve::tree::TreeStore::key, org::gel::mauve::tree::TreeStore::left, org::gel::mauve::tree::TreeStore::right, org::gel::mauve::tree::TreeStore::seqLength, and ts. Referenced by find_seqindex(). |
|
|
Convert a sequence coordinate to a column index.
Definition at line 162 of file GISTree.java. References find_seqindex(), getSequenceStart(), and getStart(). Referenced by org::gel::mauve::XMFAAlignment::getRange(). |
|
|
returns the length of ungapped sequence stored in the tree
Definition at line 33 of file GISTree.java. References getSeqLength(), and rootIndex. |
|
||||||||||||
|
Definition at line 370 of file GISTree.java. References org::gel::mauve::tree::TreeStore::key, and ts. Referenced by insert(). |
|
||||||||||||
|
Definition at line 394 of file GISTree.java. References org::gel::mauve::tree::TreeStore::left, and ts. Referenced by insert(). |
|
||||||||||||
|
Definition at line 386 of file GISTree.java. References org::gel::mauve::tree::TreeStore::length, and ts. Referenced by insert(). |
|
||||||||||||
|
Definition at line 410 of file GISTree.java. References org::gel::mauve::tree::TreeStore::parent, and ts. Referenced by insert(). |
|
||||||||||||
|
Definition at line 402 of file GISTree.java. References org::gel::mauve::tree::TreeStore::right, and ts. Referenced by insert(). |
|
||||||||||||
|
Definition at line 378 of file GISTree.java. References org::gel::mauve::tree::TreeStore::seqLength, and ts. Referenced by insert(). |
|
|
splay a node to the root of the tree
Definition at line 154 of file GISTree.java. References _splay(), and rootIndex. Referenced by find(), find_seqindex(), getSequenceStart(), getStart(), and insert(). |
|
|
Definition at line 14 of file GISTree.java. |
|
|
Definition at line 16 of file GISTree.java. Referenced by find(), find_seqindex(), getSequenceStart(), getStart(), insert(), length(), sequenceLength(), and splay(). |
|
|
Definition at line 12 of file GISTree.java. |
|
|
Definition at line 18 of file GISTree.java. Referenced by _splay(), getKey(), getLeft(), getLength(), getParent(), getRight(), getSeqLength(), increment(), insert(), length(), recalculateLengths(), recursiveFind(), recursiveSeqFind(), setKey(), setLeft(), setLength(), setParent(), setRight(), and setSeqLength(). |
1.3.6