# HG changeset patch # User Lance Parsons # Date 1306364049 14400 # Node ID 7ed26fc9fa8a7c1b3c14d29e0decb3ca7cbbc9f5 # Parent f6b94b76d16b5230b92fe303825a862631e2c8b0 Updated for cutadapt 0.9.4, no longer need python wrapper diff -r f6b94b76d16b -r 7ed26fc9fa8a cutadapt.xml --- a/cutadapt.xml Mon May 16 16:34:09 2011 -0400 +++ b/cutadapt.xml Wed May 25 18:54:09 2011 -0400 @@ -1,10 +1,10 @@ - + from high-throughput sequence data cutadapt - cutadapt_galaxy_wrapper.py + cutadapt #if $input.extension.startswith( "fastq"): --format=fastq #else @@ -25,9 +25,12 @@ #if str($max) != '0': -M $max #end if - --input='$input' + #if $discard: + --discard + #end if + '$input' --output='$output' - > $report + 2> $report @@ -78,7 +81,7 @@ - + diff -r f6b94b76d16b -r 7ed26fc9fa8a cutadapt_galaxy_wrapper.py --- a/cutadapt_galaxy_wrapper.py Mon May 16 16:34:09 2011 -0400 +++ b/cutadapt_galaxy_wrapper.py Wed May 25 18:54:09 2011 -0400 @@ -14,6 +14,7 @@ [--discard discard trimmed reads] [-m minimum read length] [-M maximum read length] + [-q quality cutoff] [-h,--help] [-v,--verbose] [--version] DESCRIPTION @@ -64,6 +65,9 @@ params.append("-m %s" % options.minimum_length) if options.maximum_length != None: params.append("-M %s" % options.maximum_length) + if options.cutoff != None: + params.append("-q %s" % options.cutoff) + # cutadapt relies on the extension to determine file format: .fasta or .fastq input_name = '.'.join((options.input,options.format)) @@ -107,6 +111,8 @@ parser.add_option ('--discard', '--discard-trimmed', dest='discard_trimmed', action='store_true', default=False, help='Discard reads that contain the adapter') parser.add_option ('-m', '--minimum-length', dest='minimum_length', help='Discard reads that are shorter than LENGTH') parser.add_option ('-M', '--maximum-length', dest='maximum_length', help='Discard reads that are longer than LENGTH') + parser.add_option ('-q', '--quality-cutoff', dest='cutoff', help='Trim + low quality ends from reads before adapter removal') parser.add_option ('-o', '--output', dest='output_file', help='The modified sequences are written to the file') (options, args) = parser.parse_args() if options.input == None: