GithubHelp home page GithubHelp logo

metavannier / metatranscriptomics-bulkrnaseq_workflow Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 2.0 94 KB

This workflow performs a metatranscriptomics and bulk RNAseq analysis from the sequencing output data to the differential expression analyses.

License: BSD 3-Clause "New" or "Revised" License

R 36.35% Python 61.00% Shell 2.65%
bioinformatics bulk-rna-seq conda-environment docker metatranscriptomics singularity slurm-cluster snakemake

metatranscriptomics-bulkrnaseq_workflow's Introduction

Differential Expression Workflow: Metatranscriptomic and bulk RNAseq analysis

Author

Thomas Vannier (@metavannier), https://centuri-livingsystems.org/t-vannier/

About

This workflow performs a metatranscriptomic analysis from the sequencing output data to the differential expression analyses.

You need to install Singularity on your computer. This workflow also work in a slurm environment.

Each snakemake rules call a specific conda environment. In this way you can easily change/add tools for each step if necessary.

3 steps for the analysis:

  • clean.smk: The quality of the raw reads are assessed using FastQC v0.11.9 toolkit. Adapters and low quality reads are trimmed using Trimmomatic v0.39. SortMeRNA v4.3.4 is used to filter rRNA fragments from the reads.
  • count.smk: HiSat2 v2.2.1 is used for mapping the raw reads to the reference genome. The expression for each gene is evaluated using featureCounts from the Subread v2.0.1 package.
  • differential_exp.smk: The low expressed genes are removed from further analysis. The raw counts are normalized and used for differential expression testing using DESeq2 v1.28.0.

Usage

Step 1: Install workflow

You can use this workflow by downloading and extracting the latest release. If you intend to modify and further extend this workflow or want to work under version control, you can fork this repository.

We would be pleased if you use this workflow and participate in its improvement. If you use it in a paper, don't forget to give credits to the author by citing the URL of this repository and, if available, its DOI (see above).

Step 2: Configure workflow

Configure the workflow according to your needs via editing the files and repositories:

  • 00_RawData need the single or pair-end fastq file of each run to analyse
  • 01_Reference the fasta file and gff/gtf of your reference genome for the mapping step
  • sample.tsv, coldata.tsv, condition.tsv and ko_list.tsv to indicate the samples, run, condition, list of ko etc. for the analyse.
  • config.yaml indicating the parameters to use.

Step 3: Execute workflow

In local

  • You need Singularity v3.5.3 installed on your computer or cluster.

  • Load snakemake from a docker container and run the workflow from the root by using these commands:

singularity run docker://snakemake/snakemake:v6.3.0

  • Then execute the workflow locally via

snakemake --use-conda --use-singularity --cores 10

On a cluster

  • Adapt the batch scripts run_slurm.sh and cluster_config.json file to run your snakemake from the working directory

It will install snakemake with pip and run the workflow in the HPC:

sbatch run_slurm.sh

Step 4: Investigate results

After successful execution, you can create a self-contained interactive HTML report with all results via:

snakemake --report report.html

metatranscriptomics-bulkrnaseq_workflow's People

Contributors

metavannier 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.