object LinearRegressionGwas extends GlowLogging
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- LinearRegressionGwas
- GlowLogging
- LazyLogging
- AnyRef
- Any
- Hide All
- Show All
Visibility
- 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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
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
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def linearRegressionGwas(genotypes: DenseVector[Double], phenotypes: DenseVector[Double], covariateQR: CovariateQRContext): InternalRow
-
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
runRegression(genotypes: DenseVector[Double], phenotypes: DenseVector[Double], covariateQRContext: CovariateQRContext): RegressionStats
Fits a linear regression model to a single variant.
Fits a linear regression model to a single variant.
The algorithm here is based off the linear regression algorithm used in Hail, as described in https://arxiv.org/pdf/1901.09531.pdf.
At a high level, we compute the QR decomposition once per covariate matrix, and use Q to project the genotypes into the orthogonal complement of the column space of the covariate matrix. Then we use a simple algorithm for linear regression with one independent variable to solve for relevant output (https://en.wikipedia.org/wiki/Simple_linear_regression#Numerical_example).
-
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( ... )