Skip to content

Commit 7894257

Browse files
changed default of two sample to t-test
1 parent ac2ea19 commit 7894257

File tree

5 files changed

+9
-17
lines changed

5 files changed

+9
-17
lines changed

diffxpy/testing/tests.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ def two_sample(
699699
data: Union[anndata.AnnData, anndata.base.Raw, xr.DataArray, xr.Dataset, np.ndarray, scipy.sparse.csr_matrix],
700700
grouping: Union[str, np.ndarray, list],
701701
as_numeric: Union[List[str], Tuple[str], str] = (),
702-
test: str = None,
702+
test: str = "t-test",
703703
gene_names: Union[np.ndarray, list] = None,
704704
sample_description: pd.DataFrame = None,
705705
noise_model: str = None,
@@ -797,10 +797,6 @@ def two_sample(
797797
if groups.size < 2:
798798
raise ValueError("Less than two groups detected:\n\t%s", groups)
799799

800-
# Set default test:
801-
if test is None:
802-
test = 'wald'
803-
804800
if test.lower() == 'wald':
805801
if noise_model is None:
806802
raise ValueError("Please specify noise_model")
@@ -862,7 +858,7 @@ def two_sample(
862858
dtype=dtype
863859
)
864860
else:
865-
raise ValueError('base.two_sample(): Parameter `test="%s"` not recognized.' % test)
861+
raise ValueError('two_sample(): Parameter `test="%s"` not recognized.' % test)
866862

867863
return de_test
868864

docs/api/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ diffxpy provies infrastructure for likelihood ratio tests, Wald tests, t-tests a
2727
test.wald
2828
test.lrt
2929
test.t_test
30-
test.wilcoxon
30+
test.rank_test
3131

3232
Multiple tests per gene
3333
~~~~~~~~~~~~~~~~~~~~~~~

docs/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323

2424
HERE = Path(__file__).parent
2525
sys.path.insert(0, str(HERE.parent))
26-
import diffxpy # noqa
26+
import diffxpy
2727

28-
logger = logging.getLogger(__name__)
28+
logger = logging.getLogger("diffxpy")
2929

3030
# -- General configuration ------------------------------------------------
3131

@@ -67,7 +67,7 @@
6767
templates_path = ['_templates']
6868

6969
project = 'diffxpy'
70-
author = 'Florian R. Hölzlwimmer, David S. Fischer'
70+
author = 'David S. Fischer, Florian R. Hölzlwimmer'
7171

7272
source_suffix = '.rst'
7373
master_doc = 'index'
@@ -129,7 +129,7 @@ def setup(app):
129129
# author, documentclass [howto, manual, or own class]).
130130
latex_documents = [
131131
(master_doc, 'diffxpy.tex', 'diffxpy Documentation',
132-
'Florian R. Hölzlwimmer, David S. Fischer', 'manual'),
132+
'David S. Fischer, Florian R. Hölzlwimmer', 'manual'),
133133
]
134134

135135
# -- Options for manual page output ------------------------------------------

docs/requires.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ numpy>=1.14.0
22
scipy
33
pandas
44
patsy>=0.5.0
5-
batchglm>=0.4.0
5+
batchglm>=0.6.0
66
xarray
77
statsmodels
88
anndata

setup.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,14 @@
2121
'scipy',
2222
'pandas',
2323
'patsy>=0.5.0',
24-
'batchglm>=0.4.0',
24+
'batchglm>=0.6.0',
2525
'xarray',
2626
'statsmodels',
2727
],
2828
extras_require={
2929
'optional': [
3030
'anndata',
3131
],
32-
# 'scanpy_deps': [
33-
# "scanpy",
34-
# "anndata"
35-
# ],
3632
'plotting_deps': [
3733
"seaborn",
3834
"matplotlib"

0 commit comments

Comments
 (0)