Giter Club home page Giter Club logo

microsig's Introduction

microsig

Microbial Signatures

DOI

Overview

This package contains functions to calculate microbial signature scores from (1) an abundance matrix, (2) a list of 'up-regulated' microbes, and (3) a list of 'down regulated' microbes. It includes functions designed to work with input lists from BugSigDB outputs.

getSigList Given a single cell value from BugSigDB output in the column 'MetaPhlAn.taxon.names', returns a list of microbe names containing the string after the last "|" in each comma separated Metaphlan taxonomic name

microbeEntries Given the name of a particular microbe signature followed by '_up' or '_down' will return the microbes within a desired signature group in the format "x__microbe name". If query is passed "all" function will return all the signature groups.

calcMicroSigScore Function to calculate microbe signature scores given a set of up and down regulated microbes and the relative abundances of microbe per sample. Given a data frame where columns are microbes and rows are samples, with the first column named 'sample' and character vectors listing microbes in given signature that are 'up-regulated' and 'down regulated', empty if none, returns a data frame with samples and corresponding microbe signature scores.

$$S_b = \frac{1}{|M_{pos}| + |M_{neg}|} \left( \sum_{m \in M_{pos}}X_{mb}-\sum_{m \in M_{neg}}X_{mb} \right)$$

where:

  • $S_b$ is the microbial signature score
  • $X_{mb}$ is the expression of microbe m in sample b
  • $M_{pos}$ and $M_{neg}$ are the set of 'up regulated' and 'down regulated' microbes

Installation

# Currently available as the development version on GitHub
install.packages("devtools")
devtools::install_github("spakowiczlab/microsig")

References

  1. Geistlinger L, Mirzayi C, Zohra F, Azhar R, Elsafoury S, Grieve C, Wokaty J, Gamboa-Tuz SD, Sengupta P, Hecht I, Ravikrishnan A, Gonçalves RS, Franzosa E, Raman K, Carey V, Dowd JB, Jones HE, Davis S, Segata N, Huttenhower C, Waldron L: BugSigDB captures patterns of differential abundance across a broad range of host-associated microbial signatures. Nat. Biotechnol. 2023. https://doi.org/10.1038/s41587-023-01872-y (download citation as .ris file)

  2. Jones M, Detomaso D, Ashuach T, Rosen Y (2022). VISION: Functional interpretation of single cell RNA-seq latent manifolds. https://yoseflab.github.io/VISION, https://github.com/yoseflab/VISION.

microsig's People

Contributors

dspak avatar carolinewheeler avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.