generated from CCBR/CCBR_NextflowTemplate
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from CCBR/cutadapt
Use cutadapt CCBR/nf-modules
- Loading branch information
Showing
12 changed files
with
136 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
repository_type: pipeline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "CCBR/CRUISE", | ||
"homePage": "https://github.com/CCBR/CRUISE", | ||
"repos": { | ||
"https://github.com/CCBR/nf-modules": { | ||
"modules": { | ||
"CCBR": { | ||
"cutadapt": { | ||
"branch": "main", | ||
"git_sha": "a3525c765b76400269695235bbf164a948604c4a", | ||
"installed_by": ["modules"] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
process CUTADAPT { | ||
tag { meta.id } | ||
label 'process_high' | ||
|
||
container 'nciccbr/ncigb_cutadapt_v1.18:latest' | ||
|
||
input: | ||
tuple val(meta), path(reads) | ||
|
||
output: | ||
tuple val(meta), path('*.trim.fastq.gz'), emit: reads | ||
tuple val(meta), path('*.log') , emit: log | ||
path "versions.yml" , emit: versions | ||
|
||
when: | ||
task.ext.when == null || task.ext.when | ||
|
||
script: | ||
def prefix = task.ext.prefix ?: "${meta.id}" | ||
def trimmed = meta.single_end ? "-o ${prefix}.trim.fastq.gz" : "-o ${prefix}_1.trim.fastq.gz -p ${prefix}_2.trim.fastq.gz" | ||
def args = task.ext.args ?: [ | ||
'--nextseq-trim=2', | ||
'--trim-n -n 5 -O 5', | ||
'-q 10,10', | ||
'-b file:/opt2/TruSeq_and_nextera_adapters.consolidated.fa' | ||
] | ||
if (meta.single_end) { | ||
args += [ | ||
'-m 20' | ||
] | ||
} else { | ||
args += [ | ||
'-B file:/opt2/TruSeq_and_nextera_adapters.consolidated.fa', | ||
'-m 20:20', | ||
] | ||
} | ||
args = args.join(' ').trim() | ||
""" | ||
cutadapt \\ | ||
--cores ${task.cpus} \\ | ||
${args} \\ | ||
${trimmed} \\ | ||
${reads} \\ | ||
> ${prefix}.cutadapt.log | ||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
cutadapt: \$(cutadapt --version) | ||
END_VERSIONS | ||
""" | ||
|
||
stub: | ||
def prefix = task.ext.prefix ?: "${meta.id}" | ||
def trimmed = meta.single_end ? "${prefix}.trim.fastq.gz" : "${prefix}_1.trim.fastq.gz ${prefix}_2.trim.fastq.gz" | ||
""" | ||
touch ${prefix}.cutadapt.log | ||
touch ${trimmed} | ||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
cutadapt: \$(cutadapt --version) | ||
END_VERSIONS | ||
""" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: cutadapt | ||
description: Perform adapter/quality trimming on sequencing reads. Adapted from the nf-core cutadapt module. | ||
keywords: | ||
- trimming | ||
- adapter trimming | ||
- adapters | ||
- quality trimming | ||
tools: | ||
- cuatadapt: | ||
description: | | ||
Cutadapt finds and removes adapter sequences, primers, poly-A tails and other types of unwanted sequence from your high-throughput sequencing reads. | ||
documentation: https://cutadapt.readthedocs.io/en/stable/index.html | ||
doi: 10.14806/ej.17.1.200 | ||
licence: ["MIT"] | ||
input: | ||
- meta: | ||
type: map | ||
description: | | ||
Groovy Map containing sample information | ||
e.g. [ id:'test', single_end:false ] | ||
- reads: | ||
type: file | ||
description: | | ||
List of input FastQ files of size 1 and 2 for single-end and paired-end data, | ||
respectively. | ||
output: | ||
- meta: | ||
type: map | ||
description: | | ||
Groovy Map containing sample information | ||
e.g. [ id:'test', single_end:false ] | ||
- reads: | ||
type: file | ||
description: The trimmed/modified fastq reads | ||
pattern: "*fastq.gz" | ||
- log: | ||
type: file | ||
description: cuatadapt log file | ||
pattern: "*cutadapt.log" | ||
- versions: | ||
type: file | ||
description: File containing software versions | ||
pattern: "versions.yml" | ||
authors: | ||
- "@kelly-sovacool" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters