-
Notifications
You must be signed in to change notification settings - Fork 9
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
rnaseqqc - Error setting xlim in plotStrandednessSalmon #146
Comments
My guess is that a.get_xlim() is not a precise x coordinate, and something may have changed in matplotlib?
Get_xlim is supposed to create a convenient frame for plotting so it looks good but it is not the maximal value of the table, which is what it seems to be standing in for here?
https://www.geeksforgeeks.org/matplotlib-axes-axes-get_xlim-in-python/
I might be completely wrong though!
Jakub
From: Ian Sudbery ***@***.***>
Reply to: cgat-developers/cgat-flow ***@***.***>
Date: Thursday, 2 September 2021 at 11:15
To: cgat-developers/cgat-flow ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [cgat-developers/cgat-flow] rnaseqqc - Error setting xlim in plotStrandednessSalmon (#146)
Does anyone know what is going on with these lines here in plotStrandednessSalmon from RNAseqqc.
https://github.com/cgat-developers/cgat-flow/blob/bc423e431cee5b76f2e8cdc6b8d8a44935b85a75/cgatpipelines/tools/pipeline_rnaseqqc.py#L1575-L1577
I can't work it out at all, at least in part I guess because I don't know what the intended output is supposed to look like. HOwever, it raises this error:
File "/shared/sudlab1/General/apps/conda/cgat-flow-devel/cgatpipelines/tools/pipeline_rnaseqqc.py", line 1577, in plotStrandednessSalmon
a.set_xticklabels(counttab.columns)
File "/shared/sudlab1/utrons/utrons_env/lib/python3.8/site-packages/matplotlib/axes/_base.py", line 73, in wrapper
return get_method(self)(*args, **kwargs)
File "/shared/sudlab1/utrons/utrons_env/lib/python3.8/site-packages/matplotlib/_api/deprecation.py", line 471, in wrapper
return func(*args, **kwargs)
File "/shared/sudlab1/utrons/utrons_env/lib/python3.8/site-packages/matplotlib/axis.py", line 1795, in _set_ticklabels
return self.set_ticklabels(labels, minor=minor, **kwargs)
File "/shared/sudlab1/utrons/utrons_env/lib/python3.8/site-packages/matplotlib/axis.py", line 1716, in set_ticklabels
raise ValueError(
ValueError: The number of FixedLocator locations (13), usually from a call to set_ticks, does not match the number of ticklabels (12).
Apparently @KatyBrown<https://github.com/KatyBrown> wrote it?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#146>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AC4Y5MX73KGBEQBHVQ3WVWTT75FBBANCNFSM5DIXL6BA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
I thought that at first, but if tab has (say), 12 columns, then |
Hi Ian, sorry, it probably was me and I have no memory of what I was trying to do - it seems mad. It's just putting ticks on the x axis, so I think it would be OK to switch that line just for:
If that doesn't work please let me know! |
Hi @IanSudbery, I just wanted to check if this worked in the end - I can have a look if not. Sorry for the slow and not helpful response - I was off work for ages and now I'm playing catch-up! |
It was a bit more complex than that. Here is what I settled on: cgat-flow/cgatpipelines/tools/pipeline_rnaseqqc.py Lines 1586 to 1593 in b7036f9
Its in PR #148 , I think it should work. |
Brilliant - thanks for fixing it and documenting it properly this time! |
I think this now generates a table of appropriate width, but still does not populate it, sorry forgot to mention this during the PR merge. |
Does anyone know what is going on with these lines here in plotStrandednessSalmon from RNAseqqc.
cgat-flow/cgatpipelines/tools/pipeline_rnaseqqc.py
Lines 1575 to 1577 in bc423e4
I can't work it out at all, at least in part I guess because I don't know what the intended output is supposed to look like. HOwever, it raises this error:
Apparently @KatyBrown wrote it?
The text was updated successfully, but these errors were encountered: