idr
idr copied to clipboard
idr error with narrowPeaks
Hi, I run idr with the test narrowPeaks files and my own narrowPeaks files. They all ended up with an error:
[wszheng@guru idr-2.0.2]$ idr --samples tests/data/peak1 tests/data/peak2
WARNING: Cython does not appear to be installed.- falling back to much slower python method.
Initial parameter values: [0.10 1.00 0.20 0.50]
/home/wszheng/Install/Python-3.6.1/bin/idr --samples tests/data/peak1 tests/data/peak2
Traceback (most recent call last):
File "/home/wszheng/Install/Python-3.6.1/bin/idr", line 4, in
File "/home/wszheng/Install/Source_binaries/idr-2.0.2/idr/idr.py", line 391, in fit_model_and_calc_idr
fix_mu=fix_mu, fix_sigma=fix_sigma)
File "/home/wszheng/Install/Source_binaries/idr-2.0.2/idr/optimization.py", line 468, in estimate_model_params
fix_mu=fix_mu, fix_sigma=fix_sigma)
File "/home/wszheng/Install/Source_binaries/idr-2.0.2/idr/optimization.py", line 420, in EMP_with_pseudo_value_algorithm
z1 = compute_pseudo_values(r1, theta[0], theta[1], theta[3])
File "/home/wszheng/Install/Source_binaries/idr-2.0.2/idr/utility.py", line 46, in py_compute_pseudo_values
-10, 10, EPS ) )
TypeError: py_cdf_i() takes 6 positional arguments but 7 were given
Can anyone help me figure out this problem? Thanks very much.
@wisense Were you able to find a solution for this? I am experiencing the same issue.
Hi,
I received this error and a variety of others (to do with numpy, cython, matplotlib, the error referenced in #34 ) and ultimately got it to work by using the idr provided on bioconda. I created the following conda environment:
conda create --name idr_filtering python=3.6 cython numpy matplotlib scipy libgfortran idr
and it seemed to run after that. Hopefully this is helpful to someone.