Saving for QC and results plots.
See original GitHub issueSome functions (e.g., cell2location.utils.filtering.filter_genes or RegressionModel.plot_QC) generate plots, but have no way (that I could think of) for saving the plots from a script. Workarounds don’t always work, for example the code below only saves one of the two plots generated when interactively running the code.
fig, ax = plt.subplots()
mod.plot_QC()
# only saves first plot unfortunately
fig.savefig(QC_dir / 'QC_plots_signature_model.png', dpi=300)
Since sometimes running cell2loc interactively is not practical, it would be great to have improved plot saving capabilities! Thank you for your great work!
Issue Analytics
- State:
- Created a year ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Tips to Save Time & Money: Digital Quality Control Inspections
Getting actionable QC inspection results faster can save time, money, and a lot of headaches. It all starts with digital tools for collecting,...
Read more >How to save results of each step from ChAMP pipeline?
I'm trying to test a pipeline to analyse methylation array data using ChAMP package. I'm following the follow tutorial: https://www.bioconductor ...
Read more >Dashboard, Reports & Analysis in HP ALM (Quality Center)
User can create graphs or project reports in the Analysis View module. They can also save the graphs and reports in the Analysis...
Read more >6 Basic Quality Control (QC) and Exploration of scRNA-seq ...
All these normalization functions save the results to the logcounts slot of the SCE object. For downsampling we use our own functions shown...
Read more >QC/ALM Status Reports and Graphs Sharing Made Easy
We have a way to save you some time! Built-in functionality of QC /ALM allows you to share up to date QC /ALM...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@vitkl I would just return a list of
Figure
objects, so that the user could do whatever is needed - save, modify, add something else.Also adding the history plots for completeness: