API
Import CellNeighborEX:
import CellNeighborEX
Immediate neighbor detection
|
Create a DataFrame from the provided AnnData object. |
|
Detect the spatial neighbors using squidpy and retrieve the spatial connectivity matrix. |
|
Calculate the closest distance between cells in the DataFrame. |
|
Calculate the number of neighbors for each cell. |
|
Process the dataframe by adding additional columns based on the neighbor matrix and neighbor counts. |
Cell type categorization
|
Generate input files for DEG analysis based on the given data. |
Neighbor-dependent gene expression analysis
|
Calculate the F-statistic and p-value for a two-sample F-test. |
|
Generate artificial heterotypic spots and computes normalized properties. |
|
Find Null Differentially Expressed Genes (DEGs) based on the provided parameters. |
|
Find differentially expressed genes (DEGs) related to cell-cell contacts. |
|
Plot heatmaps for the given data. |
|
Generate a volcano plot based on the input DataFrame. |
Delete files in the specified directory that contain the given keyword in their filenames. |
|
|
Function to perform neighbor-dependent gene expression analysis. |
Spatial visualization
Import expression data from CSV files in the specified directory. |
|
|
Set parameters for the processed DataFrame based on the expression data. |
|
Generate a spatial plot using the provided DataFrames and parameters. |