rmats2sashimiplot successfully installed and run but failed to produce .pdf file

163 views
Skip to first unread message

Jie Xu

unread,
Jul 25, 2023, 4:56:31 AM7/25/23
to rMATS User Group

I run this script:

rmats2sashimiplot --b1 /Pathtobam/ --b2 /Pathtobam/ -t A5SS -e A5SS.MATS.JC.txt --l1 SampleOne --l2 SampleTwo --exon_s 1 --intron_s 5 -o /Pathtoouput

and i got message when I run :

Traceback (most recent call last):

  File "/python3.10/site-packages/MISO/misopy/sashimi_plot/sashimi_plot.py", line 32, in <module>

    from misopy.sashimi_plot.Sashimi import Sashimi

  File "/python3.10/site-packages/MISO/misopy/sashimi_plot/Sashimi.py", line 11, in <module>

    import misopy.sashimi_plot.plot_utils.plotting as plotting

  File "MISO/misopy/sashimi_plot/plot_utils/plotting.py", line 5, in <module>

    from mpl_toolkits.axes_grid.axislines import SubplotZero

ModuleNotFoundError: No module named 'mpl_toolkits.axes_grid'

mv: cannot stat ‘/Sashimi_plot/chrX:153943895:153943970:-@chrX:153944080:153944418:-@chrX:153944309:153944418:-.pdf': No such file or directory

Warning: The inclusion levels of Event 'chr20:37746468:37746607:+@chr20:37746468:37746609:+@chr20:37757561:37757656:+' contains 'NA' value, which could lead to unexpected output.

I don't see the /sashimiplot directory and .pdf file.

I'm confused. and is there anybody can offer help?

kutsc...@gmail.com

unread,
Jul 25, 2023, 9:01:14 AM7/25/23
to rMATS User Group
This error happens because that module in matplotlib was deprecated and then removed in recent versions: ModuleNotFoundError: No module named 'mpl_toolkits.axes_grid'

One fix is to install an older version of matplotlib: https://github.com/Xinglab/rmats2sashimiplot/issues/94#issuecomment-1508774285

Another option is to change the code for that import as suggested here: https://github.com/Xinglab/rmats2sashimiplot/issues/90#issuecomment-1428390814

I just added that change to the latest master branch: https://github.com/Xinglab/rmats2sashimiplot/pull/103

Eric
Reply all
Reply to author
Forward
0 new messages