Mercurial > repos > leomrtns > nanostat
comparison nanostat.xml @ 1:845458a694e0 draft default tip
planemo upload
author | leomrtns |
---|---|
date | Fri, 17 May 2019 09:23:59 -0400 |
parents | e86d1c122ee7 |
children |
comparison
equal
deleted
inserted
replaced
0:e86d1c122ee7 | 1:845458a694e0 |
---|---|
8 <command detect_errors="exit_code"><![CDATA[ | 8 <command detect_errors="exit_code"><![CDATA[ |
9 #import re | 9 #import re |
10 ## Galaxy creates xyz.dat but nanostat relies on suffix to detect compressed fasta/fastq; otoh Galaxy provides 'element_identifier' | 10 ## Galaxy creates xyz.dat but nanostat relies on suffix to detect compressed fasta/fastq; otoh Galaxy provides 'element_identifier' |
11 #if str($input_type.type) == "fastq" or str($input_type.type) == "fasta" | 11 #if str($input_type.type) == "fastq" or str($input_type.type) == "fasta" |
12 #set $named_input_files = '' | 12 #set $named_input_files = '' |
13 #for $i_file in $input_type.file | 13 #for $counter, $i_file in enumerate($input_type.file): |
14 ## Add single quotes around each input file identifier | 14 #if $i_file.is_of_type('fastqsanger', 'fastq'): |
15 #set $_input_file = "'{}'".format($i_file.element_identifier) | 15 #set $ext = 'fastq' |
16 #elif $i_file.is_of_type('fastqsanger.gz', 'fastq.gz'): | |
17 #set $ext = 'fastq.gz' | |
18 #elif $i_file.is_of_type('fastqsanger.bz2', 'fastq.bz2'): | |
19 #set $ext = 'fastq.bz2' | |
20 #elif $i_file.is_of_type('fasta'): | |
21 #set $ext = 'fasta' | |
22 #elif $i_file.is_of_type('fasta.gz'): | |
23 #set $ext = 'fasta.gz' | |
24 #elif $i_file.is_of_type('fasta.bz2'): | |
25 #set $ext = 'fasta.bz2' | |
26 #end if | |
27 #set $_input_file = "./input_" + str($counter) + "." + $ext | |
16 #set $named_input_files = $named_input_files + ' ' + $_input_file | 28 #set $named_input_files = $named_input_files + ' ' + $_input_file |
17 ln -s '${i_file}' ${_input_file} && | 29 ln -s '${i_file}' ${_input_file} && |
18 #end for | 30 #end for |
19 #end if | 31 #end if |
20 #### alternative would be something like: x=`file o.xyz.gz; if [[ $x == *gzip* ]]; then echo "found gzip"; fi | 32 #### alternative would be something like: x=`file o.xyz.gz; if [[ $x == *gzip* ]]; then echo "found gzip"; fi |
43 <option value="fasta">fasta (compressed or not)</option> | 55 <option value="fasta">fasta (compressed or not)</option> |
44 <option value="bam">sorted bam</option> | 56 <option value="bam">sorted bam</option> |
45 <option value="summary">Use albacore or guppy summary file for quality scores</option> | 57 <option value="summary">Use albacore or guppy summary file for quality scores</option> |
46 </param> | 58 </param> |
47 <when value="fastq"> | 59 <when value="fastq"> |
48 <param type="data" name="file" format="fastqsanger,fastqsanger.gz,fastqsanger.bz2, fastqsanger.bgz" multiple="true" label="One or more (compressed) fastq file(s)." optional="true"/> | 60 <param type="data" multiple="true" name="file" format="fastqsanger,fastqsanger.gz,fastqsanger.bz2, fastqsanger.bgz" label="One or more (compressed) fastq file(s)." optional="true"/> |
49 </when> | 61 </when> |
50 <when value="fasta"> | 62 <when value="fasta"> |
51 <param type="data" name="file" format="fasta, fasta.gz, fasta.bz2, fasta.bgz" multiple="true" label="One or more (compressed) fasta file(s)." optional="true"/> | 63 <param type="data" multiple="true" name="file" format="fasta, fasta.gz, fasta.bz2, fasta.bgz" label="One or more (compressed) fasta file(s)." optional="true"/> |
52 </when> | 64 </when> |
53 <when value="bam"> | 65 <when value="bam"> |
54 <param type="data" name="file" format="bam" label="One or more sorted bam file(s)." multiple="true" optional="true"/> | 66 <param type="data" multiple="true" name="file" format="bam" label="One or more sorted bam file(s)." optional="true"/> |
55 </when> | 67 </when> |
56 <when value="summary"> | 68 <when value="summary"> |
57 <param type="data" name="file" format="tabular" label="Summary file generated by albacore or guppy." multiple="true" optional="true"/> | 69 <param type="data" multiple="true" name="file" format="tabular" label="Summary file generated by albacore or guppy." optional="true"/> |
58 <param name="barcoded" argument="--barcoded" type="boolean" truevalue="--barcode" falsevalue="" checked="false" label="Do you want to split the summary file by barcode?" help="Default:No"/> | 70 <param name="barcoded" argument="--barcoded" type="boolean" truevalue="--barcode" falsevalue="" checked="false" label="Do you want to split the summary file by barcode?" help="Default:No"/> |
59 <param name="readtype" argument="--readtype" type="select" label="Which read type to extract information about from summary?"> | 71 <param name="readtype" argument="--readtype" type="select" label="Which read type to extract information about from summary?"> |
60 <option value="1D" selected="true">1D</option> | 72 <option value="1D" selected="true">1D</option> |
61 <option value="2D">2D</option> | 73 <option value="2D">2D</option> |
62 <option value="1D2">1D2</option> | 74 <option value="1D2">1D2</option> |