From 8bdd212b8708a9d080e87303dd543fb93bc05c2f Mon Sep 17 00:00:00 2001 From: Wolfgang Maier Date: Mon, 8 Jul 2024 18:01:11 +0200 Subject: [PATCH] Update cutadapt from version 4.8 to 4.9 (#6136) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Updating tools/cutadapt from version 4.8 to 4.9 * Add crop action and -L option support * Fix length2 tests * Fix R2 adapters use in tests * Remove test sections that were ill-specified & never used --------- Co-authored-by: planemo-autoupdate Co-authored-by: Björn Grüning --- tools/cutadapt/cutadapt.xml | 118 +++++++++++++++--- tools/cutadapt/macros.xml | 4 +- .../test-data/cutadapt_action_crop.out | 12 ++ 3 files changed, 115 insertions(+), 19 deletions(-) create mode 100644 tools/cutadapt/test-data/cutadapt_action_crop.out diff --git a/tools/cutadapt/cutadapt.xml b/tools/cutadapt/cutadapt.xml index efa06f8f938..b828be6621f 100644 --- a/tools/cutadapt/cutadapt.xml +++ b/tools/cutadapt/cutadapt.xml @@ -155,6 +155,13 @@ $other_trimming_options.poly_a --length=-$other_trimming_options.shorten_options.length #end if #end if +#if $paired and str($other_trimming_options.shorten_options_r2.shorten_values_r2) == 'True': + #if str($other_trimming_options.shorten_options_r2.shorten_end_r2) == '3prime' + -L $other_trimming_options.shorten_options_r2.length2 + #else + -L -$other_trimming_options.shorten_options_r2.length2 + #end if +#end if $filter_options.discard_trimmed $filter_options.discard_untrimmed @@ -278,6 +285,7 @@ $read_mod_options.zero_cap + @@ -321,6 +329,21 @@ $read_mod_options.zero_cap + + + + + + + + + + + + + + +
@@ -874,6 +897,22 @@ $read_mod_options.zero_cap
+ + + +
+ + + + + + +
+
+ +
+ +
@@ -907,7 +946,7 @@ $read_mod_options.zero_cap - + @@ -986,14 +1025,6 @@ $read_mod_options.zero_cap -
- - - - - - -
@@ -1020,14 +1051,6 @@ $read_mod_options.zero_cap
-
- - - - - - -
@@ -1089,6 +1112,67 @@ $read_mod_options.zero_cap
+ + + +
+ + + + + + +
+
+ + + + + + +
+
+ + + + + + + + + + +
+
+ +
+ + +
+ + + +
+ + + + + + +
+
+ + + + + +
+
+ +
+ + +
diff --git a/tools/cutadapt/macros.xml b/tools/cutadapt/macros.xml index 8ce4da5419c..58a03ba3e4e 100644 --- a/tools/cutadapt/macros.xml +++ b/tools/cutadapt/macros.xml @@ -1,6 +1,6 @@ - 4.8 - 1 + 4.9 + 0 fastq.bz2,fastq.gz,fastq,fasta.bz2,fasta.gz,fasta diff --git a/tools/cutadapt/test-data/cutadapt_action_crop.out b/tools/cutadapt/test-data/cutadapt_action_crop.out new file mode 100644 index 00000000000..63a354ebefe --- /dev/null +++ b/tools/cutadapt/test-data/cutadapt_action_crop.out @@ -0,0 +1,12 @@ +@prefix:1_13_573/1 +CGTCCGAANTAG ++ +)3%)&&&&!.1& +@prefix:1_13_1259/1 +AGCCGCTANGACGGGTTGGCCCTTAGACGTATCT ++ +;<:&:A;A!9<<<,7:<=3=;:<&70<,=: