Skip to content

Commit

Permalink
🎨 docstrings fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
enryH committed Dec 4, 2024
1 parent ec10c71 commit 9c96af7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions acore/enrichment_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
def run_fisher(
group1: list[int],
group2: list[int],
alternative="two-sided",
alternative: str = "two-sided",
) -> tuple[float, float]:
"""annotated not-annotated
group1 a b
Expand Down Expand Up @@ -83,7 +83,7 @@ def run_site_regulation_enrichment(
regex=r"(\w+~.+)_\w\d+\-\w+", # ! add example to docstring of what this matches
correction="fdr_bh",
):
"""
r"""
This function runs a simple enrichment analysis for significantly
regulated protein sites in a dataset.
Expand Down Expand Up @@ -117,7 +117,7 @@ def run_site_regulation_enrichment(
reject_col='rejected',
group_col='group',
method='fisher',
match="(\\w+~.+)_\\w\\d+\\-\\w+"
match="(\w+~.+)_\w\d+\-\w+"
)
"""
result = pd.DataFrame()
Expand Down Expand Up @@ -357,7 +357,7 @@ def run_regulation_enrichment(


def run_enrichment(
data,
data: pd.DataFrame,
foreground_id: str,
background_id: str,
foreground_pop: int,
Expand Down Expand Up @@ -390,7 +390,7 @@ def run_enrichment(
number of foregroung/background features in each term,
p-values and corrected p-values
(columns: 'terms', 'identifiers', 'foreground',
'background', 'pvalue', 'padj' and 'rejected').
'background', 'pvalue', 'padj' and 'rejected').
Example::
Expand Down Expand Up @@ -514,6 +514,7 @@ def run_ssgsea(
and nes - normalized enrichment scores.
Example::
stproject = "P0000008"
p = project.Project(
stproject,
Expand Down Expand Up @@ -542,7 +543,6 @@ def run_ssgsea(
scale=False,
permutations=0
)
"""
result = {}
df = data.copy()
Expand Down

0 comments on commit 9c96af7

Please sign in to comment.