final case class RightReducer(k: Int, forwardOnly: Boolean, intersect: Boolean) extends CountReducer with Product with Serializable
Implements the com.jnpersson.discount.spark.Rule.Right reduction rule
- Alphabetic
- By Inheritance
- RightReducer
- Serializable
- Serializable
- Product
- Equals
- CountReducer
- Reducer
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new RightReducer(k: Int, forwardOnly: Boolean, intersect: Boolean)
Value Members
-
val
forwardOnly: Boolean
Whether to include only canonical (forward oriented) k-mers when reducing
Whether to include only canonical (forward oriented) k-mers when reducing
- Definition Classes
- RightReducer → Reducer
-
def
hasNonZeroTag(tags: Array[Tag]): Boolean
- Definition Classes
- Reducer
-
val
intersect: Boolean
- Definition Classes
- RightReducer → CountReducer
-
val
k: Int
- Definition Classes
- RightReducer → Reducer
-
def
preprocessFirst(bucket: ReducibleBucket): ReducibleBucket
Preprocess bucket A prior to op(A,B)
Preprocess bucket A prior to op(A,B)
- Definition Classes
- Reducer
-
def
preprocessSecond(bucket: ReducibleBucket): ReducibleBucket
Preprocess bucket B prior to op(A,B)
Preprocess bucket B prior to op(A,B)
- Definition Classes
- Reducer
-
def
reduceCounts(count1: Tag, count2: Tag): Tag
- Definition Classes
- RightReducer → CountReducer
-
def
reduceEqualKmers(table: KmerTable, into: Int, from: Int): Unit
Apply a binary operation op(into, from) on the tags of the k-mers at these positions, writing the result in the tags of "into", writing the zero value into the tags of "from".
Apply a binary operation op(into, from) on the tags of the k-mers at these positions, writing the result in the tags of "into", writing the zero value into the tags of "from". This method will only be called on equal k-mers.
- table
The table containing k-mers
- into
Target k-mer index in the table (k-mer A in op(A,B))
- from
Source k-mer index in the table (k-mer B in op(A,B))
- Definition Classes
- CountReducer → Reducer
-
def
shouldKeep(table: KmerTable, kmer: Int): Boolean
Whether to keep the k-mer (together with tag data) after reduction.
Whether to keep the k-mer (together with tag data) after reduction.
- table
The table containing k-mers
- kmer
Index of k-mer to be tested
- Definition Classes
- CountReducer → Reducer
-
val
tagOffset: Int
- Definition Classes
- CountReducer → Reducer
-
val
zeroValue: Tag
A special value that is used to indicate non-existent/redundant k-mers.
A special value that is used to indicate non-existent/redundant k-mers. Should also have the property that op(A, zero) == op(zero, A) for all A
- Definition Classes
- Reducer