lcrawlab/mvMAPIT

pleiotropic_set step fails if there are too little pleiotropic SNPs

yzhong36 opened this issue · 0 comments

In simulate_data.R, line 130:

if there are only two pleiotropic snps given the parameter n_pleiotropic = 2 , it causes the error: Error in { : task 1 failed - "incorrect number of dimensions"

Potential solution: in line 127-128:
X_pleio_group1 <- X[, pleio_split$group1, drop = False]
X_pleio_group2 <- X[, pleio_split$group2, drop = False]
which make X_pleio_group1 and X_pleio_group2 to be matrix form instead of vector