Utils

The API for utils functions in ./sushie/utils.py file.

Functions

sushie.utils.make_pip(alpha) Array[source]

The function to calculate posterior inclusion probability (PIP).

sushie.utils.rint(y_val) Array[source]

Perform rank inverse normalization transformation.

sushie.utils.ols(X, ...) Tuple[Array, Array, Array][source]

Perform ordinary linear regression using QR Factorization.

sushie.utils.regress_covar(X, ...) Tuple[Array, Array][source]

Regress phenotypes and genotypes on covariates and return the residuals.

sushie.utils.estimate_her(...) Tuple[float, Array, float, float][source]

Calculate proportion of expression variation explained by genotypes (cis-heritability; \(h_g^2\)).


Last update: Oct 27, 2024