Closed EmblaJ closed 2 years ago
That error can arise if there are no supra-threhold clusters. To fix the error, check whether supra-clusters exist when attempting to access cluster details, like this:
if len( snpmi.clusters ) > 0:
cluster = snpmi.clusters[0]
Equivalently, you can instead check whether the null hypothesis is rejected, like this:
if snpmi.h0reject:
cluster = snpmi.clusters[0]
Thanks.
And what do I do when this comes up?
Try moving the print
statement into the if
statement like this:
if len( snpmi.clusters ) > 0:
cluster = snpmi.clusters[0]
print( cluster )
Great, it works now. Thank you!
Hi,
Sometimes I have a problem when conducting a non-parametric t-test in spm (sometimes I don't have this problem). A screen shot of the error is attached.
Can I fix this somehow?
Thank you in advance!