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 'genomics' has no attribute 'SampleData' #68

Open
Elahep opened this issue Feb 17, 2022 · 1 comment
Open

AttributeError: module 'genomics' has no attribute 'SampleData' #68

Elahep opened this issue Feb 17, 2022 · 1 comment

Comments

@Elahep
Copy link

Elahep commented Feb 17, 2022

Hi Simon,

When running popgenWindows.py I get the attribute error:

Traceback (most recent call last):
File "./popgenWindows.py", line 300, in
sampleData = genomics.SampleData(indNames = allInds, popNames = popNames, popInds = popInds, ploidyDict = ploidyDict)
AttributeError: module 'genomics' has no attribute 'SampleData'

Before running the code I pip installed pygenomics. Is there any other package that I need to install to solve this error?

Thanks a lot!
Elahe

@simonhmartin
Copy link
Owner

Hi Elahe,
The genomics module is the script genomics.py in genomics_general. If you download the whole directory you will get it. You then need to make sure it is in the same directory as the popgenWindows.py script, or in your PYTHONPATH.
Best wishes,
Simon

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