simba.tl.trim_edges
- simba.tl.trim_edges(adata_ref_query, cutoff=None, n_edges=None)[source]
Trim edges based on the similarity scores
- Parameters:
adata_ref_query (AnnData) – Annotated relation matrix betwewn reference and query observations.
n_edges (int, optional (default: None)) – The number of edges to keep If specified, percentile will be ignored
cutoff (float, optional (default: None)) – The distance cutoff. If None, it will be decided by n_top_edges If specified, n_top_edges will be ignored
- Returns:
updates adata_ref_query with the following field.
`.layers[‘conn’]` (array_like) – relation matrix betwewn reference and query observations