-
sushie.utils.estimate_her(X: Array | ndarray | bool | number | bool | int | float | complex, y: Array | ndarray | bool | number | bool | int | float | complex, covar: Array | ndarray | bool | number | bool | int | float | complex | None =
None
, normalize: bool =True
) Tuple[float, Array, float, float] [source] Calculate proportion of expression variation explained by genotypes (cis-heritability; \(h_g^2\)).
- Parameters:
- X: Array | ndarray | bool | number | bool | int | float | complex¶
\(n \times p\) matrix for independent variables with no intercept vector.
- y: Array | ndarray | bool | number | bool | int | float | complex¶
\(n \times 1\) vector for gene expression.
- covar: Array | ndarray | bool | number | bool | int | float | complex | None =
None
¶ \(n \times m\) matrix for covariates.
- normalize: bool =
True
¶ Boolean value to indicate whether normalize X and y
- Returns:
- Return type:
Tuple[float, float, float, float, float]
Last update:
Oct 27, 2024