-
Notifications
You must be signed in to change notification settings - Fork 58
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
NanoSim installation failure #162
Comments
Similar to #161:
I think that
|
Ka Ming,
Thanks for your prompt reply. I tried what you suggested (below) and NanoSim installed - apparently cleanly. However, when I try to run it I get the same error I was getting 2 weeks back that led to me to try various fixes. This relates to an apparent incompatibility that arises for some users of scikit-learn – the first example below is when I used your suggested approach, the second is where I simply used pip install –user to replace the version of scikit-learn following a Stack Overflow suggestion. The latter gives an apparent completed run – but no simulated reads are generated.
Trying to unpickle estimator KernelDensity from version 0.21.3 when using version 0.22.1.
Trying to unpickle estimator KernelDensity from version 0.21.3 when using version 0.22.2.post1
I attach the log files from the two runs as they may be more informative for you.
Chris Woodruff
From: Ka Ming Nip ***@***.***>
Date: Friday, 15 April 2022 at 6:32 pm
To: bcgsc/NanoSim ***@***.***>
Cc: Chris Woodruff ***@***.***>, Author ***@***.***>
Subject: Re: [bcgsc/NanoSim] NanoSim installation failure (Issue #162)
Similar to #161<#161>:
If you install from bioconda, it is less likely to have installation issues. For example:
conda create -n nanosim
conda activate nanosim
conda install -c bioconda nanosim
I think that requirements.txt<https://github.com/bcgsc/NanoSim/blob/master/requirements.txt> is overly restrictive and it should be updated to something like so:
htseq
joblib
numpy>=1.21.5
pybedtools>=0.8.1
pysam>=0.15.3
scikit-learn>=0.22.1
scipy
six
genometools-genometools
last
minimap2
samtools
—
Reply to this email directly, view it on GitHub<#162 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AE46HIDT5BM5MD63NB7HGYDVFESS3ANCNFSM5TOXYUQQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Hi Chris,
If the simulation doesn't work, then try upgrading scikit-learn to the latest version?
If that still doesn't work, then I think the pre-trained models need to be updated to work with newer version of scikit-learn. In the mean time, you can also train your own models using public datasets. |
Ka Ming,
Your first suggestion worked – but only after I noticed that a version of scikit-learn that I had installed into my user area was being accessed by NanoSim even though I was running in the nanosim environment. To (ignorant) me this suggests that some code within Nanosim is accessing python packages outside the nanosim environment created. I replaced the scikit-learn version that I had installed to my –user area by version 0.21.3 and that allowed NanoSim to (sort of) run.
There is a still a major problem but it is not the one I raised on Github and that you appear to have resolved.
Thanks for your help.
Chris
From: Ka Ming Nip ***@***.***>
Date: Saturday, 16 April 2022 at 6:37 am
To: bcgsc/NanoSim ***@***.***>
Cc: Chris Woodruff ***@***.***>, Author ***@***.***>
Subject: Re: [bcgsc/NanoSim] NanoSim installation failure (Issue #162)
Hi Chris,
Can you try installing version 0.21.3 of scikit-learn and re-run your simulation?
conda install scikit-learn=0.21.3
If the simulation doesn't work, then try upgrading scikit-learn to the latest version?
conda update scikit-learn
If that still doesn't work, then I think the pre-trained models need to be updated to work with newer version of scikit-learn. In the mean time, you can also train your own models using public datasets.
—
Reply to this email directly, view it on GitHub<#162 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AE46HIHVBKTB6M6EWY44JTLVFHHSBANCNFSM5TOXYUQQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Hi Chris @cjwoodruff50 As @kmnip mentioned, the I am happy to hear that you were able to install NanoSim and make it run. I believe you said you still got a major problem running NanoSim. Please feel free to open another issue ticket and we will be more than happy to help you with that. Finally, as for the
|
Thank you very much for your support. Before I raise a furter issue regarding nanoSim I want to ensure I’ve done my best to ensure that it is not a local problem causing my NanoSim problem.
Chris
From: Saber Hafezqorani ***@***.***>
Date: Wednesday, 20 April 2022 at 6:27 am
To: bcgsc/NanoSim ***@***.***>
Cc: Chris Woodruff ***@***.***>, Mention ***@***.***>
Subject: Re: [bcgsc/NanoSim] NanoSim installation failure (Issue #162)
Hi Chris @cjwoodruff50<https://github.com/cjwoodruff50>
As @kmnip<https://github.com/kmnip> mentioned, the requirements.txt file is overly restrictive and that might be the reason for your package dependency issue. We will update it to make it easier to install packages using that file.
I am happy to hear that you were able to install NanoSim and make it run. I believe you said you still got a major problem running NanoSim. Please feel free to open another issue ticket and we will be more than happy to help you with that.
Finally, as for the scikit-learn package, version 0.22.1 works for me. You may see my comment (issue #131<#131>) on a similar problem here:
Please note that pull request #158<#158> solves this issue by updating the scikit-learn version in requirements.txt
Previous sklearn.neighbors.kde has been renamed to sklearn.neighbors._kde in version 0.22.1<scikit-learn/scikit-learn@62aee06#diff-4ff1a647d9d4ef33358643ec58c914c7>. You have probably a version of scikit-learn older than that. Installing the latest release<https://github.com/scikit-learn/scikit-learn/releases> solves the problem:
pip install scikit-learn==0.22.1
For more information and help, please check this stackoverflow question/answer<https://stackoverflow.com/questions/60145652/no-module-named-sklearn-neighbors-base>
I am closing this issue. If anyone finds a similar issue, please feel free to reopen it and we will be more than happy to help you. Thanks.
Originally posted by @SaberHQ<https://github.com/SaberHQ> in #131 (comment)<#131 (comment)>
—
Reply to this email directly, view it on GitHub<#162 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AE46HIHOJSNYNTS56V7PYWTVF4JIRANCNFSM5TOXYUQQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@SaberHQ would it be possible to update the bioconda recipe? It seems there is a constraint on |
Hi @fgvieira, Can you clarify what version of NanoSim you are trying to install and what error you are getting, if you are having issues with the installation? |
@lcoombe I'd like to install the latest ( And why are the requirements on GitHub: Lines 4 to 15 in db9b936
not the same as in bioconda: |
Thanks for clarifying your question. As @kmnip and @SaberHQ mentioned above, the requirements.txt is overly restrictive. |
If |
Because Nanosim does not require This is also written in the README:
|
@kmnip thanks for your detailed reply! It is just a bit confusing, since |
NanoSim_installation_problems_15April2022.txt
The text was updated successfully, but these errors were encountered: