TypeError: The numpy boolean negative, the `-` operator, is not supported, use the `~` operator or the logical_not function instead.
Hi,
I'm trying to run lsa_compute.py with my data, inputting: python2 lsa_compute.py 16S_all.txt 16S_all.lsa -r 3 -s 4 -d 1 -f zero
I already ran check_data and this was fine, but from running lsa_compute the output I get is:
lsa_compute (rev: ) - copyright Li Charlie Xia, lixia@stanford.edu
delayLimit minOccur fillMethod pvalueMethod precision dataFile extraFile resultFile repNum spotNum bootNum transFunc normMethod approxVar trendThresh
1 50 zero perm 1000 16S_all.txt 16S_all.lsa 3 4 0 simple robustZ 1 None
firstData factorNum, repNum, spotNum = 6605, 3, 4
secondData factorNum, repNum, spotNum = 6605, 3, 4
inside applyAnalysis...
pairwise calculation...
Traceback (most recent call last):
File "lsa_compute.py", line 352, in <module>
main()
File "lsa_compute.py", line 331, in main
secondFactorLabels=secondFactorLabels, qvalueMethod=qvalueMethod, progressive=progressive)
File "/Users/u1560915/Documents/OneDrive/PhD_Plastic_Oceans/Experiments/MiSeq_Dada/eLSA_daily/lsalib.py", line 1044, in applyAnalysis
trendThresh, True) #now allowing trend analysis in singleLSA
File "/Users/u1560915/Documents/OneDrive/PhD_Plastic_Oceans/Experiments/MiSeq_Dada/eLSA_daily/lsalib.py", line 217, in singleLSA
xSeries = zNormalize(fTransform(series1))
File "/Users/u1560915/Documents/OneDrive/PhD_Plastic_Oceans/Experiments/MiSeq_Dada/eLSA_daily/lsalib.py", line 804, in robustZNormalize
ranks = tied_rank(tseries)
File "/Users/u1560915/Documents/OneDrive/PhD_Plastic_Oceans/Experiments/MiSeq_Dada/eLSA_daily/lsalib.py", line 703, in tied_rank
V = V[-V.mask] #remove nan's
TypeError: The numpy boolean negative, the -
operator, is not supported, use the ~
operator or the logical_not function instead.
I'm not quite sure what the issue is, and my data doesn't have any 'Na's, I've attached the file that I'm trying to use.
Any help would be appreciated, thanks!