Giter Club home page Giter Club logo

falaphyl's Introduction

GitHub Super-Linter

๐Ÿง† FALAPhyl: Forays into Automating Laborious Analysis of Phylogeny

This is a pipeline that fully automates some bioinformatic analysis using well-recognised packages such as PhyloSeq, ggplot and others. It is built on top of snakemake.

The rationale for this is to perform exploratory analysis of your feature data, and produce publication quality plots for beta diversity (Principal Coordinates Analysis - PCoA, Non-metric Multidimensional Scaling - NMDS), alpha diversity, the network connectivity Zi-Pi plot (Zi within-module connectivity, Pi among-module connectivity).

You need a features table in a biom file format, and a mapping file. If compositional beta diversity is specified (PhILR), a rooted tree is not needed as one is automatically generated using Ward Hierarchical clustering.

How do you run it?

If you are using the docker image, you will need to mount the OS's folder as a volume:

docker run -ti -v ~/MyLocalFolder/:/data/ khalidtab/falaphyl:latest bash

The volume mounted above should include the following files and folders:

  1. [filename].biom, where [filename] is the file name that is exactly the same as the other input files (mapping file)
  2. Mapping file in the [filname.].txt format, where [filename] is the file name that is exactly the same as the other input files (biom). File is in the format typically used for Qiime2. That is, first column "#SampleID", contains sample IDs that match those in the biom file, then the other columns are the additional variables you're interested in analyzing.
  3. input.yaml: the file with the input parameters. This can be downloaded from this github repo, and it is also packaged in the docker image in the parent directory. If you are using the file in the docker image, it must be copied to the volume, and modified before usage. Any parameter that is not wanted should be commented with a #

To run the pipeline. Run the following command

snakemake all alpha beta breakdown network diff subject_alpha subject_beta subject_diff --cores all --use-conda

Here is the explanation of the options:

  1. all: self-explanatory. Will run all analyses.
  2. alpha: alpha diversity, and violin plots of the graphs
  3. beta: dissimilarity matrices, ADONIS, ANOSIM, Beta dispersion, PCoA and NMDS
  4. breakdown: Jaccard and Bray-Curtis broken down to their corresponding components (per the R package Betapart). ANOSIM on the two components. Probability density function of the components through permutation.
  5. network: nodes and edges based on SparCC. Zi-Pi graphs to determine which nodes are most interesting.
  6. diff: differential abundance using multiple methods, using the R package DAtest. Will do pairwise comparisons of selected variables. Will output differential abundance, power analysis, and the following graphs to help identify the best method: AUC, FDR, Power, and Scores.
  7. subject_alpha: For paired/repeated measures. Alpha diversity differences but restricted to differences within a subject.
  8. subject_beta: For paired/repeated measures. Same as the breakdown option above, but the comparison is restricted to differences within the subject.
  9. subject_diff: For paired/repeated measures. Same as the diff option above, but the comparisons is restricted to differences within the subject.

falaphyl's People

Contributors

khalidtab avatar

Stargazers

 avatar

Watchers

Shareef Dabdoub avatar

Forkers

tangzhuangsheng

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.