Hallmark dotplot: padj clip is dead code

Open Beginner friendly
#2 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
88/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
jupyter-notebook, python

Research direction

Open bulk/rna.ipynb and inspect the Hallmark dotplot cell alongside the PROGENy cell, focusing on how the clipped adjusted p-value is assigned and then used. Done means the Hallmark plot uses the clipped value rather than the raw p-value; rerun the cell or notebook to verify the output.

Written by the indexing model from the issue text.

Description

In bulk/rna.ipynb, the Hallmark dotplot cell does:

hm_padj.melt(value_name="pvalue")
    .assign(padj=lambda x: x["pvalue"].clip(2.22e-16, 1))
    .assign(padj=lambda x: np.log10(x["pvalue"]))

so the clip on the first line has no effect and the plotted dot size is log10(raw p-value).

In contrast the PROGENy correctly updates the padj column.

Dominant language
Jupyter Notebook
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

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.

Similar issues

More Data Visualization issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.