Skip to content

Commit

Permalink
type hints, #190
Browse files Browse the repository at this point in the history
  • Loading branch information
zqfang committed Feb 7, 2023
1 parent cddfa87 commit 4e29b42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gseapy/gsea.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def calculate_metric(
neg: str,
classes: Dict[str, List[str]],
ascending: bool,
) -> Tuple[List[int], pd.Series[float]]:
) -> Tuple[List[int], pd.Series]:
"""The main function to rank an expression table. works for 2d array.
:param df: gene_expression DataFrame.
Expand Down
4 changes: 2 additions & 2 deletions tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ def test_ssgsea2(ssGCT, geneGMT):
tmpdir = TemporaryDirectory(dir="tests")
ssgsea(ssGCT, geneGMT, tmpdir.name, permutation_num=0)
tmpdir.cleanup()
ssgsea(ssGCT, geneGMT, None, permutation_num=0, correl_norm_type='symrank')
ssgsea(ssGCT, geneGMT, None, permutation_num=0, correl_norm_type='zscore')
ssgsea(ssGCT, geneGMT, None, permutation_num=0, correl_norm_type="symrank")
ssgsea(ssGCT, geneGMT, None, permutation_num=0, correl_norm_type="zscore")


def test_enrichr(genelist, geneGMT):
Expand Down

0 comments on commit 4e29b42

Please sign in to comment.