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=;:<&8<;=<&
+@prefix:1_13_1440/1
+CAAGATCTNCCCTGCCACATTGCCCTAGTTAAAC
++
+<=A:A=57!7<';<6?5;;6:+:=)71>70<,=: