object VariantQcExprs extends GlowLogging
Contains implementations of QC functions. These implementations are called during both whole-stage codegen and interpreted execution.
The functions are exposed to the user as Catalyst expressions.
- Alphabetic
- By Inheritance
- VariantQcExprs
- GlowLogging
- LazyLogging
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
arraySummaryStats(arrayData: ArrayData): InternalRow
Calculates basic summary stats (min, max, mean, sample stddev) on an array of double typed values.
Calculates basic summary stats (min, max, mean, sample stddev) on an array of double typed values. These are calculated using a one pass algorithm described in https://arxiv.org/abs/1510.04923
The algorithm used is adapted from org.apache.spark.sql.catalyst.expressions.aggregate.CentralMomentAgg
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def callStats(genotypes: ArrayData, genotypesSize: Int, genotypeIdx: Int): InternalRow
-
def
callStatsBase(genotypes: ArrayData, genotypesSize: Int, genotypesIdx: Int): CallStatsStruct
Calculates a variety of summary stats on the calls for a given site.
Calculates a variety of summary stats on the calls for a given site. This method returns a case class so that the output can be used easily from other QC functions as well as returned directly to the user.
- genotypes
an array of structs with the schema defined in CallStats.requiredSchema
- genotypesIdx
the position of the calls within the element struct of the genotypes array
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hardyWeinberg(genotypes: ArrayData, genotypesSize: Int, genotypeIdx: Int): GenericInternalRow
Performs a two-sided test of the Hardy-Weinberg equilibrium.
Performs a two-sided test of the Hardy-Weinberg equilibrium. Returns the expected het frequency as well as the associated p value.
- genotypes
an array of structs with the schema required by CallStats
- genotypeIdx
the position of the genotype struct (with calls and phasing info) within the element struct of the genotypes array
- returns
a row with the schema of HardyWeinbergStruct
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
lazy val
logger: Logger
- Attributes
- protected
- Definition Classes
- LazyLogging
-
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
subsetExpr(schema: StructType, expr: Expression): Expression
Converts an array of struct-typed expressions into a slimmed down struct with a subset of the fields.
Converts an array of struct-typed expressions into a slimmed down struct with a subset of the fields.
We use this function for many of the variant QC functions so that each function can require a specific schema without requiring that the VCFRow schema remain fixed for all time.
- schema
the desired schema
- expr
an array of struct-typed expressions that contains a superset of the fields in
schema- returns
a transformed array of struct-typed expressions with the schema of
schema
-
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
- @native() @throws( ... )