bbknn | intuitive batch effect removal tool that can be | Genomics library

 by   Teichlab Python Version: 1.6.0 License: MIT

kandi X-RAY | bbknn Summary

kandi X-RAY | bbknn Summary

bbknn is a Python library typically used in Artificial Intelligence, Genomics applications. bbknn has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can install using 'pip install bbknn' or download it from GitHub, PyPI.

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

            kandi-support Support

              bbknn has a low active ecosystem.
              It has 117 star(s) with 17 fork(s). There are 10 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 4 open issues and 38 have been closed. On average issues are closed in 17 days. There are 3 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of bbknn is 1.6.0

            kandi-Quality Quality

              bbknn has 0 bugs and 0 code smells.

            kandi-Security Security

              bbknn has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              bbknn code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              bbknn is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              bbknn releases are not available. You will need to build from source code and install.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              It has 337 lines of code, 11 functions and 4 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed bbknn and discovered the below as its top functions. This is intended to give you an instant insight into bbknn implemented functionality, and help decide if they suit your requirements.
            • 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 .
            Get all kandi verified functions for this library.

            bbknn Key Features

            No Key Features are available at this moment for bbknn.

            bbknn Examples and Code Snippets

            No Code Snippets are available at this moment for bbknn.

            Community Discussions

            Trending Discussions on bbknn

            QUESTION

            ReadTheDocs trouble with sklearn/umap
            Asked 2021-Jan-25 at 13:26

            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:26

            Based 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:

            Source https://stackoverflow.com/questions/65776380

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install bbknn

            BBKNN depends on Cython, numpy, scipy, annoy, pynndescent, umap-learn and scikit-learn. The package is available on pip and conda, and can be easily installed as follows:. BBKNN can also make use of faiss. Consult the official installation instructions, the easiest way to get it is via conda.

            Support

            BBKNN has the option to immediately slot into the spot occupied by scanpy.neighbors() in the Seurat-inspired scanpy workflow. It computes a batch aligned variant of the neighbourhood graph, with its uses within scanpy including clustering, diffusion map pseudotime inference and UMAP visualisation. The basic syntax to run BBKNN on scanpy's AnnData object (with PCA computed via scanpy.tl.pca()) is as follows:. You can provide which adata.obs column to use for batch discrimination via the batch_key parameter. This defaults to 'batch', which is created by scanpy when you merge multiple AnnData objects (e.g. if you were to import multiple samples separately and then concatenate them).
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install bbknn

          • CLONE
          • HTTPS

            https://github.com/Teichlab/bbknn.git

          • CLI

            gh repo clone Teichlab/bbknn

          • sshUrl

            git@github.com:Teichlab/bbknn.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link