Skip to content

Commit

Permalink
Update analysis.enrich default parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
npalacioescat committed Jan 20, 2025
1 parent 3b6e2c8 commit ddca01d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/funki/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ def enrich(
data,
net,
methods=None,
source=None,
target=None,
source='source',
target='target',
weight=None,
**kwargs
):
Expand All @@ -32,11 +32,11 @@ def enrich(
function
:type methods: NoneType | str | list[str]
:param source: Column name from the provided ``net`` containing the gene
sets to enrich for.
sets to enrich for. Defaults to ``'source'``.
:type source: str
:param target: Column name from the provided ``net`` containing the gene set
components (e.g. gene/protein names) that can be mapped back to the data
set variable names.
set variable names. Defaults to ``'target'``.
:type target: str
:param weight: Defines the column in the network containing the weights to
use in the enrichment, defaults to ``None``.
Expand Down Expand Up @@ -286,4 +286,4 @@ def label_transfer(data, ref_data, transfer_label, **kwargs):
sc.tl.ingest(aux, ref_data, obs=transfer_label, **kwargs)

# Updating back the results to the original DataSet object
data.obs[transfer_label] = aux.obs[transfer_label]
data.obs[transfer_label] = aux.obs[transfer_label]

0 comments on commit ddca01d

Please sign in to comment.