scanpy.PP

External API: Preprocessing

scanpy.external.pp.harmony_integrate()

https://scanpy.readthedocs.io/en/stable/generated/scanpy.external.pp.harmony_integrate.html

integrate data sets (correct batch effect )

Notes:

    1. before integration, all data sets should be store in the same AnnData object
    1. the whole operation is about adjusting the principal components
    1. this function should be run after performing PCA but before computing the neighbor graph (KNN)

scanpy.external.pp.harmony_integrate(adata, key=, basis=, adjusted_basis=)

    1. key=: column of .obs to be used (the source of the batch effect)
    1. basis=: the field name that PCA results were stored in .obsm; default='X_pca'
    1. adjusted_basis=: the field name that the result will be stored in .obsm; default='X_pca_harmony'

Note: 整合后的结果存放在 .obsm['X_pca_harmony'] 中;维度与 .obsm['X_pca'] 相同

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容