Trait/Object

gstlib

GeneralizedSuffixTree

Related Docs: object GeneralizedSuffixTree | package gstlib

Permalink

trait GeneralizedSuffixTree[Alphabet, Repr] extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GeneralizedSuffixTree
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def bulkMultipleCommonSubsequence(): Iterator[(Int, Repr)]

    Permalink

    Efficiently computes an iterator over the multiple common subsequences from this generalized suffix tree.

    Efficiently computes an iterator over the multiple common subsequences from this generalized suffix tree.

    Pre-processing of this algorithm has a linear-time complexity. It is fully described in section 9.7 "A linear-time solution to the multiple common substring problem" of Dan Gusfield's book "Algorithms on Strings, Trees, and Sequences" (1997).

    returns

    An iterator over the sequences along with their frequencies

  2. abstract def contains(pattern: Repr): Boolean

    Permalink

    Determines if a pattern is contained in the suffix tree

  3. abstract def find(pattern: Repr): List[(SequenceID, Int)]

    Permalink

    Determines the occurrences of a pattern in this suffix tree

    Determines the occurrences of a pattern in this suffix tree

    returns

    A list of pairs containing the sequence ID and the position of the given sequence as a starting index (starting from 0, else an empty list

  4. abstract def findLongestCommonSubsequences(pattern: Repr): Seq[(Int, Int, Set[(SequenceID, Int)])]

    Permalink

    Determines the longest common subsequences between a given pattern and the generalized suffix tree.

    Determines the longest common subsequences between a given pattern and the generalized suffix tree.

    For instance, given a suffix tree containing sequences:

    • Scala|is|awesome|! (sequence 0)
    • Programming|is|awesome|. (sequence 1)
    • Scala|is|cool|! (sequence 2) And given a pattern: |Well|,|Scala|is|...|cool|!

    It will return:

    • (2, 4, Set((0, 0), (2, 0))) i.e. the position of subpattern Scala|is in sequences 0 and 2
    • (5, 7, Set((2, 2))) i.e. the position of subpattern cool|! in sequence 2
    returns

    an empty list if the longest common subsequence does not exist, else a list of triple containing the starting index (inclusive, starting from 0), the end index (exclusive) and the set of sequence IDs containing this subsequence along with the starting position of the (sub)pattern in the sequence (starting from 0).

  5. abstract def fullSequences(): Iterator[Repr]

    Permalink

    Computes an iterator over the full sequences of this generalized suffix tree

  6. abstract def getSequenceBy(id: SequenceID): Repr

    Permalink

    Retrieves a sequence by a given ID

  7. abstract def multipleCommonSubsequence(): CommonSubsequences[Repr]

    Permalink

    Computes the multiple common subsequence from this generalized suffix tree.

    Computes the multiple common subsequence from this generalized suffix tree.

    This method is NOT efficient for large tree, see bulkMultipleCommonSubsequence instead.

    Pre-processing of this algorithm has a linear-time complexity. It is fully described in section 9.7 "A linear-time solution to the multiple common substring problem" of Dan Gusfield's book "Algorithms on Strings, Trees, and Sequences" (1997).

  8. abstract def nSuffixes(): Int

    Permalink

    Number of suffixes in this generalized suffix tree

  9. abstract def size(): Int

    Permalink

    Number of sequences in this suffix tree

  10. abstract def suffixes(): Iterator[Repr]

    Permalink

    Computes an iterator over the suffixes of this generalized suffix tree

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  16. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped