Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Teichlab/bbknn
/ functions
Functions
13 in github.com/Teichlab/bbknn
⨍
Functions
13
◇
Types & classes
0
↓ 2 callers
Function
print_warning
Print a specified warning to the screen, using either warnings or scanpy. Input ----- message : ``str`` The warning message to print scanpy_
bbknn/matrix.py:192
↓ 1 callers
Function
check_knn_metric
Checks if the provided metric can be used with the implied KNN algorithm. Returns parameters with the metric validated. Input ----- params : `
bbknn/matrix.py:249
↓ 1 callers
Function
compute_connectivities_umap
Copied out of scanpy.neighbors This is from umap.fuzzy_simplicial_set [McInnes18]_. Given a set of data X, a neighborhood size, and a measure of
bbknn/matrix.py:49
↓ 1 callers
Function
create_tree
Create a faiss/cKDTree/KDTree/annoy/pynndescent index for nearest neighbour lookup. All undescribed input as in ``bbknn.bbknn()``. Returns the res
bbknn/matrix.py:75
↓ 1 callers
Function
get_graph
Identify the KNN structure to be used in graph construction. All input as in ``bbknn.bbknn()`` and ``bbknn.matrix.bbknn()``. Returns a tuple of dis
bbknn/matrix.py:150
↓ 1 callers
Function
get_sparse_matrix_from_indices_distances_umap
Copied out of scanpy.neighbors
bbknn/matrix.py:23
↓ 1 callers
Function
legacy_computation_selection
Do pre-1.6.0 computation algorithm selection based on possible legacy arguments. Looks at the following (default None) parameters: approx, use_ann
bbknn/matrix.py:208
↓ 1 callers
Function
query_tree
Query the faiss/cKDTree/KDTree/annoy index with PCA coordinates from a batch. All undescribed input as in ``bbknn.bbknn()``. Returns a tuple of dis
bbknn/matrix.py:112
↓ 1 callers
Function
trimming
Trims the graph to the top connectivities for each cell. All undescribed input as in ``bbknn.bbknn()``. Input ----- cnts : ``CSR`` Sparse mat
bbknn/matrix.py:296
Function
bbknn
Scanpy-independent BBKNN variant that runs on a PCA matrix and list of per-cell batch assignments instead of an AnnData object. Non-data-entry argu
bbknn/matrix.py:325
Function
bbknn
Batch balanced KNN, altering the KNN procedure to identify each cell's top neighbours in each batch separately instead of the entire cell pool with
bbknn/__init__.py:16
Function
extract_cell_connectivity
Helper post-processing function that extracts a single cell's connectivity and stores it in ``adata.obs``, ready for plotting. Connectivities range
bbknn/__init__.py:210
Function
ridge_regression
Perform ridge regression on scaled expression data, accepting both technical and biological categorical variables. The effect of the technical var
bbknn/__init__.py:133