Coder Social home page Coder Social logo

run-fastqc's Introduction

Nextflow test workflow

A Nextflow workflow that runs FastQC on Fastq reads and then combines them into a MultiQC report. FastQC and MutliQC are setup on a Docker container. The nextflow script pulls the Docker container and converts it to a Singularity container on the fly. See the nextflow.log for settings to run on a Slurm cluster.

To be able to mount the /data directory on the cluster you need to have the mount defined in your Docker/Singularity container e.g. see

To run

In the nextflow.config two possible ways to pull the container are suggested. Directly from quay.io or directly from a file on the share.

To be able to mount the non native singularity conainer mounts e.g. data singularity.autoMounts = true should be set.

nextflow -log nextflow.log run -w /data/users/cbio-ws-u24/nextflow-workdir -c nextflow.config main.nf -profile slurm

$ squeue 
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)
              2324      main tl.rFQC. cbio-ws-  R       0:12      1 cbio-ws-1
              2325      main tl.rFQC. cbio-ws-  R       0:12      1 cbio-ws-1
              2327      main tl.rFQC. cbio-ws-  R       0:12      1 cbio-ws-1
              2329      main tl.rFQC. cbio-ws-  R       0:12      1 cbio-ws-1
              2336      main tl.rFQC. cbio-ws-  R       0:12      1 cbio-ws-1

Accessing the container and running a command

Get onto a node

srun -N 1 --ntasks-per-node=1 --pty bash

Get int the container (specify the /data bind)

singularity exec -B /data:/data /data/projects/cbio-ws/tests/containers/quay.io_h3abionet_org_h3a16s-fastqc.img bash

Run command in container

fastqc /data/projects/cbio-ws/tests/fastq-reads/Dog1_R1.fastq -o /data/users/cbio-ws-u24/

Check if data is generated on the cluster (exit container and do listing)

exit 
ls /data/users/cbio-ws-u24/Dog1_R1_fastqc.*
/data/users/cbio-ws-u24/Dog1_R1_fastqc.html  /data/users/cbio-ws-u24/Dog1_R1_fastqc.zip

Workflow diagram

workflow

run-fastqc's People

Contributors

grbot avatar

Watchers

James Cloos avatar  avatar  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.