MCPcopy Create free account

hub / github.com/Teichlab/bbknn / functions

Functions13 in github.com/Teichlab/bbknn

↓ 2 callersFunctionprint_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 callersFunctioncheck_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 callersFunctioncompute_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 callersFunctioncreate_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 callersFunctionget_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 callersFunctionget_sparse_matrix_from_indices_distances_umap
Copied out of scanpy.neighbors
bbknn/matrix.py:23
↓ 1 callersFunctionlegacy_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 callersFunctionquery_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 callersFunctiontrimming
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
Functionbbknn
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
Functionbbknn
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
Functionextract_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
Functionridge_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