Utilities¶
-
pysumstats.
cov_matrix_from_phenotype_file
(dataframe, phenotypes=None)¶ Function to generate a covariance (cov_Z) matrix from a phenotype file.
Parameters: - dataframe (pd.Dataframe) – pd.Dataframe containing phenotypic data
- phenotypes (list.) – list of phenotypes to include
Returns: pd.Dataframe of covariance matrix.