Open mjsduncan opened 4 years ago
dropping singletons (where case or control MAC=0) produces the same error. also, reducing the power range to stop at 21 or 10 produces the same error but the power value in the second column still goes to 22 to fail (as in line 102 in op example output), are the alternate input values not being used?
warnings()
# Warning messages:
# 1: In as.vector(log10(dk)) : NaNs produced
# 2: In as.vector(log10(dk)) : NaNs produced
# 3: In as.vector(log10(dk)) : NaNs produced
# ...
# 49: In as.vector(log10(dk)) : NaNs produced
# 50: In as.vector(log10(dk)) : NaNs produced
i have a large and unbalanced data set: ~ 30k snps, 500 cases, 30 controls. i've successfully generated the correlation matrices but running generate.modules seems to process the snps initially but then produces this error generating one of the output tables:
there were originally some snps with no alternate alleles (all samples had value 0) but the same error occurs when they are removed. there are lots of singltons though. i tried reducing the input power matrix default from 12:22 in the columns to 12:21 but that didn't help. any suggestions?
thanks for your work! mike