Single-data: spatial_query

from SpatialQuery import spatial_query
sp = spatial_query(adata, dataset="my_dataset")

Motif Discovery

Method

Description

sp.find_fp_knn

Find frequent patterns using KNN neighborhoods

sp.find_fp_dist

Find frequent patterns using distance-based neighborhoods

sp.find_patterns_grid

Find patterns on a grid

sp.find_patterns_rand

Find patterns with random sampling

sp.motif_enrichment_knn

Motif enrichment analysis using KNN

sp.motif_enrichment_dist

Motif enrichment analysis using distance

Motif-associated Molecular Analysis

Method

Description

sp.de_genes

Differential expression analysis within motifs

sp.compute_gene_gene_correlation

Gene-gene covariation analysis

sp.compute_gene_gene_correlation_by_type

Gene-gene covariation analysis by cell type

sp.test_score_difference

Test covariation score differences

Plotting

Method

Description

sp.plot_fov

Plot field of view

sp.plot_motif_grid

Plot motifs on grid

sp.plot_motif_rand

Plot motifs with random sampling

sp.plot_motif_celltype

Plot motifs by cell type

sp.plot_all_center_motif

Plot all center motifs

sp.plot_fp_heatmap

Plot frequent pattern heatmap

sp.plot_motif_enrichment_heatmap

Plot motif enrichment heatmap

sp.plot_gene_pair_heatmap

Plot gene pair heatmap

sp.plot_gene_pair_spatial

Plot gene pair spatial expression