Skip to content

Commit eba9ad4

Browse files
committed
add some options to disable filters in fastp
1 parent 9e946c7 commit eba9ad4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

fastp.wdl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ task Fastp {
3636
Int lengthRequired = 15
3737
Int? split
3838
Boolean performAdapterTrimming = true
39+
Boolean performQualityFiltering = true
40+
Boolean performLengthFiltering = true
3941

4042
Int threads = 4
4143
String memory = "50GiB"
@@ -73,7 +75,9 @@ task Fastp {
7375
--thread ~{select_first([effectiveSplit, threads])} \
7476
~{"--split " + effectiveSplit} \
7577
~{if defined(effectiveSplit) then "-d 0" else ""} \
76-
~{if performAdapterTrimming then "" else "--disable_adapter_trimming"}
78+
~{if performAdapterTrimming then "" else "--disable_adapter_trimming"} \
79+
~{if performQualityFiltering then "" else "--disable_quality_filtering"} \
80+
~{if performLengthFiltering then "" else "--disable_length_filtering"}
7781
>>>
7882

7983
output {
@@ -102,6 +106,8 @@ task Fastp {
102106
lengthRequired: {description: "The minimum read length.", category: "advanced"}
103107
split: {description: "The number of chunks to split the files into. Number of threads will be set equal to the amount of splits.", category: "common"}
104108
performAdapterTrimming: {description: "Whether adapter trimming should be performed or not.", category: "advanced"}
109+
performQualityFiltering: {description: "Whether reads should be filtered based on quality scores.", category: "advanced"}
110+
performLengthFiltering: {description: "Whether reads shoulde be filtered based on lengths.", catgegory: "advanced"}
105111
threads: {description: "The number of threads to use. Only used if the split input is not set.", category: "advanced"}
106112
memory: {description: "The amount of memory this job will use.", category: "advanced"}
107113
timeMinutes: {description: "The maximum amount of time the job will run in minutes.", category: "advanced"}

0 commit comments

Comments
 (0)