# HG changeset patch # User earlhaminst # Date 1622886565 0 # Node ID fc78d02657a98f232e52940648d71a204cb056f9 # Parent 7f33525b85d06a1eb46b8965bd944fa76fed1597 "planemo upload for repository https://github.com/TGAC/earlham-galaxytools/tree/master/tools/lotus2 commit 8234e6652ddaa52bbd6ac041cd69470f1600832f" diff -r 7f33525b85d0 -r fc78d02657a9 lotus2.xml --- a/lotus2.xml Thu Jun 03 16:23:18 2021 +0000 +++ b/lotus2.xml Sat Jun 05 09:49:25 2021 +0000 @@ -1,16 +1,17 @@ - + fast OTU processing pipeline - 2.06 - + 2.07 + - - + + + @@ -20,14 +21,14 @@ - + - + @@ -41,13 +42,20 @@ #import os.path #import re #def symlink_basename($f): - #set fn = re.sub('[^\w\-_.]', '_', $f.element_identifier) - #if fn.endswith('.gz'): - #set fn = fn[:-3] + #set $fn = re.sub('[^\w\-_.]', '_', $f.element_identifier) + #if $fn.endswith('.gz'): + #set $fn = $fn[:-3] #end if - #for ext in ('.fq', '.fastq', '.fastqsanger'): - #if fn.endswith($ext): - #set fn = fn[:-len($ext)] + #if $f.ext.startswith('fastqsanger'): + #set $exts_to_drop = ('.fq', '.fastq', '.fastqsanger') + #elif $f.ext.startswith('fasta'): + #set $exts_to_drop = ('.fa', '.fasta', '.fna') + #else + #set $exts_to_drop = [] + #end if + #for $ext in $exts_to_drop: + #if $fn.endswith($ext): + #set $fn = $fn[:-len($ext)] #break #end if #end for @@ -57,8 +65,8 @@ mkdir input && #if $inputs.paired_or_single == 'single': - #for f in $inputs.input: - #set ext = $f.ext.replace('sanger', '') + #for $f in $inputs.input: + #set $ext = $f.ext.replace('sanger', '') ln -s '$f' 'input/${symlink_basename(f)}.${ext}' && #end for #elif $inputs.paired_or_single == 'paired': @@ -66,19 +74,24 @@ #set ext = $f.ext.replace('sanger', '') ln -s '$f' 'input/input${i}.1.${ext}' && #end for - #for i, f in enumerate($inputs.right_input): - #set ext = $f.ext.replace('sanger', '') + #for $i, $f in enumerate($inputs.right_input): + #set $ext = $f.ext.replace('sanger', '') ln -s '$f' 'input/input${i}.2.${ext}' && #end for #else: - #for f in $inputs.pair_input: - #set ext = $f.forward.ext.replace('sanger', '') + #for $f in $inputs.pair_input: + #set $ext = $f.forward.ext.replace('sanger', '') ln -s '$f.forward' 'input/${symlink_basename(f)}.1.${ext}' && - #set ext = $f.reverse.ext.replace('sanger', '') + #set $ext = $f.reverse.ext.replace('sanger', '') ln -s '$f.reverse' 'input/${symlink_basename(f)}.2.${ext}' && #end for #end if +#if $tax_args.aligner_cond.taxAligner not in ('0', '3') and $tax_args.aligner_cond.refDB_cond.refDB == 'history': + #set $ref_fasta_symlink = $symlink_basename($tax_args.aligner_cond.refDB_cond.ref_fasta) + '.' + $tax_args.aligner_cond.refDB_cond.ref_fasta.ext + ln -s '$tax_args.aligner_cond.refDB_cond.ref_fasta' '$ref_fasta_symlink' && +#end if + #if not $map: lotus2 -create_map mapping.txt -i input/ && cat mapping.txt && @@ -91,7 +104,12 @@ -tmpDir tmp_folder -threads "\${GALAXY_SLOTS:-1}" -map '$map' --platform $platform +#if $sdmopt: + -sdmopt '$sdmopt' +#end if +#if $platform != '': + -platform $platform +#end if #if $barcode: -barcode '$barcode' #end if @@ -106,7 +124,7 @@ #end if -clustering $clu_args.clu_cond.clustering -#if $clu_args.clu_cond.clustering in ('1', '3'): +#if $clu_args.clu_cond.clustering in ('1', '3') and str($clu_args.clu_cond.id): -id $clu_args.clu_cond.id #elif $clu_args.clu_cond.clustering == '2': -swarm_distance $clu_args.clu_cond.swarm_distance @@ -114,8 +132,13 @@ #if $clu_args.derepMin: -derepMin '$clu_args.derepMin' #end if --deactivateChimeraCheck $clu_args.deactivateChimeraCheck --chim_skew $clu_args.chim_skew + +#if $clu_args.deactivateChimeraCheck != '': + -deactivateChimeraCheck $clu_args.deactivateChimeraCheck +#end if +#if str($clu_args.chim_skew): + -chim_skew $clu_args.chim_skew +#end if -taxAligner $tax_args.aligner_cond.taxAligner #if $tax_args.aligner_cond.taxAligner == '0': @@ -124,22 +147,33 @@ -utax_thr $tax_args.aligner_cond.utax_thr #else: #if $tax_args.aligner_cond.refDB_cond.refDB == 'cached': - -refDB $tax_args.aligner_cond.refDB_cond.ref_db - -greengenesSpecies $tax_args.aligner_cond.refDB_cond.greengenesSpecies + #if $tax_args.aligner_cond.refDB_cond.ref_db != '': + -refDB $tax_args.aligner_cond.refDB_cond.ref_db + -greengenesSpecies $tax_args.aligner_cond.refDB_cond.greengenesSpecies + #end if #else: - -refDB $tax_args.aligner_cond.refDB_cond.ref_fasta - -tax4refDB $tax_args.aligner_cond.refDB_cond.tax4refDB + -refDB '$ref_fasta_symlink' + -tax4refDB '$tax_args.aligner_cond.refDB_cond.tax4refDB' #end if -useBestBlastHitOnly $tax_args.aligner_cond.useBestBlastHitOnly #end if --amplicon_type $tax_args.amplicon_cond.amplicon_type +#if $tax_args.amplicon_cond.amplicon_type != '': + -amplicon_type $tax_args.amplicon_cond.amplicon_type +#end if #if $tax_args.amplicon_cond.amplicon_type in ('ITS', 'ITS1', 'ITS2'): -ITSx $tax_args.amplicon_cond.ITSx_macro #end if --tax_group $tax_args.tax_group + +#if $tax_args.tax_group != '': + -tax_group $tax_args.tax_group +#end if -keepUnclassified $tax_args.keepUnclassified --LCA_cover $tax_args.LCA_cover --LCA_frac $tax_args.LCA_frac +#if str($tax_args.LCA_cover): + -LCA_cover $tax_args.LCA_cover +#end if +#if str($tax_args.LCA_frac): + -LCA_frac $tax_args.LCA_frac +#end if -lulu $tax_args.lulu -buildPhylo $tax_args.buildPhylo @@ -170,8 +204,10 @@ + - + + @@ -195,7 +231,7 @@ - +
@@ -223,12 +259,13 @@ - + + - +
@@ -243,7 +280,7 @@ - + @@ -257,8 +294,9 @@ + - + @@ -274,12 +312,13 @@ - + + - - + +