Skip to content
Snippets Groups Projects
Commit 77459f82 authored by Hanna  JULIENNE's avatar Hanna JULIENNE
Browse files

add filter for infinite value in covariance estimator

parent 5612e95b
No related branches found
No related tags found
1 merge request!43Correct phenotype 'type' property undefined in the API
......@@ -174,6 +174,7 @@ def compute_covariance_zscore(init_file_path, path_covariance=None):
j = 0
for tr1 in trait:
for tr2 in trait[j:]:
sum_stat_jost_tab[[tr1, tr2]].replace([np.inf, -np.inf], np.nan, inplace=True)
cc = sum_stat_jost_tab[[tr1, tr2]].dropna()
cc = cc.loc[cc.max(1) < 4]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment