Coder Social home page Coder Social logo

silvtal / correlation_graphs Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 6.58 MB

Based on Goyal et al.'s recently published method for inferring statistically significant correlations between OTUs (https://www.biorxiv.org/content/10.1101/2021.01.04.425224v1)

R 100.00%

correlation_graphs's Introduction

Description

Co-abundance correlations in the experimental passage data were evaluated following the same strategy recently employed by Goyal et al (2022) which assesses if two populations abundances are more coupled than expected by chance. The method is grounded on the assumptions that OTU abundance fluctuations are independent of each other (i.e. no interactions) and follow a gamma distribution. First, the temporal abundance trajectories of all OTUs are calculated. Then, the Pearson correlation coefficient is calculated for each pair of OTUs based on their trajectories. The statistical significance of the correlations are calculated against the expected correlation distribution produced following a null model.

  • For the null model, a gamma distribution is constructed for each OTU based on the experimental data.

  • Then, random communities are generated from the gamma distributions and community compositions are renormalized by dividing each individual abundance by the communities' total sum.

  • The simulated communities are then arranged in passage trajectories and the correlations between each pair of OTUs obtained as per the experimental data.

  • Finally, the P values of the experimentally observed correlations are obtained by comparing with the expected null distribution of 1000 simulated correlations.

Interactions are deemed as present if its P value is below 0.05, and then depicted as a network using R package iGraph. In our case, we assessed the existence of interactions within the last 5 passages, when communities had been shown to remain phylogenetically stable (i.e. the PCGs had emerge and their relative abundance was comparatively stable). The analysis was conducted independently for experimental communities arising from different initial communities, and OTUs not detected in all samples of a passage trajectory were removed to avoid spurious correlations based on double zero co-abundances.

correlation_graphs's People

Contributors

silvtal avatar

Stargazers

 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.