svgbit.core.moran.global_moran#
- svgbit.core.moran.global_moran(gene_expression_df: pandas.core.frame.DataFrame, weights: libpysal.weights.weights.W, transformation: str = 'r', permutation: int = 999, cores: int = 2) pandas.core.frame.DataFrame[source]#
Calculate global Moran’s I value.
- Parameters
- gene_expression_dfpd.DataFrame
Expression matrix for Spatial Transcriptomics Data.
- weightslibpysal.weights.W
Spatial weight for calculating Moran’s I.
- transformationstr, default ‘r’
Weights transformation passed to esda.moran.Moran
- permutationint, default 999
Number of random permutations for calculation of pseudo-p_values.
- coresint
Number of threads to run svgbit. Use all available cpus by default.
- Returns
- global_moran_dfpd.DataFrame
Global Moran’s I result.