Skip to content
/ rna-seq-ir Public template
forked from sanjaynagi/rna-seq-pop

Snakemake pipeline for Illumina RNA-sequencing experiments, including variant calling and more - relating to pop gen and insecticide resistance

License

Notifications You must be signed in to change notification settings

vmkalbskopf/rna-seq-ir

 
 

Repository files navigation

Snakemake workflow: RNA-Seq-ir

Snakemake Build Status

This workflow performs various analyses of illumina paired-end RNA-Sequencing data:

  • Quality control of fastq reads with FASTQC
  • QC metrics integrated into one final QC report with multiQC
  • Differential expression analysis with Kallisto at the gene level (DESeq2) and transcript level (Sleuth)
  • Variant calling with freebayes, and an Fst and Population branch statistic (PBS) analysis, both in windows and at the gene-level (Scikit-allel).
  • Various summary statistics are calculated (Wattersons Theta, Sequence Diversity etc)
  • Differential SNP testing with the R package kissDE, which accounts for allele-specific expression.
  • Gene Set Enrichment analyses and Venn diagrams.
  • Allele counts at pre-specified loci of choice.
  • Anopheles gambiae s.l - Analysis of Ancestry Informative Markers (AIMs) to determine relative ancestry of An.gambiae/coluzzii/arabiensis.
  • Anopheles gambiae s.l - Reports if DE genes are found underneath known selective sweep signals in the Ag1000g.
  • Anopheles gambiae s.l - Determines Karyotype of chromosome 2 inversions using compkaryo - GH

The workflow is generalised, and will function with any trimmed Illumina paired-end RNA-sequencing. However, certain modules, such as the AIMs analysis, are only appropriate for specific species. These can be activated in the configuration file (config.yaml). The workflow works with pooled samples, or diploid or haploid individuals.

The workflow is still in construction, and not yet ready for release. If you have any feedback on how the workflow may be improved, please get in touch, or feel free to fork the github repo and create a pull request for any additional features you would like to implement. If you are using the workflow and would like to give feedback or troubleshoot, consider joining the discord server here

Authors

Usage

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

Step 1: Obtain a copy of this workflow

  1. Create a new github repository using this workflow as a template.
  2. Clone the newly created repository to your local system, into the place where you want to perform the data analysis.
  3. As the workflow contains submodules (compkaryo & mpileup2readcounts), git clone --recursive should be used to clone the repo.

Step 2: Configure workflow

Configure the workflow according to your needs via editing the files in the config/ folder. Adjust the example config.yaml to configure the workflow execution, and samples.tsv to specify your sample setup.

Step 3: Install Snakemake

Install Snakemake using conda:

conda create -c bioconda -c conda-forge -n snakemake snakemake

For installation details, see the instructions in the Snakemake documentation.

Step 4: Execute workflow

Activate the conda environment:

conda activate snakemake

Test your configuration by performing a dry-run via

snakemake --use-conda -n

Execute the workflow locally via

snakemake --use-conda --cores $N

using $N cores or run it in a cluster environment via

snakemake --use-conda --cluster qsub --jobs 100

or

snakemake --use-conda --drmaa --jobs 100

If you not only want to fix the software stack but also the underlying OS, use

snakemake --use-conda --use-singularity

in combination with any of the modes above. See the Snakemake documentation for further details.

Step 5: Commit changes

Whenever you change something, don't forget to commit the changes back to your github copy of the repository:

git commit -a
git push

Step 6: Obtain updates from upstream

Whenever you want to synchronize your workflow copy with new developments from upstream, do the following.

  1. Once, register the upstream repository in your local copy: git remote add -f upstream [email protected]:snakemake-workflows/rna-seq-ir.git or git remote add -f upstream https://github.com/snakemake-workflows/rna-seq-ir.git if you do not have setup ssh keys.
  2. Update the upstream version: git fetch upstream.
  3. Create a diff with the current version: git diff HEAD upstream/master workflow > upstream-changes.diff.
  4. Investigate the changes: vim upstream-changes.diff.
  5. Apply the modified diff via: git apply upstream-changes.diff.
  6. Carefully check whether you need to update the config files: git diff HEAD upstream/master config. If so, do it manually, and only where necessary, since you would otherwise likely overwrite your settings and samples.

Step 7: Contribute back

In case you have also changed or added steps, please consider contributing them back to the original repository:

  1. Fork the original repo to a personal or lab account.
  2. Clone the fork to your local system, to a different place than where you ran your analysis.
  3. Copy the modified files from your analysis to the clone of your fork, e.g., cp -r workflow path/to/fork. Make sure to not accidentally copy config file contents or sample sheets. Instead, manually update the example config files if necessary.
  4. Commit and push your changes to your fork.
  5. Create a pull request against the original repository.

Testing

Test cases are in the subfolder .test. They are automatically executed via continuous integration with Github Actions.

About

Snakemake pipeline for Illumina RNA-sequencing experiments, including variant calling and more - relating to pop gen and insecticide resistance

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 71.7%
  • R 28.3%