bbknn | intuitive batch effect removal tool that can be | Genomics library
kandi X-RAY | bbknn Summary
kandi X-RAY | bbknn Summary
BBKNN is a fast and intuitive batch effect removal tool that can be directly used in the scanpy workflow. It serves as an alternative to scanpy.pp.neighbors(), with both functions creating a neighbour graph for subsequent use in clustering, pseudotime and UMAP visualisation. The standard approach begins by identifying the k nearest neighbours for each individual cell across the entire data structure, with the candidates being subsequently transformed to exponentially related connectivities before serving as the basis for further analyses. If technical artifacts (be they because of differing data acquisition technologies, protocol alterations or even particularly severe operator effects) are present in the data, they will make it challenging to link corresponding cell types across different batches. As such, BBKNN actively combats this effect by taking each cell and identifying a (smaller) k nearest neighbours in each batch separately, rather than the dataset as a whole. These nearest neighbours for each batch are then merged into a final neighbour list for the cell. This helps create connections between analogous cells in different batches without altering the counts or PCA space.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Compute batch balanced neighbors .
- Compute ridge regression .
- Check that the named metric is used .
- Compute the graph for the given batch list .
- Query the tree .
- Create a tree .
- Apply trimming to a given column .
- Generates a sparse matrix from indices and indices .
- Compute the distances between a fuzzy set of points .
- Extract cell connectivity .
bbknn Key Features
bbknn Examples and Code Snippets
Community Discussions
Trending Discussions on bbknn
QUESTION
I've got a package which I've previously successfully built on ReadTheDocs, but this is no longer the case. My imports are as follows:
...ANSWER
Answered 2021-Jan-25 at 13:26Based on feedback from a helpful user, I eventually arrived at a less hack'y solution. Unfortunately, the discussion went AWOL because of an unhelpful user, who responded with pip install -U numpy
, waited for me to figure it out, edited their answer and requested I accept it. Upon being denied, the answer and comment thread vanished. I don't even remember your name, helpful user, so I can't credit you for the tip.
Apparently ReadTheDocs uses an old pip, and requiring pip>=19.0
makes scikit-learn not install from source. As such, I added that line to docs/requirements.txt
, which I had previously set up to be a ReadTheDocs requirement file. This resulted in some progress - now rather than scikit-learn complaining about numpy, it was numba. Still, some synapses connected, and I just handled any dependency problems that arose via docs/requirements.txt
, the final contents of which are:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install bbknn
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page