mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-13 05:13:09 +00:00
Fix editor config styles
This commit is contained in:
parent
a547f27f21
commit
ae38a9bf41
28 changed files with 179 additions and 184 deletions
4
.gitmodules
vendored
4
.gitmodules
vendored
|
@ -1,3 +1,3 @@
|
|||
[submodule "test-datasets"]
|
||||
path = test-datasets
|
||||
url = https://github.com/nf-core/test-datasets.git
|
||||
path = test-datasets
|
||||
url = https://github.com/nf-core/test-datasets.git
|
||||
|
|
|
@ -2,51 +2,51 @@ nextflow.preview.dsl=2
|
|||
params.genome = ''
|
||||
|
||||
process BOWTIE2 {
|
||||
// depending on the genome used one might want/need to adjust the memory settings.
|
||||
// For the E. coli test data this is probably not required
|
||||
// depending on the genome used one might want/need to adjust the memory settings.
|
||||
// For the E. coli test data this is probably not required
|
||||
|
||||
// label 'bigMem'
|
||||
// label 'multiCore'
|
||||
// label 'bigMem'
|
||||
// label 'multiCore'
|
||||
|
||||
input:
|
||||
tuple val(name), path(reads)
|
||||
val (outdir)
|
||||
val (bowtie2_args)
|
||||
val (verbose)
|
||||
tuple val(name), path(reads)
|
||||
val (outdir)
|
||||
val (bowtie2_args)
|
||||
val (verbose)
|
||||
|
||||
output:
|
||||
path "*bam", emit: bam
|
||||
path "*stats.txt", emit: stats
|
||||
output:
|
||||
path "*bam", emit: bam
|
||||
path "*stats.txt", emit: stats
|
||||
|
||||
publishDir "$outdir/bowtie2",
|
||||
mode: "copy", overwrite: true
|
||||
publishDir "$outdir/bowtie2",
|
||||
mode: "copy", overwrite: true
|
||||
|
||||
script:
|
||||
if (verbose){
|
||||
println ("[MODULE] BOWTIE2 ARGS: " + bowtie2_args)
|
||||
}
|
||||
script:
|
||||
if (verbose){
|
||||
println ("[MODULE] BOWTIE2 ARGS: " + bowtie2_args)
|
||||
}
|
||||
|
||||
cores = 4
|
||||
cores = 4
|
||||
|
||||
readString = ""
|
||||
readString = ""
|
||||
|
||||
// Options we add are
|
||||
bowtie2_options = bowtie2_args
|
||||
bowtie2_options += " --no-unal " // We don't need unaligned reads in the BAM file
|
||||
// Options we add are
|
||||
bowtie2_options = bowtie2_args
|
||||
bowtie2_options += " --no-unal " // We don't need unaligned reads in the BAM file
|
||||
|
||||
// single-end / paired-end distinction. Might also be handled via params.single_end
|
||||
if (reads instanceof List) {
|
||||
readString = "-1 " + reads[0] + " -2 " + reads[1]
|
||||
}
|
||||
else {
|
||||
readString = "-U " + reads
|
||||
}
|
||||
// single-end / paired-end distinction. Might also be handled via params.single_end
|
||||
if (reads instanceof List) {
|
||||
readString = "-1 " + reads[0] + " -2 " + reads[1]
|
||||
}
|
||||
else {
|
||||
readString = "-U " + reads
|
||||
}
|
||||
|
||||
index = params.genome["bowtie2"]
|
||||
bowtie2_name = name + "_" + params.genome["name"]
|
||||
index = params.genome["bowtie2"]
|
||||
bowtie2_name = name + "_" + params.genome["name"]
|
||||
|
||||
"""
|
||||
bowtie2 -x ${index} -p ${cores} ${bowtie2_options} ${readString} 2>${bowtie2_name}_bowtie2_stats.txt | samtools view -bS -F 4 -F 8 -F 256 -> ${bowtie2_name}_bowtie2.bam
|
||||
"""
|
||||
"""
|
||||
bowtie2 -x ${index} -p ${cores} ${bowtie2_options} ${readString} 2>${bowtie2_name}_bowtie2_stats.txt | samtools view -bS -F 4 -F 8 -F 256 -> ${bowtie2_name}_bowtie2.bam
|
||||
"""
|
||||
|
||||
}
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
FROM nfcore/base
|
||||
LABEL authors="Jeremy Guntoro" \
|
||||
description="Docker image containing all requirements for nf-core/modules/bwa/mem module"
|
||||
description="Docker image containing all requirements for nf-core/modules/bwa/mem module"
|
||||
|
||||
COPY environment.yml /
|
||||
RUN conda env create -f /environment.yml && conda clean -a
|
||||
ENV PATH /opt/conda/envs/nf-core-bwa-mem/bin:$PATH
|
||||
|
||||
|
||||
|
|
|
@ -17,21 +17,21 @@ process cutadapt {
|
|||
if (params.singleEnd) {
|
||||
processing = """
|
||||
cutadapt \
|
||||
-j ${task.cpus} \
|
||||
-q $params.cutadapt_min_quality \
|
||||
--minimum-length $params.cutadapt_min_length \
|
||||
--output ${forward_fq} \
|
||||
${reads}
|
||||
-j ${task.cpus} \
|
||||
-q $params.cutadapt_min_quality \
|
||||
--minimum-length $params.cutadapt_min_length \
|
||||
--output ${forward_fq} \
|
||||
${reads}
|
||||
"""
|
||||
} else {
|
||||
processing = """
|
||||
cutadapt \
|
||||
-j ${task.cpus} \
|
||||
-q $params.cutadapt_min_quality \
|
||||
--minimum-length $params.cutadapt_min_length \
|
||||
--pair-filter=any \
|
||||
--output ${forward_fq} \
|
||||
--paired-output ${reverse_fq} ${reads}
|
||||
-j ${task.cpus} \
|
||||
-q $params.cutadapt_min_quality \
|
||||
--minimum-length $params.cutadapt_min_length \
|
||||
--pair-filter=any \
|
||||
--output ${forward_fq} \
|
||||
--paired-output ${reverse_fq} ${reads}
|
||||
|
||||
|
||||
"""
|
||||
|
|
|
@ -2,37 +2,37 @@ nextflow.preview.dsl=2
|
|||
|
||||
process FASTQ_SCREEN {
|
||||
|
||||
// depending on the number of genomes and the type of genome (e.g. plants!), memory needs to be ample!
|
||||
// label 'bigMem'
|
||||
// label 'multiCore'
|
||||
// depending on the number of genomes and the type of genome (e.g. plants!), memory needs to be ample!
|
||||
// label 'bigMem'
|
||||
// label 'multiCore'
|
||||
|
||||
input:
|
||||
tuple val(name), path(reads)
|
||||
val (outputdir)
|
||||
// fastq_screen_args are best passed in to the workflow in the following manner:
|
||||
// --fastq_screen_args="--subset 200000 --force"
|
||||
val (fastq_screen_args)
|
||||
val (verbose)
|
||||
tuple val(name), path(reads)
|
||||
val (outputdir)
|
||||
// fastq_screen_args are best passed in to the workflow in the following manner:
|
||||
// --fastq_screen_args="--subset 200000 --force"
|
||||
val (fastq_screen_args)
|
||||
val (verbose)
|
||||
|
||||
output:
|
||||
path "*png", emit: png
|
||||
path "*html", emit: html
|
||||
path "*txt", emit: report
|
||||
output:
|
||||
path "*png", emit: png
|
||||
path "*html", emit: html
|
||||
path "*txt", emit: report
|
||||
|
||||
publishDir "$outputdir",
|
||||
mode: "link", overwrite: true
|
||||
publishDir "$outputdir",
|
||||
mode: "link", overwrite: true
|
||||
|
||||
script:
|
||||
println(name)
|
||||
println(reads)
|
||||
println(outputdir)
|
||||
if (verbose){
|
||||
println ("[MODULE] FASTQ SCREEN ARGS: "+ fastq_screen_args)
|
||||
}
|
||||
println(name)
|
||||
println(reads)
|
||||
println(outputdir)
|
||||
if (verbose){
|
||||
println ("[MODULE] FASTQ SCREEN ARGS: "+ fastq_screen_args)
|
||||
}
|
||||
|
||||
"""
|
||||
module load fastq_screen
|
||||
fastq_screen $fastq_screen_args $reads
|
||||
"""
|
||||
"""
|
||||
module load fastq_screen
|
||||
fastq_screen $fastq_screen_args $reads
|
||||
"""
|
||||
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
FROM nfcore/base:1.7
|
||||
LABEL authors="phil.ewels@scilifelab.se" \
|
||||
description="Docker image for nf-core modules fastqc"
|
||||
description="Docker image for nf-core modules fastqc"
|
||||
|
||||
# foobar
|
||||
COPY environment.yml /
|
||||
|
|
|
@ -4,34 +4,34 @@ process FASTQC {
|
|||
|
||||
// tag "FastQC - $sample_id"
|
||||
|
||||
input:
|
||||
tuple val(name), path(reads)
|
||||
val (outputdir)
|
||||
input:
|
||||
tuple val(name), path(reads)
|
||||
val (outputdir)
|
||||
// fastqc_args are best passed into the workflow in the following manner:
|
||||
// --fastqc_args="--nogroup -a custom_adapter_file.txt"
|
||||
val (fastqc_args)
|
||||
val (verbose)
|
||||
val (fastqc_args)
|
||||
val (verbose)
|
||||
|
||||
output:
|
||||
tuple val(name), path ("*fastqc*"), emit: all
|
||||
path "*.zip", emit: report // e.g. for MultiQC later
|
||||
output:
|
||||
tuple val(name), path ("*fastqc*"), emit: all
|
||||
path "*.zip", emit: report // e.g. for MultiQC later
|
||||
|
||||
// container 'quay.io/biocontainers/fastqc:0.11.8--2'
|
||||
|
||||
publishDir "$outputdir",
|
||||
mode: "copy", overwrite: true
|
||||
publishDir "$outputdir",
|
||||
mode: "copy", overwrite: true
|
||||
|
||||
script:
|
||||
script:
|
||||
|
||||
if (verbose){
|
||||
println ("[MODULE] FASTQC ARGS: " + fastqc_args)
|
||||
}
|
||||
if (verbose){
|
||||
println ("[MODULE] FASTQC ARGS: " + fastqc_args)
|
||||
}
|
||||
|
||||
"""
|
||||
module load fastqc
|
||||
fastqc $fastqc_args -q -t 2 $reads
|
||||
"""
|
||||
module load fastqc
|
||||
fastqc $fastqc_args -q -t 2 $reads
|
||||
|
||||
fastqc --version &> fastqc.version.txt
|
||||
"""
|
||||
"""
|
||||
|
||||
}
|
||||
|
|
|
@ -5,27 +5,27 @@ process MULTIQC {
|
|||
// tag "FastQC - $sample_id"
|
||||
|
||||
input:
|
||||
path (file)
|
||||
val (outdir)
|
||||
val (multiqc_args)
|
||||
path (file)
|
||||
val (outdir)
|
||||
val (multiqc_args)
|
||||
// multiqc_args are best passed into the workflow in the following manner:
|
||||
// --multiqc_args="--exlude STAR --title custom_report_title"
|
||||
val (verbose)
|
||||
val (verbose)
|
||||
|
||||
output:
|
||||
path "*html", emit: html
|
||||
output:
|
||||
path "*html", emit: html
|
||||
|
||||
publishDir "${outdir}/multiqc",
|
||||
mode: "copy", overwrite: true
|
||||
publishDir "${outdir}/multiqc",
|
||||
mode: "copy", overwrite: true
|
||||
|
||||
script:
|
||||
|
||||
if (verbose){
|
||||
println ("[MODULE] MULTIQC ARGS: " + multiqc_args)
|
||||
}
|
||||
if (verbose){
|
||||
println ("[MODULE] MULTIQC ARGS: " + multiqc_args)
|
||||
}
|
||||
|
||||
"""
|
||||
multiqc $multiqc_args -x work .
|
||||
"""
|
||||
"""
|
||||
multiqc $multiqc_args -x work .
|
||||
"""
|
||||
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
FROM nfcore/base:1.7
|
||||
LABEL authors="phil.ewels@scilifelab.se" \
|
||||
description="Docker image for nf-core modules samtools"
|
||||
description="Docker image for nf-core modules samtools"
|
||||
|
||||
# foobar
|
||||
COPY environment.yml /
|
||||
|
|
|
@ -14,4 +14,3 @@ process tcoffee {
|
|||
t_coffee -seq $fasta -outfile ${fasta}.aln
|
||||
"""
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
FROM nfcore/base:1.7
|
||||
LABEL authors="phil.ewels@scilifelab.se" \
|
||||
description="Docker image for nf-core modules trimgalore"
|
||||
description="Docker image for nf-core modules trimgalore"
|
||||
|
||||
# foobar
|
||||
COPY environment.yml /
|
||||
|
|
|
@ -18,15 +18,15 @@ process TRIM_GALORE {
|
|||
// container 'quay.io/biocontainers/trim-galore:0.6.5--0' // maybe later
|
||||
// tag "$sample_id"
|
||||
|
||||
input:
|
||||
tuple val (name), path (reads)
|
||||
val (outdir)
|
||||
val (trim_galore_args)
|
||||
val (verbose)
|
||||
input:
|
||||
tuple val (name), path (reads)
|
||||
val (outdir)
|
||||
val (trim_galore_args)
|
||||
val (verbose)
|
||||
|
||||
output:
|
||||
tuple val(name), path ("*fq.gz"), emit: reads
|
||||
path "*trimming_report.txt", optional: true, emit: report
|
||||
output:
|
||||
tuple val(name), path ("*fq.gz"), emit: reads
|
||||
path "*trimming_report.txt", optional: true, emit: report
|
||||
|
||||
// Trimming reports are not generated for e.g. --hardtrim5, --clock etc
|
||||
// saveAs: {filename ->
|
||||
|
@ -34,21 +34,21 @@ process TRIM_GALORE {
|
|||
// else filename
|
||||
// }
|
||||
|
||||
publishDir "${outdir}/trim_galore",
|
||||
mode: "copy", overwrite: true
|
||||
publishDir "${outdir}/trim_galore",
|
||||
mode: "copy", overwrite: true
|
||||
|
||||
script:
|
||||
if (verbose){
|
||||
println ("[MODULE] TRIM GALORE ARGS: " + trim_galore_args)
|
||||
}
|
||||
if (verbose){
|
||||
println ("[MODULE] TRIM GALORE ARGS: " + trim_galore_args)
|
||||
}
|
||||
|
||||
trim_galore_args += " --gzip " // we like small files
|
||||
|
||||
pairedString = 0
|
||||
if (reads instanceof List) {
|
||||
pairedString = 1
|
||||
pairedString = 0
|
||||
if (reads instanceof List) {
|
||||
pairedString = 1
|
||||
trim_galore_args += " --paired "
|
||||
}
|
||||
}
|
||||
|
||||
if (params.clip_r1 > 0){
|
||||
trim_galore_args += " --clip_r1 ${params.clip_r1} "
|
||||
|
@ -85,10 +85,10 @@ process TRIM_GALORE {
|
|||
}
|
||||
}
|
||||
|
||||
"""
|
||||
module load trim_galore
|
||||
trim_galore $trim_galore_args $reads
|
||||
"""
|
||||
"""
|
||||
module load trim_galore
|
||||
trim_galore $trim_galore_args $reads
|
||||
"""
|
||||
|
||||
}
|
||||
|
||||
|
@ -98,4 +98,3 @@ process TRIM_GALORE {
|
|||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
FROM nfcore/base:1.7
|
||||
LABEL authors="chris.cheshire@crick.ac.uk" \
|
||||
description="Docker image containing all requirements for the nf-core umi_tools module"
|
||||
description="Docker image containing all requirements for the nf-core umi_tools module"
|
||||
|
||||
# Install conda packages
|
||||
COPY environment.yml /
|
||||
|
|
|
@ -43,4 +43,3 @@ processes:
|
|||
authors:
|
||||
- @candiceh08
|
||||
- @chris-cheshire
|
||||
|
||||
|
|
Loading…
Reference in a new issue