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 about differential_md_score.py line 273 #40

Open
hongjianjin opened this issue Apr 10, 2024 · 0 comments
Open

Error about differential_md_score.py line 273 #40

hongjianjin opened this issue Apr 10, 2024 · 0 comments

Comments

@hongjianjin
Copy link

hongjianjin commented Apr 10, 2024

Error message
#####################################################
File "/.local/bin/differential_md_score", line 8, in
sys.exit(differential_md_score())
^^^^^^^^^^^^^^^^^^^^^^^
File "
/.local/lib/python3.11/site-packages/DAStk/init.py", line 12, in differential_md_score
d.main()
File "/.local/lib/python3.11/site-packages/DAStk/differential_md_score.py", line 273, in main
adjust_text(texts, force_points=1, expand_points=(2,2), expand_text=(2,2), arrowprops=dict(arrowstyle="-", lw=1, color='black', alpha=0.8))
File "
/.local/lib/python3.11/site-packages/adjustText/init.py", line 589, in adjust_text
arrowpatch = FancyArrowPatch(
^^^^^^^^^^^^^^^^
File "/.local/lib/python3.11/site-packages/matplotlib/_api/deprecation.py", line 454, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "
/.local/lib/python3.11/site-packages/matplotlib/patches.py", line 4229, in init
super().init(**kwargs)
File "/.local/lib/python3.11/site-packages/matplotlib/_api/deprecation.py", line 454, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "
/.local/lib/python3.11/site-packages/matplotlib/patches.py", line 98, in init
self._internal_update(kwargs)
File "/.local/lib/python3.11/site-packages/matplotlib/artist.py", line 1186, in _internal_update
return self._update_props(
^^^^^^^^^^^^^^^^^^^
File "
/.local/lib/python3.11/site-packages/matplotlib/artist.py", line 1160, in _update_props
raise AttributeError(
AttributeError: FancyArrowPatch.set() got an unexpected keyword argument 'force_points'

#############################################################
#differential_md_score.py line 273
adjust_text(texts, force_points=1, on_basemap=True, expand_points=(5,5), expand_text=(3,3), arrowprops=dict(arrowstyle="-", lw=1, color='grey', alpha=0.5))

#differential_md_score.py line 274 was commented out in new version
#adjust_text(texts, force_points=1, expand_points=(2,2), expand_text=(2,2), arrowprops=dict(arrowstyle="-", lw=1, color='black', alpha=0.8))

#############################################################
So need to run barcode_plot separately. Fortunately that was successfully done without error.
Thank you for developing and maintaining this wonderful tool!!

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

1 participant