Skip to content

Commit

Permalink
Now parsing enrichment methods before storing config
Browse files Browse the repository at this point in the history
  • Loading branch information
npalacioescat committed Nov 16, 2024
1 parent c0ae6fd commit 0cf6fa8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/funki/analysis.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import scanpy as sc
import anndata as ad
import decoupler as dc
from decoupler.decouple import parse_methods
from pydeseq2.dds import DeseqDataSet, DefaultInference
from pydeseq2.ds import DeseqStats

Expand Down Expand Up @@ -60,6 +61,10 @@ def enrich(
erated/decoupler.decouple.html#decoupler.decouple
'''

# Using methods parser from Decoupler before storing config
# This prevents e.g. storing `None` when running with default methods
methods = parse_methods(methods)[0]

# Storing parameters
data.uns['funki']['enrich'] = {
'methods': methods,
Expand Down

0 comments on commit 0cf6fa8

Please sign in to comment.