IndexError

Issue #18 resolved
Former user created an issue

Hi, I get an index error and I am not sure what I have to do to solve it. This is the error I get:

lsa_compute (rev: 506cc2c) - copyright Li Charlie Xia, lixia@stanford.edu firstData factorNum, repNum, spotNum = 189, 2, 7 secondData factorNum, repNum, spotNum = 189, 2, 7 calculating 35721 pairwise local similarity scores... inside applyAnalysis... computing p_table with Rmax= 10 pairwise calculation... Traceback (most recent call last): File "/services/tools/anaconda2/4.0.0/bin/lsa_compute", line 11, in <module> load_entry_point('lsa==1.0.2', 'console_scripts', 'lsa_compute')() File "/services/tools/anaconda2/4.0.0/lib/python2.7/site-packages/lsa/lsa_compute.py", line 335, in main secondFactorLabels=secondFactorLabels, qvalueMethod=qvalueMethod, progressive=progressive) File "/services/tools/anaconda2/4.0.0/lib/python2.7/site-packages/lsa/lsalib.py", line 1153, in applyAnalysis bootCI, bootNum, fTransform, zNormalize, trendThresh) # do Bootstrap CI File "/services/tools/anaconda2/4.0.0/lib/python2.7/site-packages/lsa/lsalib.py", line 334, in bootstrapCI return ( BS_mean, BS_set[np.floor(bootNuma1)-1], BS_set[np.ceil(bootNuma2)-1] ) IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices

Is there a problem with my indices for the factors? How can I fix this?

Comments (4)

  1. Log in to comment