au.csiro.variantspark.data.Data.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of variant-spark_2.11 Show documentation
Show all versions of variant-spark_2.11 Show documentation
Genomic variants interpretation toolkit
The newest version!
package au.csiro.variantspark.data
import org.apache.spark.mllib.linalg.{Vector, Vectors}
import org.apache.spark.rdd.RDD
trait DataLike {
def size: Int
def at(i: Int): Double
}
trait Data extends DataLike {
def value: Any
def valueAsByteArray: Array[Byte]
def valueAsIntArray: Array[Int]
def valueAsVector: Vector
def valueAsStrings: List[String]
}
trait DataBuilder[V] {
def from(l: List[String]): Data
def from(v: V): Data
def defaultVariableType: VariableType
}