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' object has no attribute 'cut_general_graph' #7

Open
nt365 opened this issue May 6, 2020 · 2 comments
Open

Comments

@nt365
Copy link

nt365 commented May 6, 2020

Hello,

I am having trouble with the pygco installation. I attempted all of the various suggestions for installation including pip install gco-wrapper which appeared to work successfully. I installed the wrapper with the following:
pip install -r requirements.txt
python setup.py install
and this said it installed the dependencies successfully.

However, when I run the example for phylohmrf I keep getting the attached error.
Command:
python phylo_hmrf.py -n 20 -r 1 --reload 0 --chromvec 21,22 --miter 100 -p ./example_input/
phylohmrf_gco_error.txt

Any feedback into how to solve this issue would be appreciated.

Thank you,
Nicole

@yangymargaret
Copy link
Collaborator

Hi Nicole @nt365,
Thank you very much for your interest in Phylo-HMRF. I do apologize for the delay in my reply. Would you please try installing pygco from the source code? Please refer to the instructions in https://github.com/yujiali/pygco to install pygco. If you could not find gco_source from the original link referred to, you could use the source code in the gco_source file folder contained within this repository. There is a copy of the source code of GCO in ./gco_source. Please see the descriptions in the section 'Required pre-installed packages'. After you have installed pygco, please try 'import pygco' in Python. If it works, then please see if running the example command can work.

Please let me know if this helps or if you have any other questions. Many thanks!

Best regards!
Yang Yang

@nt365
Copy link
Author

nt365 commented Jun 12, 2020

Sorry for the delay,

I was able to make it work by replacing line 496 from "labels=pygco.cut_general_graph" to "labels=gco.cut_general_graph".

Thank you!
Nicole

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