@@ -46,11 +46,11 @@ def log1p(
4646
4747
4848def scale (
49- adata : AnnData | np . ndarray | spmatrix ,
49+ data : AnnData | spmatrix | np . ndarray ,
5050 zero_center : bool = True ,
5151 max_value : float | None = None ,
5252 copy : bool = False ,
53- ) -> AnnData | None :
53+ ) -> AnnData | spmatrix | np . ndarray | None :
5454 """\
5555 Wrap function of scanpy.pp.scale
5656
@@ -61,7 +61,7 @@ def scale(
6161 the future, they might be set to NaNs.
6262 Parameters
6363 ----------
64- data
64+ data:
6565 The (annotated) data matrix of shape `n_obs` × `n_vars`.
6666 Rows correspond to cells and columns to genes.
6767 zero_center
@@ -74,11 +74,11 @@ def scale(
7474 determines whether a copy is returned.
7575 Returns
7676 -------
77- Depending on `copy` returns or updates `adata ` with a scaled `adata .X`.
77+ Depending on `copy` returns or updates `data ` with a scaled `data .X`.
7878 """
7979
8080 result = scanpy .pp .scale (
81- adata , zero_center = zero_center , max_value = max_value , copy = copy
81+ data , zero_center = zero_center , max_value = max_value , copy = copy
8282 )
8383 print ("Scale step is finished in adata.X" )
8484 return result
0 commit comments