mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-10 20:23:10 +00:00
add cutadapt module
This commit is contained in:
parent
f62fad63ca
commit
97d9ae76f0
2 changed files with 64 additions and 0 deletions
24
tools/cutadapt/main.nf
Normal file
24
tools/cutadapt/main.nf
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
process cutadapt {
|
||||||
|
tag "${sample_id}"
|
||||||
|
|
||||||
|
container 'quay.io/biocontainers/cutadapt:1.16--py27_1'
|
||||||
|
|
||||||
|
input:
|
||||||
|
tuple sample_id, file(input_forward_fq), file(input_reverse_fq)
|
||||||
|
|
||||||
|
output:
|
||||||
|
tuple sample_id, file(output_forward_fq), file(output_reverse_fq)
|
||||||
|
|
||||||
|
script:
|
||||||
|
"""
|
||||||
|
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} '$input_forward_fq' '$input_reverse_fq'
|
||||||
|
|
||||||
|
cutadapt --version &> v_cutadapt.txt
|
||||||
|
"""
|
||||||
|
}
|
40
tools/cutadapt/meta.yml
Normal file
40
tools/cutadapt/meta.yml
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
name: Cutadapt
|
||||||
|
description: cutadapt removes adapter sequences from high-throughput sequencing reads
|
||||||
|
keywords:
|
||||||
|
- Quality Control
|
||||||
|
- QC
|
||||||
|
- Adapters
|
||||||
|
tools:
|
||||||
|
- fastqc:
|
||||||
|
description: |
|
||||||
|
Cutadapt finds and removes adapter sequences, primers, poly-A tails and other types of unwanted sequence
|
||||||
|
from your high-throughput sequencing reads.
|
||||||
|
|
||||||
|
Cleaning your data in this way is often required: Reads from small-RNA sequencing contain the 3’
|
||||||
|
sequencing adapter because the read is longer than the molecule that is sequenced. Amplicon reads
|
||||||
|
start with a primer sequence. Poly-A tails are useful for pulling out RNA from your sample, but
|
||||||
|
often you don’t want them to be in your reads.
|
||||||
|
homepage: https://cutadapt.readthedocs.io/en/stable/
|
||||||
|
documentation: https://cutadapt.readthedocs.io/en/stable/
|
||||||
|
input:
|
||||||
|
- - sample_id:
|
||||||
|
type: string
|
||||||
|
description: Sample identifier
|
||||||
|
- input_forward_fq:
|
||||||
|
type: file
|
||||||
|
description: Input FastQ forward read file of the pair
|
||||||
|
- input_reverse_fq:
|
||||||
|
type: file
|
||||||
|
description: Input FastQ reverse read file of the pair
|
||||||
|
output:
|
||||||
|
- - sample_id:
|
||||||
|
type: string
|
||||||
|
description: Sample identifier
|
||||||
|
- output_forward_fq:
|
||||||
|
type: file
|
||||||
|
description: Output FastQ forward read file of the pair
|
||||||
|
- output_reverse_fq:
|
||||||
|
type: file
|
||||||
|
description: Output FastQ reverse read file of the pair
|
||||||
|
authors:
|
||||||
|
- @piotr-faba-ardigen
|
Loading…
Reference in a new issue