class KmerTableBuilder extends AnyRef
Builder for k-mer tables. K-mers are built by gradually adding longs in order. The builder is not reusable.
- Alphabetic
- By Inheritance
- KmerTableBuilder
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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.
-
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.
-
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.
-
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.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
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.
-
val
buffers: Array[Array[Long]]
Resizable Long buffers.
Resizable Long buffers. These will always be of equal length.
- Attributes
- protected
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
- def ensureSize(reqSize: Int): Unit
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finishRow(): Unit
Complete a row in this table.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
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
-
var
size: Int
Number of items stored in the buffers
Number of items stored in the buffers
- Attributes
- protected
- def skipRow(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated