class Sampling extends AnyRef
Routines for creating and managing frequency sampled minimizer orderings.
- Alphabetic
- By Inheritance
- Sampling
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Sampling()(implicit spark: SparkSession)
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def countFeatures(reads: Dataset[NTSeq], table: MinTable, partitions: Int): SampledFrequencies
-
def
createSampledTable(input: Dataset[NTSeq], template: MinTable, sampledFraction: Double, persistLocation: Option[String] = None): MinTable
Create a MinTable based on sampling reads for minimizer frequencies.
Create a MinTable based on sampling reads for minimizer frequencies.
- input
Input reads
- template
Template table, containing minimizers to sort according to frequencies in the sample
- sampledFraction
Fraction of input data to sample
- persistLocation
Location to optionally write the new table to for later reuse
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
motifCounts(reads: Dataset[NTSeq], table: MinTable, partitions: Int): DataFrame
Count motifs (m-length minimizers) in a set of reads.
Count motifs (m-length minimizers) in a set of reads.
- table
Template table with a motif set
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
persistMinimizers(table: MinTable, location: String): Unit
Write a MinTable's minimizer ordering to a file
Write a MinTable's minimizer ordering to a file
- table
The ordering to write
- location
Prefix of the location to write to. A suffix will be appended to this name.
-
def
persistMinimizers(splitter: MinSplitter[_], location: String): Unit
Write a splitter's minimizer ordering to a file
Write a splitter's minimizer ordering to a file
- splitter
Splitter containing the ordering to write
- location
Prefix of the location to write to. A suffix will be appended to this name.
- def readMotifList(location: String): Array[String]
-
def
readMotifList(location: String, k: Int, m: Int): Array[String]
Read a saved minimizer ordering/motif list
Read a saved minimizer ordering/motif list
- location
Location to read from. If the location is a directory, it will be scanned for files called minimizers_{k}_{m} for various values of m and k and the most optimal file will be used. If it is a file, the file will be read as is.
- k
k-mer width
- m
minimizer length
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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()
- def writeFrequencies(f: SampledFrequencies, location: String): Unit