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

NanoSim installation failure #162

Open
cjwoodruff50 opened this issue Apr 14, 2022 · 6 comments
Open

NanoSim installation failure #162

cjwoodruff50 opened this issue Apr 14, 2022 · 6 comments

Comments

@cjwoodruff50
Copy link

NanoSim_installation_problems_15April2022.txt

@kmnip
Copy link
Collaborator

kmnip commented Apr 15, 2022

Similar to #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 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

@cjwoodruff50
Copy link
Author

cjwoodruff50 commented Apr 15, 2022 via email

@kmnip
Copy link
Collaborator

kmnip commented Apr 15, 2022

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.

@cjwoodruff50
Copy link
Author

cjwoodruff50 commented Apr 17, 2022 via email

@SaberHQ
Copy link
Member

SaberHQ commented Apr 19, 2022

Hi Chris @cjwoodruff50

As @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) on a similar problem here:

Please note that pull request #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. You have probably a version of scikit-learn older than that. Installing the latest release solves the problem:

pip install scikit-learn==0.22.1

For more information and help, please check this stackoverflow question/answer

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 in #131 (comment)

@cjwoodruff50
Copy link
Author

cjwoodruff50 commented Apr 19, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants