Packages

c

com.jnpersson.kmers.util

KmerTableBuilder

class KmerTableBuilder extends AnyRef

Builder for k-mer tables. K-mers are built by gradually adding longs in order. The builder is not reusable.

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

Instance Constructors

  1. new KmerTableBuilder(width: Int, tagWidth: Int, sizeEstimate: Int, k: Int)

    width

    Total width of k-mers (in longs, e.g. ceil(k/32)), including tag data. This is the total number of columns in the final table.

    tagWidth

    With of extra longs used to annotate k-mers with additional information (part of width)

    sizeEstimate

    Estimated number of k-mers that will be inserted. This is the number of rows in the final table.

    k

    k

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addLong(x: Long): Unit

    Add a single long value.

    Add a single long value. Calling this method 'width' times adds a single k-mer to the table.

  5. def addLongUnsafe(x: Long): Unit

    Add a long without checking bounds.

    Add a long without checking bounds. Users are responsible for calling beginRow() and finishRow() as needed.

  6. def addLongsUnsafe(xs: Array[Long]): Unit

    Add multiple long values without checking bounds.

    Add multiple long values without checking bounds. Users are responsible for calling beginRow() and finishRow() as needed.

  7. def addRow(xs: Array[Long]): Unit

    Add a complete row.

    Add a complete row. The array must have the correct number of elements matching the width of this table.

  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def beginRow(): Unit

    Start a new row in this table.

    Start a new row in this table. The row can be added to using the addLong and addLongs methods. After the row is complete, finishRow should be called. The buffers may grow when this method is called.

  10. val buffers: Array[Array[Long]]

    Resizable Long buffers.

    Resizable Long buffers. These will always be of equal length.

    Attributes
    protected
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  12. def ensureSize(reqSize: Int): Unit
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  15. def finishRow(): Unit

    Complete a row in this table.

  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  22. def result(sort: Boolean): KmerTable

    Construct a k-mer table that contains all the inserted k-mers.

    Construct a k-mer table that contains all the inserted k-mers. After calling this method, this builder is invalid and should be discarded.

    sort

    Whether the k-mers should be sorted.

    returns

    The resulting k-mer table

  23. var size: Int

    Number of items stored in the buffers

    Number of items stored in the buffers

    Attributes
    protected
  24. def skipRow(): Unit
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped