STOmics / Stereopy

A toolkit of spatial transcriptomic analysis.
MIT License
184 stars 64 forks source link

about data.tl.spatial_hotspot #179

Closed Biomamba closed 11 months ago

Biomamba commented 11 months ago

Dear authors: Thank your for your contribution to stereopy. There is a question really confuse me. Why parameters both use_highly_genes and use_raw can be True in function data.tl.spatial_hotspot()?

image

tanliwei-coder commented 11 months ago

Sometimes, before spatial_hotspot, we may do some preprocessing which will change the values of expression matrix like normalize_total or log1p, setting use_raw to true represents using the expression matrix in which the values are raw values and setting use_highly_genes to true represents using the subset which only contains the highly variable genes, if both are set to true, the values of expression matrix in the subset are raw values.

Biomamba commented 11 months ago

Sometimes, before spatial_hotspot, we may do some preprocessing which will change the values of expression matrix like normalize_total or log1p, setting use_raw to true represents using the expression matrix in which the values are raw values and setting use_highly_genes to true represents using the subset which only contains the highly variable genes, if both are set to true, the values of expression matrix in the subset are raw values.

Got it, thank you for your reply.