Code Monkey home page Code Monkey logo

bam2peaks-nf's Introduction

bamm2peaks -nf

Nextflow pipeline for peaks calling with MACS

Workflow representation

Description

Nextflow pipeline designed for peak calling using MACS and IDR, coupled with QC generation using deeptools. The saturation option generates peaks by successively considering increasing percentages of the total reads, repeating the operation multiple times within the range of 0.05 to 0.95.

Dependencies

  1. Nextflow : for common installation procedures see the IARC-nf repository.

MACS

  1. MACS2 or MACS3

IDR (Irreproducible Discovery Rate)

  1. IDR

Deeptools

  1. Deeptools

A conda receipe, and docker and singularity containers are available with all the tools needed to run the pipeline (see "Usage")

Input

Type Description
--input_file input tabulation-separated values file with columns sample (sample name), tag (short name for figures), bam (bam file path) and group (group)

Parameters

  • Mandatory

Name Example value Description
--ref hg38 Reference fasta file hg19, hg38 or mm10'
  • Optional

Name Default value Description
--mode atac There is two mode : atac or chip, chip require "input" sample(s)
--output_folder bam2peaks Output folder name
--cpu 16 number of CPUs
--mem 16 memory
--extsize 150 MACS extsize : extendsize of peaks to to fix-sized fragments.
  • Flags

Flags are special parameters without value.

Name Description
--help print usage and optional parameters
--broad Compute broadpeaks instead of narrowpeaks
--ignoreDuplicates Ignore duplicates reads
--saturation Run saturation process

Usage

To run the pipeline for ATAC, one can type:

nextflow run iarcbioinfo/bam2peaks-nf -r latest -profile singularity --input_file input.tsv --ref hg38 --output_folder output --ignoreDuplicates

To run the pipeline without singularity just remove "-profile singularity". Alternatively, one can run the pipeline using a docker container (-profile docker) the conda receipe containing all required dependencies (-profile conda).

Chip-seq mode

To use the pipeline for Chip-seq, add the --chip flag :

nextflow run iarcbioinfo/bam2peaks-nf -r latest -profile singularity --input_file input.tsv --ref hg38 --output_folder output --chip --broad --extsize 320

Output

Type Description
bw/ Outputs of bamCoverage in bigWig format
Counts/ With --saturation return the number of reads for each subsets
Peaks Peaks computed by MACS
Peaks_intersect Peaks intersections computed by idr
QCs deeptools graphics
Saturation_peaks With --saturation, all peaks files for each subsets

Contributions

Name Email Description
Vincent Cahais [email protected] Developer to contact for support
Claire Renard [email protected] Developer

bam2peaks-nf's People

Watchers

Matthieu Foll avatar Nicolas Alcala 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.