You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "lib/python3.10/site-packages/matplotlib/bezier.py", line 351, in split_path_inout
ctl_points, command = next(path_iter)
StopIteration
I tried debugging and found that the _find_annot_pos_on_circle() method returned [nan nan] for some of the base position annotations, which caused the plotting to fail.
A quick fix to omit such annotations can be done by changing line #329 in forgi/visual/mplotlib.py from:
The text was updated successfully, but these errors were encountered:
eugenechow
changed the title
fvm.plot_rna(): nan values in annot_pos causes plotting errors
fvm.plot_rna(): nan values in annot_pos cause plotting errors
Oct 17, 2023
Hi, I encountered an issue when using the
fvm.plot_rna()
function.The following code and RNA structure can trigger the issue consistently using forgi 2.2.2 on Ubuntu 22.04 / python 3.10 / matplotlib 3.8.0
Where python would produce the following error:
I tried debugging and found that the
_find_annot_pos_on_circle()
method returned[nan nan]
for some of the base position annotations, which caused the plotting to fail.A quick fix to omit such annotations can be done by changing line #329 in
forgi/visual/mplotlib.py
from:to:
The text was updated successfully, but these errors were encountered: