Skip to content

Error about differential_md_score.py line 273 #40

Description

@hongjianjin

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!!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions