Skip to content

Commit

Permalink
Better checking for missing genotypes / phenotypes.
Browse files Browse the repository at this point in the history
  • Loading branch information
adriaan-vd-graaf committed Sep 6, 2024
1 parent 6db37f0 commit 232cad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mr_link_2_standalone.py
Original file line number Diff line number Diff line change
Expand Up @@ -1344,7 +1344,7 @@ def maf_func(x):
ld_matrix = np.corrcoef(genotypes.T)

# it can happen that there are no SNPs available after this filter , we return None.
if genotypes.shape[1] == 0 or ld_matrix.shape[0] == 0:
if genotypes.shape[1] == 0:
return None, None

try:
Expand Down

0 comments on commit 232cad9

Please sign in to comment.