Closed JB91451 closed 1 year ago
Dear Metthew,
I figured out that this error is due to the deprecated "normed" keyword in numpys histogram function in hyperparameters.py
Changing it in lines 112, 156 and 227 to "density" fixed the issue.
This is the help text from numpy 1.13: This keyword is deprecated in NumPy 1.6.0 due to confusing/buggy behavior. It will be removed in NumPy 2.0.0. Use the density keyword instead. If False, the result will contain the number of samples in each bin. If True, the result is the value of the probability density function at the bin, normalized such that the integral over the range is 1. Note that this latter behavior is known to be buggy with unequal bin widths; use density instead.
Best, Juergen
Dear Juergen,
Thanks for reporting back and solving the issue. I will fix this soon, or alternatively you can create a pull request with your fixes.
-Matthew
Dear Matthew,
I just created a pull request. As I am not sure up to which version the density keyword is backward compatible, there is a try-except clause and the fix prefers normed. If you want to change it to make density the default in the future you may want to change the requirements accordingly.
Best, Juergen
Great, thank you! I merged your pull request.
I will leave it with the try except clause to ensure backwards compatibility.
Dear Metthew,
when I run the following command on data obtained from DIANN and converted with the diann2triqler script, it results in an error:
I used an entrapment database as decoys for Triqler and let DIANN filter the output to 1% FDR (based on DIANNs decoys, not the entrapment database). Was this correct or could the issue be related to the FDR filtering?
My numpy version is 1.24.3
Best regards, Juergen