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

Error when calling CancerDetector function #7

Open
jeffsun905 opened this issue Dec 11, 2023 · 3 comments
Open

Error when calling CancerDetector function #7

jeffsun905 opened this issue Dec 11, 2023 · 3 comments

Comments

@jeffsun905
Copy link

When I was testing the included test data, I got the following errors for the function (all previous functions are ok). It appears the conda environment related?
CancerDetector(fragMethFile, markerParamFile)
Traceback (most recent call last):
File "/home/cfTools/python/CalcReadLikelihood.py", line 10, in
from scipy.special import gamma
ModuleNotFoundError: No module named 'scipy'
Traceback (most recent call last):
File "/home/cfTools/python/CancerDetector.py", line 10, in
import numpy as np
ModuleNotFoundError: No module named 'numpy'

@RoseHuRan
Copy link
Collaborator

cfTools uses the package basilisk to manage running python code, which will create a Conda environment. Please make sure that the basilisk library is installed.

@jeffsun905
Copy link
Author

yes it was installed and can be loaded.

@RoseHuRan
Copy link
Collaborator

It seems that the Conda environment has not been created successfully. I apologize that I cannot figure it out without the complete information about the error message and the steps you took.

If you can read the CancerDetector.R code in the Github R folder, you can find that it just run two python scripts: CalcReadLikelihood.py and CancerDetector.py in the inst/python folder. You can try directly running these two python scripts with the input data.

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

2 participants