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

'nan' in sashimiplot PDF file #116

Open
bioPG opened this issue Dec 5, 2023 · 4 comments
Open

'nan' in sashimiplot PDF file #116

bioPG opened this issue Dec 5, 2023 · 4 comments

Comments

@bioPG
Copy link

bioPG commented Dec 5, 2023

rMATS software calculates the average inclusion level for a group by excluding NA values when computing IncLevelDifference. In contrast, rmats2sashimiplot issues a warning and displays 'nan' in the final PDF file when encountering NA values. Why doesn't it display the filtered mean, similar to rMATS?

image
@EricKutschera
Copy link
Contributor

I added a branch with this commit that checks for nan when getting the group IncLevel: 51d936e

In that commit the code behaves more like the rMATS IncLevelDifference code that you mentioned: https://github.com/Xinglab/rmats-turbo/blob/v4.2.0/rMATS_P/inclusion_level.py#L51

@bioPG
Copy link
Author

bioPG commented Dec 6, 2023

Thanks a lot for adding the branch.

@vandoorslaer
Copy link

PRMT1.SE.MATS.JC.txt
Hi,
I am trying to plot a sashimiplot for the attached SE. As you can see, all the IJC have values (no NA) yet, the sashimplots show nan for the first and last bam file for sample 1 and sample 2. When I use a grouping file, the overall IncLevel = nan.
Any idea what I may be doing wrong?
thanks!

@EricKutschera
Copy link
Contributor

The file you posted has quotes around the values for IncLevel1 and IncLevel2. Those quotes should not be in the original rMATS output, but may have been added if you processed that file with another program. See this post: #110 (comment)

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

3 participants