@@ -2605,7 +2605,7 @@ def _fit(
26052605
26062606
26072607def lrt (
2608- data ,
2608+ data : Union [ anndata . AnnData , xr . DataArray , xr . Dataset , np . ndarray ] ,
26092609 reduced_formula_loc : str = None ,
26102610 full_formula_loc : str = None ,
26112611 reduced_formula_scale : str = "~1" ,
@@ -2629,7 +2629,8 @@ def lrt(
26292629 Note that lrt() does not support constraints in its current form. Please
26302630 use wald() for constraints.
26312631
2632- :param data: input data
2632+ :param data: Array-like, xr.DataArray, xr.Dataset or anndata.Anndata object containing observations.
2633+ Input data
26332634 :param reduced_formula_loc: formula
26342635 Reduced model formula for location and scale parameter models.
26352636 If not specified, `reduced_formula` will be used instead.
@@ -2784,7 +2785,7 @@ def lrt(
27842785
27852786
27862787def wald (
2787- data ,
2788+ data : Union [ anndata . AnnData , xr . DataArray , xr . Dataset , np . ndarray ] ,
27882789 factor_loc_totest : Union [str , List [str ]] = None ,
27892790 coef_to_test : Union [str , List [str ]] = None ,
27902791 formula_loc : str = None ,
@@ -2809,8 +2810,9 @@ def wald(
28092810 """
28102811 Perform Wald test for differential expression for each gene.
28112812
2812- :param data: input data
2813- :param factor_loc_totest:
2813+ :param data: Array-like, xr.DataArray, xr.Dataset or anndata.Anndata object containing observations.
2814+ Input data
2815+ :param factor_loc_totest: str, list of strings
28142816 List of factors of formula to test with Wald test.
28152817 E.g. "condition" or ["batch", "condition"] if formula_loc would be "~ 1 + batch + condition"
28162818 :param coef_to_test:
@@ -3037,7 +3039,7 @@ def _split_X(data, grouping):
30373039
30383040
30393041def t_test (
3040- data ,
3042+ data : Union [ anndata . AnnData , xr . DataArray , xr . Dataset , np . ndarray ] ,
30413043 grouping ,
30423044 gene_names = None ,
30433045 sample_description = None ,
@@ -3047,7 +3049,8 @@ def t_test(
30473049 Perform Welch's t-test for differential expression
30483050 between two groups on adata object for each gene.
30493051
3050- :param data: input data
3052+ :param data: Array-like, xr.DataArray, xr.Dataset or anndata.Anndata object containing observations.
3053+ Input data
30513054 :param grouping: str, array
30523055
30533056 - column in data.obs/sample_description which contains the split of observations into the two groups.
@@ -3079,7 +3082,8 @@ def wilcoxon(
30793082 Perform Wilcoxon rank sum test for differential expression
30803083 between two groups on adata object for each gene.
30813084
3082- :param data: input data
3085+ :param data: Array-like, xr.DataArray, xr.Dataset or anndata.Anndata object containing observations.
3086+ Input data
30833087 :param grouping: str, array
30843088
30853089 - column in data.obs/sample_description which contains the split of observations into the two groups.
@@ -3101,7 +3105,7 @@ def wilcoxon(
31013105
31023106
31033107def two_sample (
3104- data ,
3108+ data : Union [ anndata . AnnData , xr . DataArray , xr . Dataset , np . ndarray ] ,
31053109 grouping : Union [str , np .ndarray , list ],
31063110 as_numeric : Union [List [str ], Tuple [str ], str ] = (),
31073111 test = None ,
@@ -3146,7 +3150,8 @@ def two_sample(
31463150 Doesn't require fitting of generalized linear models.
31473151 Wilcoxon rank sum (Mann-Whitney U) test between both observation groups.
31483152
3149- :param data: input data
3153+ :param data: Array-like, xr.DataArray, xr.Dataset or anndata.Anndata object containing observations.
3154+ Input data
31503155 :param grouping: str, array
31513156
31523157 - column in data.obs/sample_description which contains the split of observations into the two groups.
@@ -3283,7 +3288,7 @@ def two_sample(
32833288
32843289
32853290def pairwise (
3286- data ,
3291+ data : Union [ anndata . AnnData , xr . DataArray , xr . Dataset , np . ndarray ] ,
32873292 grouping : Union [str , np .ndarray , list ],
32883293 as_numeric : Union [List [str ], Tuple [str ], str ] = [],
32893294 test : str = 'z-test' ,
@@ -3334,7 +3339,8 @@ def pairwise(
33343339 Doesn't require fitting of generalized linear models.
33353340 Wilcoxon rank sum (Mann-Whitney U) test between both observation groups.
33363341
3337- :param data: input data
3342+ :param data: Array-like, xr.DataArray, xr.Dataset or anndata.Anndata object containing observations.
3343+ Input data
33383344 :param grouping: str, array
33393345
33403346 - column in data.obs/sample_description which contains the split of observations into the two groups.
@@ -3500,7 +3506,7 @@ def pairwise(
35003506
35013507
35023508def versus_rest (
3503- data ,
3509+ data : Union [ anndata . AnnData , xr . DataArray , xr . Dataset , np . ndarray ] ,
35043510 grouping : Union [str , np .ndarray , list ],
35053511 as_numeric : Union [List [str ], Tuple [str ], str ] = (),
35063512 test : str = 'wald' ,
@@ -3551,7 +3557,8 @@ def versus_rest(
35513557 Doesn't require fitting of generalized linear models.
35523558 Wilcoxon rank sum (Mann-Whitney U) test between both observation groups.
35533559
3554- :param data: input data
3560+ :param data: Array-like, xr.DataArray, xr.Dataset or anndata.Anndata object containing observations.
3561+ Input data
35553562 :param grouping: str, array
35563563
35573564 - column in data.obs/sample_description which contains the split of observations into the two groups.
@@ -3664,7 +3671,7 @@ def versus_rest(
36643671
36653672
36663673def partition (
3667- data ,
3674+ data : Union [ anndata . AnnData , xr . DataArray , xr . Dataset , np . ndarray ] ,
36683675 partition : Union [str , np .ndarray , list ],
36693676 gene_names : str = None ,
36703677 sample_description : pd .DataFrame = None ):
@@ -3678,7 +3685,8 @@ def partition(
36783685
36793686 Wraps _Partition so that doc strings are nice.
36803687
3681- :param data: input data
3688+ :param data: Array-like, xr.DataArray, xr.Dataset or anndata.Anndata object containing observations.
3689+ Input data
36823690 :param gene_names: optional list/array of gene names which will be used if `data` does not implicitly store these
36833691 :param sample_description: optional pandas.DataFrame containing sample annotations
36843692 """
@@ -3701,12 +3709,13 @@ class _Partition():
37013709
37023710 def __init__ (
37033711 self ,
3704- data ,
3712+ data : Union [ anndata . AnnData , xr . DataArray , xr . Dataset , np . ndarray ] ,
37053713 partition : Union [str , np .ndarray , list ],
37063714 gene_names : str = None ,
37073715 sample_description : pd .DataFrame = None ):
37083716 """
3709- :param data: input data
3717+ :param data: Array-like, xr.DataArray, xr.Dataset or anndata.Anndata object containing observations.
3718+ Input data
37103719 :param partition: str, array
37113720
37123721 - column in data.obs/sample_description which contains the split of observations into the two groups.
@@ -4030,7 +4039,7 @@ def wald(
40304039
40314040
40324041def continuous_1d (
4033- data ,
4042+ data : Union [ anndata . AnnData , xr . DataArray , xr . Dataset , np . ndarray ] ,
40344043 continuous : str ,
40354044 df : int = 5 ,
40364045 factor_loc_totest : Union [str , List [str ]] = None ,
@@ -4065,7 +4074,8 @@ def continuous_1d(
40654074 perform these spline basis transforms outside of diffxpy and feed the
40664075 dmat directly to one of the test routines wald() or lrt().
40674076
4068- :param data: input data
4077+ :param data: Array-like, xr.DataArray, xr.Dataset or anndata.Anndata object containing observations.
4078+ Input data
40694079 :param continuous: str
40704080
40714081 - column in data.obs/sample_description which contains the continuous covariate.
0 commit comments