Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

AttributeError: module 'data_tools' has no attribute 'structure_from_file' #24

Open
songxh1996 opened this issue Mar 15, 2023 · 4 comments

Comments

@songxh1996
Copy link

I tested to run single chromosome structure script.

fig1.py:
import data_tools
import plotting
structure = data_tools.structure_from_file("outhic_1_500kb_structure.tsv")
plotting.plot_structure_interactive(structure, color=(0,0.5,0.7), radius=0.01)

(miniMDS) [xh@mu01 bed]$ python3 fig1.py

Traceback (most recent call last):
File "/pub3/Liu-group/songxh/hi_c/ld/minimds/bed/fig1.py", line 3, in
structure = data_tools.structure_from_file("outhic_1_500kb_structure.tsv")
AttributeError: module 'data_tools' has no attribute 'structure_from_file'

if you have some ideas, please.

@Lila14
Copy link
Contributor

Lila14 commented Mar 20, 2023

Sorry, I can't replicate the error when I test your code. Have you pulled the latest version? Also how did you add the scripts to your python path?

@songxh1996
Copy link
Author

Sorry, I can't replicate the error when I test your code. Have you pulled the latest version? Also how did you add the scripts to your python path?

I think there is a problem with my configuration, can you tell me the version of the configuration and dependent packages you use, including the version of python, etc.

@songxh1996
Copy link
Author

Dependency packages are not compatible in the requirements.txt:

matplotlib==2.0.0 Requires: Python < 3.6
https://pypi.org/project/matplotlib/2.0.0/#files

numpy==1.22.0 Requires: Python >=3.8
https://pypi.org/project/numpy/1.22.0/#files

pymp-pypi==0.3.1
scikit-learn==0.19.0
scipy==0.19.1

Sorry, I can't replicate the error when I test your code. Have you pulled the latest version? Also how did you add the scripts to your python path?

@Lila14
Copy link
Contributor

Lila14 commented Mar 29, 2023

I've updated the requirements, can you try again?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants