scverse / scverse/PyDESeq2

[BUG] More flexibility with figures

Open
#186 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
761
Forks
90
Avg merge
25m
Merged PRs (30d)
10

Description

In examples/examples/plot_minimal_pydeseq2_pipeline.py, we plot log-fold change versus mean expression using:

stat_res.plot_MA(s=20)

Currently, there is no easy way to adjust the xlim and ylim attributes of the figure displayed.

Similarly to what is done in Seaborn, what about passing an optional argument ax=None to plot_MA (and other plotting functions)? When ax is None, we let plot_MA create a figure and its axis. However, when Axes are passed to plot_MA, the method would use it for the scatter plot.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with examples/examples/plot_minimal_pydeseq2_pipeline.py and trace the plot_MA entry point. Check how the figure and axis are currently created, then verify the requested behavior for an omitted axis and for a supplied Axes object, including user control of xlim and ylim. Done means the example can adjust those limits without losing the existing scatter plot.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.