Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'numpy' has no attribute 'int' #64

Open
narzouni opened this issue Dec 21, 2022 · 2 comments
Open

AttributeError: module 'numpy' has no attribute 'int' #64

narzouni opened this issue Dec 21, 2022 · 2 comments

Comments

@narzouni
Copy link

Hello,
When I try to run IDR on two replicates, it gives me the following attribute error:

AttributeError: module 'numpy' has no attribute 'int'

This is the command I am using for IDR:

idr --samples Rep1.narrowPeak Rep2.narrowPeak --input-file-type narrowPeak --rank p.value --output-file ELSIdr56 --plot --log-output-file ELSIDR56.log

Thanks,

@KMt9WT
Copy link

KMt9WT commented Jan 17, 2023

I suggest using a combination of numpy version 1.19.5 and idr, as using numpy version 1.20.0 or higher may cause inconsistencies with idr due to the deprecation of built-in type aliases like np.int .

https://numpy.org/doc/stable/release/1.20.0-notes.html#using-the-aliases-of-builtin-types-like-np-int-is-deprecated

@The1stMartian
Copy link

I was able to fix this issue by editing idr.py lines 305 and 306 from "numpy.int" to "numpy.int_"

jpcartailler added a commit to jpcartailler/idr that referenced this issue May 14, 2024
Fix for numpy versioning - see nboley#64 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants