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

fix(gsea): fix margin too large error #45

Merged
merged 2 commits into from
May 7, 2024

Conversation

iblacksand
Copy link
Collaborator

@iblacksand iblacksand commented May 7, 2024

If the analyte set title for the GSEA plot is too long, it can create an error figure margin too large. This was previously addressed for SVG files by shortening the title. HMDB features many pathways with long names that seemed to still break the SVG output, or it was able to create this problem for the PNG output. Because the GSEA plot is not an absolutely necessary output for the analysis, it should not create an error, but instead it should display a warning.

Fix applied

The plotEnrichmentPlot function content is surrounded in a try to prevent errors in this function from stopping the analysis.

Further steps

  • Add a warning message if this error occurs
  • Add more intervention to stop this error from occurring

@iblacksand iblacksand added the bug label May 7, 2024
@iblacksand iblacksand added this to the v1.0.0 milestone May 7, 2024
@iblacksand iblacksand self-assigned this May 7, 2024
@iblacksand
Copy link
Collaborator Author

Because of the severity of the error, this temporary fix will be pushed onto master, but will still work on addressing the core of this issue.

@iblacksand iblacksand merged commit 481ea5e into bzhanglab:master May 7, 2024
6 checks passed
@iblacksand iblacksand deleted the fix_figure_margins branch May 7, 2024 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Execuation halts with error message: Error in plot.new() : figure margins too large
1 participant