diff --git a/src/nf_modules/FastQC/fastqc.nf b/src/nf_modules/FastQC/fastqc.nf deleted file mode 100644 index 6e90d454d8b2da66882af7c5c99e537aca0cebd8..0000000000000000000000000000000000000000 --- a/src/nf_modules/FastQC/fastqc.nf +++ /dev/null @@ -1,71 +0,0 @@ -/* -* fastqc : -* Imputs : fastq files -* Output : pdf files -*/ - -/* fastQC */ - - -/* -* for single-end data -*/ - -params.fastq = "$baseDir/data/fastq/*.fastq" - -log.info "fastq files : ${params.fastq}" - -Channel - .fromPath( params.fastq ) - .ifEmpty { error "Cannot find any fastq files matching: ${params.fastq}" } - .map { it -> [(it.baseName =~ /([^\.]*)/)[0][1], it]} - .set { fastq_files } - -process fastqc_fastq { - tag "$file_id" - publishDir "results/fastq/fastqc/", mode: 'copy' - cpus = 1 - - input: - set file_id, file(reads) from fastq_files - - output: - file "*.{zip,html}" into fastqc_report - - script: -""" -fastqc --quiet --threads ${task.cpus} --format fastq --outdir ./ ${reads} -""" -} - - -/* -* for paired-end data -*/ - -params.fastq = "$baseDir/data/fastq/*_{1,2}.fastq" - -log.info "fastq files : ${params.fastq}" - -Channel - .fromFilePairs( params.fastq ) - .ifEmpty { error "Cannot find any fastq files matching: ${params.fastq}" } - .set { fastq_files } - -process fastqc_fastq { - tag "$pair_id" - publishDir "results/fastq/fastqc/", mode: 'copy' - - input: - set pair_id, file(reads) from fastq_files - - output: - file "*.{zip,html}" into fastqc_report - - script: -""" -fastqc --quiet --threads ${task.cpus} --format fastq --outdir ./ \ -${reads[0]} ${reads[1]} -""" -} - diff --git a/src/nf_modules/FastQC/fastqc.config b/src/nf_modules/FastQC/fastqc_paired.config similarity index 100% rename from src/nf_modules/FastQC/fastqc.config rename to src/nf_modules/FastQC/fastqc_paired.config diff --git a/src/nf_modules/FastQC/tests/fastqc_paired.nf b/src/nf_modules/FastQC/fastqc_paired.nf similarity index 100% rename from src/nf_modules/FastQC/tests/fastqc_paired.nf rename to src/nf_modules/FastQC/fastqc_paired.nf diff --git a/src/nf_modules/FastQC/fastqc_single.config b/src/nf_modules/FastQC/fastqc_single.config new file mode 100644 index 0000000000000000000000000000000000000000..a6589845aa98db0b4f6eaa663246db2604eb210b --- /dev/null +++ b/src/nf_modules/FastQC/fastqc_single.config @@ -0,0 +1,25 @@ +profiles { + docker { + docker.temp = 'auto' + docker.enabled = true + process { + $fastqc_fastq { + container = "fastqc:0.11.5" + } + } + } + sge { + process{ + $fastqc_fastq { + beforeScript = "module purge; module load FastQC/0.11.5" + executor = "sge" + cpus = 1 + memory = "5GB" + time = "6h" + queueSize = 1000 + pollInterval = '60sec' + queue = 'monointeldeb128' + } + } + } +} diff --git a/src/nf_modules/FastQC/tests/fastqc_single.nf b/src/nf_modules/FastQC/fastqc_single.nf similarity index 100% rename from src/nf_modules/FastQC/tests/fastqc_single.nf rename to src/nf_modules/FastQC/fastqc_single.nf diff --git a/src/nf_modules/FastQC/tests.sh b/src/nf_modules/FastQC/tests.sh new file mode 100755 index 0000000000000000000000000000000000000000..b103ac74f468c5b65c398b784b9e66a0e7d669d4 --- /dev/null +++ b/src/nf_modules/FastQC/tests.sh @@ -0,0 +1,9 @@ +nextflow src/nf_modules/FastQC/fastqc_paired.nf \ + -c src/nf_modules/FastQC/fastqc_paired.config \ + -profile docker \ + --fastq "data/tiny_dataset/fastq/tiny_R{1,2}.fastq" + +nextflow src/nf_modules/FastQC/fastqc_single.nf \ + -c src/nf_modules/FastQC/fastqc_single.config \ + -profile docker \ + --fastq "data/tiny_dataset/fastq/tiny_S.fastq" diff --git a/src/nf_modules/FastQC/tests/tests.sh b/src/nf_modules/FastQC/tests/tests.sh deleted file mode 100755 index 147503b411bd0232f064c76fb75c1a45533a0e79..0000000000000000000000000000000000000000 --- a/src/nf_modules/FastQC/tests/tests.sh +++ /dev/null @@ -1,9 +0,0 @@ -nextflow src/nf_modules/FastQC/tests/fastqc_paired.nf \ - -c src/nf_modules/FastQC/fastqc.config \ - -profile docker \ - --fastq "data/tiny_dataset/fastq/tiny_R{1,2}.fastq" - -nextflow src/nf_modules/FastQC/tests/fastqc_single.nf \ - -c src/nf_modules/FastQC/fastqc.config \ - -profile docker \ - --fastq "data/tiny_dataset/fastq/tiny_S.fastq"