API#
Workflows#
|
Run the general NichePCA workflow. |
Clustering#
|
Perform Leiden clustering with duplicate embeddings. |
|
Perform Leiden clustering at multiple resolutions in parallel. |
Perform Leiden clustering with a fixed number of clusters. |
Graph Construction#
|
Construct a k-nearest neighbors graph. |
Construct a delaunay graph. |
|
Construct a spatial graph based on a distance threshold. |
|
|
Construct a multi-sample graph from AnnData. |
Convert the graph stored in squidpy format to pyg format. |
|
Convert the pyg graph stored in |
|
Remove links with a distance larger than a given percentile. |
|
Calculate basic graph statistics. |
|
Print statistics about the graph. |
|
|
Resolves and returns the graph constructor based on the provided parameters. |
Neighborhood Embedding#
|
Aggregate data in an AnnData object based on a previously constructed graph. |
Utilities#
Check whether |
|
|
Normalize the per-sample counts in the |
Convert input to numpy array. |
|
Convert input to torch tensor. |