From 4b82a7c6c104a3d51cddfb9f990fbe6a58a41fe6 Mon Sep 17 00:00:00 2001 From: zqfang Date: Tue, 24 Oct 2023 15:15:03 -0700 Subject: [PATCH] isrot --- gseapy/__main__.py | 7 +++---- gseapy/gsea.py | 8 +------- tests/test_commands.py | 4 ++-- 3 files changed, 6 insertions(+), 13 deletions(-) diff --git a/gseapy/__main__.py b/gseapy/__main__.py index 9a9d68f..6782952 100644 --- a/gseapy/__main__.py +++ b/gseapy/__main__.py @@ -736,8 +736,7 @@ def add_gsva_parser(subparsers): dest="mx_diff", action="store_false", default=True, - help="When set, ES is calculated as the maximum distance of the random walk from 0. Default: False" - "Default: False", + help="When set, ES is calculated as the maximum distance of the random walk from 0. Default: False", ) group_opt.add_argument( @@ -749,8 +748,8 @@ def add_gsva_parser(subparsers): default="Gaussian", metavar="", choices=("Gaussian", "Poisson", "None"), - help="Gaussian is suitable when input expression values are continuous. " +\ - "If input integer counts, then this argument should be set to 'Poisson'", + help="Gaussian is suitable when input expression values are continuous. " + + "If input integer counts, then this argument should be set to 'Poisson'", ) group_opt.add_argument( diff --git a/gseapy/gsea.py b/gseapy/gsea.py index bf0cf7c..a8c7673 100644 --- a/gseapy/gsea.py +++ b/gseapy/gsea.py @@ -12,15 +12,9 @@ import pandas as pd from gseapy.base import GSEAbase -from gseapy.gse import ( - Metric, - gsea_rs, - prerank2d_rs, - prerank_rs, -) +from gseapy.gse import Metric, gsea_rs, prerank2d_rs, prerank_rs from gseapy.parser import gsea_cls_parser from gseapy.plot import gseaplot -from gseapy.utils import mkdirs # from memory_profiler import profile diff --git a/tests/test_commands.py b/tests/test_commands.py index 0a5c614..bd9386b 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -1,8 +1,8 @@ -from tempfile import NamedTemporaryFile, TemporaryDirectory, mkdtemp +from tempfile import TemporaryDirectory, mkdtemp import pytest -from gseapy.__init__ import enrich, enrichr, gsea, prerank, replot, ssgsea, gsva +from gseapy.__init__ import enrich, enrichr, gsea, gsva, prerank, replot, ssgsea @pytest.fixture