scverse / scverse/PyDESeq2

DeseqStats for a single gene of interest

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

Nobody has claimed this yet.

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

Description

Hello

Is there a way to restrict DeseqStats (Wald test) to only one specific gene instead of the entire DeseqDataSet?

I am performing genetic interaction testing across 100,000+ contexts (Gene-SNP-Celltype). For each test, I only need the summary statistics for a single target gene.

I have already run dds.deseq2() on the full dataset, but running DeseqStats(dds, ...).summary() on all genes is computationally prohibitive at this scale. I have tried subsetting the dds object to the gene of interest before calling DeseqStats, but this does not work.

Is there a recommended way to perform the Wald test and results extraction for a single gene to optimize runtime?

i am using (pydeseq2.version) 0.5.4

thanks

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 the DeseqStats entry point and the dds.deseq2() results path in PyDESeq2 0.5.4; compare how a full DeseqDataSet is handled with the attempted single-gene subset. Define done as obtaining Wald-test summary statistics for one target gene without processing all genes, while preserving the existing full-dataset behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
bioinformatics
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.