matchclot.preprocessing.preprocess module
Summary
Classes:
Functions:
Harmony batch effect correction applied jointly to multiple dataframes |
|
LSI analysis (following the Seurat v3 approach) :type adata: |
|
TF-IDF normalization (following the Seurat v3 approach) :type X: :param X: Input matrix |
Reference
- tfidf(X)[source]
TF-IDF normalization (following the Seurat v3 approach) :type X: :param X: Input matrix
- Returns:
TF-IDF normalized matrix
- Return type:
X_tfidf
- class lsiTransformer(n_components=20, drop_first=True, use_highly_variable=None)[source]
Bases:
object
- lsi(adata, n_components=20, use_highly_variable=None, **kwargs)[source]
LSI analysis (following the Seurat v3 approach) :type adata:
AnnData:param adata: Input dataset :type n_components:int:param n_components: Number of dimensions to use :type use_highly_variable:Optional[bool] :param use_highly_variable: Whether to use highly variable features only, stored inadata.var['highly_variable']. By default uses them if they have been determined beforehand.- Parameters:
**kwargs – Additional keyword arguments are passed to
sklearn.utils.extmath.randomized_svd()- Return type:
None