nboley / idr

IDR
GNU General Public License v2.0
164 stars 45 forks source link

error: Use a.any() or a.all()_ #57

Closed LunaPatton closed 2 years ago

LunaPatton commented 3 years ago

Hi When I ran ATAC-Seq data with IDR and encountered below error for so many times. so why it came? code: _idr --samples sample1_peaks.narrowPeak sample2_peaks.narrowPeak \ --input-file-type narrowPeak \ --rank p.value \ --output-file $workdir/IDR/repidr \ --plot \ --log-output-file $workdir/IDR/rep.idr.log

error: _File "/mypathtodir/site-packages/idr-2.0.2-py3.8-linux-x86_64.egg/idr/idr.py", line 415, in write_results_tofile if localIDRs == None or IDRs == None: ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

Thanks !

Best wishes Zoe

LunaPatton commented 3 years ago

@nboley

IrisWEI-1996 commented 3 years ago

Hi I met a same problem using idr-2.0.2 and solved it by reinstalling idr-2.0.4 with Anaconda.

LunaPatton commented 2 years ago

Hi I met a same problem using idr-2.0.2 and solved it by reinstalling idr-2.0.4 with Anaconda.

I solved this problem by installing idr-2.0.3. The reason why it occurred still unknow.