rapids_singlecell.pp.sqrt#
- rapids_singlecell.pp.sqrt(data, *, use=None, out=False, layer=None, obsm=None, inplace=True, copy=False)[source]#
Take the square root of the data matrix.
Computes .
- Parameters:
- data
AnnData|ndarray|csc_matrix|csr_matrix|Array The (annotated) data matrix of shape
n_obs×n_vars. Rows correspond to cells and columns to genes. If a matrix is passed instead of anAnnDataobject, the transformed matrix is returned.- use
LayerAcc|MultiAcc|str|None(default:None) Which matrix to transform, e.g.
A.X,A.layers['counts']orA.obsm['x']. Strings are resolved byanndata.acc.AdAcc.resolve(), e.g.'layers.counts'.- out
LayerAcc|MultiAcc|str|bool(default:False) Where to write the result, e.g.
A.layers['k'](or'layers.k'). IfTrue, the result is returned instead of written. IfFalse, it is written to the placeusereads from.
- data
- Return type:
- Returns:
The transformed matrix if a matrix is passed or
out=True, elseNone.