Mercurial > repos > matthias > stacks2_cstacks
annotate macros_process.xml @ 2:8427e904f352 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
author | matthias |
---|---|
date | Tue, 18 Dec 2018 12:52:48 -0500 |
parents | |
children | 924e7889aa05 |
rev | line source |
---|---|
2
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
1 <?xml version="1.0"?> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
2 |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
3 <!-- macros and tokens for process_radtags and process_short_reads --> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
4 |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
5 <macros> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
6 <!-- fastq input for process_radtags/shortreads--> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
7 <xml name="process_inputs"> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
8 <conditional name="input_type"> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
9 <param name="options_type_selector" type="select" label="Single-end or paired-end reads files"> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
10 <option value="single" selected="True">Single-end files</option> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
11 <option value="paired">Paired-end files</option> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
12 </param> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
13 <when value="single"> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
14 <param name="fqinputs" argument="-f" format="fastqsanger,fastqsanger.gz" multiple="true" type="data" label="singles-end reads infile(s)" help="input files" /> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
15 <param name="barcode_encoding" type="select" label="Barcode location"> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
16 <expand macro="barcode_encoding_single" type="Barcode" /> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
17 </param> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
18 </when> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
19 <when value="paired"> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
20 <param name="fqinputs" type="data_collection" collection_type="list:paired" label="paired-end reads infile(s)" format="fastqsanger,fastqsanger.gz"/> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
21 <param name="barcode_encoding" type="select" label="Barcode location"> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
22 <expand macro="barcode_encoding_pair" type="Barcode" /> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
23 </param> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
24 </when> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
25 </conditional> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
26 <param name="barcode" argument="-b" type="data" format="tabular,txt" label="Barcode file" /> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
27 </xml> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
28 <token name="@FASTQ_INPUT_PREPROC@"><![CDATA[ |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
29 #for $input in $input_type.fqinputs: |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
30 #if $input_type.options_type_selector == "single" |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
31 #set $isfq=$input.is_of_type('fastqsanger') |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
32 #set $name=$clean_ext($input.element_identifier) |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
33 #else: |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
34 #set $isfq=$input.forward.is_of_type('fastqsanger') |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
35 ## TODO if https://github.com/galaxyproject/galaxy/pull/7031 is |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
36 ## backported use element_identifier consistently and fix release in <tool>? |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
37 #set $name=$clean_ext($input.name) |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
38 #end if |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
39 |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
40 #if $isfq: |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
41 #set $ext = "fastq" |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
42 #set inputype = "fastq" |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
43 #else |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
44 #set $ext = "fastq.gz" |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
45 #set inputype = "gzfastq" |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
46 #end if |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
47 |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
48 #if $input_type.options_type_selector == "single" |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
49 ln -s '$input' 'stacks_inputs/${name}.${ext}' && |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
50 #else: |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
51 ## procrad needs _R[12]_ in the file name, so we add an add 0 |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
52 ln -s '$input.forward' 'stacks_inputs/${name}_R1_0.${ext}' && |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
53 ln -s '$input.reverse' 'stacks_inputs/${name}_R2_0.${ext}' && |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
54 #end if |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
55 #end for |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
56 ]]></token> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
57 <token name="@PROCESS_IOOPTIONS@"><![CDATA[ |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
58 -p stacks_inputs/ |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
59 #if $input_type.options_type_selector == "paired" |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
60 --paired |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
61 #end if |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
62 -i $inputype |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
63 -b '$barcode' |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
64 $input_type.barcode_encoding |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
65 #if str( $outype ) != "auto" |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
66 -y $outype |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
67 #end if |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
68 -o stacks_outputs |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
69 ]]></token> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
70 <xml name="process_output_types"> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
71 <param name="outype" argument="-y" type="select" label="Output format" > |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
72 <option value="auto" selected="True">Same as input</option> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
73 <option value="fastq">fastq</option> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
74 <option value="fasta">fasta</option> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
75 <option value="gzfastq">gzipped fastq</option> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
76 <option value="gzfasta">gzipped fasta</option> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
77 </param> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
78 </xml> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
79 |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
80 <xml name="discover_faqgz_output_macro" token_pattern="" token_dir=""> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
81 <expand macro="discover_faq_output_macro" pattern="@PATTERN@" dir="@DIR@"/> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
82 <discover_datasets pattern="@PATTERN@\.fq\.gz$" ext="fastqsanger.gz" directory="@DIR@/" /> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
83 <discover_datasets pattern="@PATTERN@\.fa\.gz$" ext="fasta.gz" directory="@DIR@/" /> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
84 </xml> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
85 <xml name="discover_faq_output_macro" token_pattern="" token_dir=""> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
86 <discover_datasets pattern="@PATTERN@\.fq$" ext="fastqsanger" directory="@DIR@/" /> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
87 <discover_datasets pattern="@PATTERN@\.fa$" ext="fasta" directory="@DIR@/" /> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
88 </xml> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
89 |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
90 <xml name="process_outputs"> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
91 <collection name="demultiplexed" type="list" label="${tool.name} on ${on_string} Demultiplexed reads"> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
92 <filter>input_type['options_type_selector'] == "single"</filter> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
93 <expand macro="discover_faqgz_output_macro" pattern="(?P<name>.+)" dir="stacks_outputs"/> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
94 </collection> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
95 <collection name="demultiplexed_paired" type="list:paired" label="${tool.name} on ${on_string} Demultiplexed reads"> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
96 <filter>input_type['options_type_selector'] == "paired"</filter> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
97 <expand macro="discover_faqgz_output_macro" pattern="(?P<identifier_0>.+)\.(?P<identifier_1>[^.]+)" dir="stacks_outputs"/> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
98 </collection> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
99 |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
100 <collection name="remaining" type="list:paired" label="${tool.name} on ${on_string} Remaining orphan reads"> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
101 <filter>input_type['options_type_selector'] == "paired"</filter> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
102 <expand macro="discover_faqgz_output_macro" pattern="(?P<identifier_0>.+)\.rem\.(?P<identifier_1>[^.]+)" dir="stacks_outputs/remaining"/> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
103 </collection> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
104 |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
105 <!-- note irrespective of -y output is always named fastq and are never zipped --> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
106 <collection name="discarded" type="list" label="${tool.name} on ${on_string} Discarded reads"> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
107 <filter>capture is True and input_type['options_type_selector'] == "single"</filter> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
108 <expand macro="discover_faq_output_macro" pattern="(?P<name>.*)" dir="stacks_outputs/discarded"/> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
109 </collection> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
110 <collection name="discarded_paired" type="list:paired" label="${tool.name} on ${on_string} Discarded reads"> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
111 <filter>capture is True and input_type['options_type_selector'] == "paired"</filter> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
112 <expand macro="discover_faq_output_macro" pattern="(?P<identifier_0>.+)\.(?P<identifier_1>[^.]+)" dir="stacks_outputs/discarded"/> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
113 </collection> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
114 </xml> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
115 |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
116 <!-- FASTQ filtering options --> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
117 <xml name="process_filter"> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
118 <conditional name="filter_cond" > |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
119 <param name="filter_select" type="select" label="do quality filtering"> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
120 <option value="yes">Yes</option> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
121 <option value="no" selected="true">No</option> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
122 </param> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
123 <when value="yes"> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
124 <param name="sliding" type="float" value="0.15" min="0" max="1" argument="-w" label="Set the size of the sliding window as a fraction of the read length, between 0 and 1" /> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
125 <param name="score" type="integer" value="10" min="0" max="40" argument="-s" label="Set the score limit. If the average score within the sliding window drops below this value, the read is discarded" /> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
126 <param name="remove" type="boolean" checked="false" truevalue="-c" falsevalue="" argument="-c" label="Clean data, remove any read with an uncalled base" /> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
127 <param name="discard" type="boolean" checked="false" truevalue="-q" falsevalue="" argument="-q" label="Discard reads with low quality scores"/> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
128 <param argument="--filter_illumina" type="boolean" checked="false" truevalue="--filter_illumina" falsevalue="" label="discard reads that have been marked by Illumina's chastity/purity filter as failing" /> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
129 </when> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
130 <when value="no"> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
131 <param argument="--len_limit" type="integer" value="" optional="true" label="minimum sequence length" help="useful if your data has already been trimmed"/> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
132 </when> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
133 </conditional> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
134 <param name="capture" type="boolean" checked="false" truevalue="-D" falsevalue="" argument="-D" label="Capture discarded reads to a file" /> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
135 </xml> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
136 <token name="@PROCESS_FILTER@"><![CDATA[ |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
137 #if $filter_cond.filter_select == 'yes': |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
138 -w $filter_cond.sliding |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
139 -s $filter_cond.score |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
140 $filter_cond.remove |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
141 $filter_cond.discard |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
142 $filter_cond.filter_illumina |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
143 #else |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
144 #if str($filter_cond.len_limit) != "": |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
145 --len_limit $filter_cond.len_limit |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
146 #end if |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
147 #end if |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
148 $capture |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
149 ]]></token> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
150 <token name="@PROCESS_FASTQ_POSTPROC@"><![CDATA[ |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
151 #if $capture: |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
152 && mkdir stacks_outputs/discarded/ |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
153 && mv stacks_outputs/*discards stacks_outputs/discarded/ |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
154 |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
155 ## fix the _R[12]_0 that was added for preparing the input |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
156 #if $input_type.options_type_selector == 'paired': |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
157 && find stacks_outputs/discarded/ -type f | while read file; do mv "\$file" "\$(echo \$file | sed 's/_R1_0/.1/; s/_R2_0/.2/;')"; done |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
158 #end if |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
159 ## also remove the gz which is added by procrad (but its uncompressed) |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
160 && find stacks_outputs/discarded/ -type f -iname "*.gz.discards" | while read file; do mv "\$file" "\$(echo \$file | sed 's/.gz.discards$/.discards/;')"; done |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
161 |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
162 ## the discard files are named fastq even if the output is fasta |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
163 #if str($outype).endswith("fasta"): |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
164 && find stacks_outputs/discarded/ -type f | while read file; do mv "\$file" "\$(echo \$file | sed 's/\.fastq.discards/.fa/;')"; done |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
165 #else |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
166 && find stacks_outputs/discarded/ -type f | while read file; do mv "\$file" "\$(echo \$file | sed 's/\.fastq.discards/.fq/;')"; done |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
167 #end if |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
168 #end if |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
169 ## prepare paired read output for processing in galaxy |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
170 #if $input_type.options_type_selector == 'paired': |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
171 && mkdir stacks_outputs/remaining |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
172 && find stacks_outputs -iregex ".*\.rem\.[12]\.f[aq]\(\.gz\)?" | while read file; do mv "\$file" stacks_outputs/remaining/; done |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
173 && find stacks_outputs/ -iregex ".*.f[aq]\(\.gz\)?" | while read file; do mv "\$file" "\$(echo \$file | sed 's/\.1\./.forward./; s/\.2\./.reverse./')"; done |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
174 #end if |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
175 ]]></token> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
176 |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
177 |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
178 |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
179 <!-- adapter trimming options --> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
180 <xml name="process_adapter"> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
181 <param argument="--adapter_1" type="text" value="" optional="true" label="adaptor sequence that may occur on the first read" /> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
182 <param argument="--adapter_2" type="text" value="" optional="true" label="adaptor sequence that may occur on the paired-read" /> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
183 <param argument="--adapter_mm" type="integer" value="" optional="true" label="number of mismatches allowed in the adapter sequence"/> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
184 </xml> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
185 <token name="@PROCESS_ADAPTER@"><![CDATA[ |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
186 ## Adapter options |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
187 #if str($options_advanced.adapter_1) != "": |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
188 --adapter_1 $options_advanced.adapter_1 |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
189 #end if |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
190 #if str($options_advanced.adapter_2) != "": |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
191 --adapter_2 $options_advanced.adapter_2 |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
192 #end if |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
193 #if str($options_advanced.adapter_mm) != "": |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
194 --adapter_mm $options_advanced.adapter_mm |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
195 #end if |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
196 ]]></token> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
197 |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
198 <!-- barcode rescue options --> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
199 <xml name="rescue_barcode"> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
200 <conditional name="rescue_cond"> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
201 <param name="rescue" type="select" argument="-r" label="Rescue mutated barcodes and RAD-Tags?"> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
202 <option value="-r">yes</option> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
203 <option value="" selected="true">no</option> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
204 </param> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
205 <when value="-r"> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
206 <param argument="--barcode_dist_1" type="integer" value="" optional="true" label="number of allowed mismatches when rescuing first read barcodes" help="(default 1)"/> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
207 <param argument="--barcode_dist_2" type="integer" value="" optional="true" label="number of allowed mismatches when rescuing paired read barcodes" help="(default value for single end barcodes)"/> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
208 </when> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
209 <when value=""/> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
210 </conditional> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
211 </xml> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
212 <token name="@RESCUE_BARCODE@"><![CDATA[ |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
213 #if str($options_advanced.rescue_cond.rescue) != "" |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
214 $options_advanced.rescue_cond.rescue |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
215 #if str($options_advanced.rescue_cond.barcode_dist_1) != "": |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
216 --barcode_dist_1 $options_advanced.rescue_cond.barcode_dist_1 |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
217 #end if |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
218 #if str($options_advanced.rescue_cond.barcode_dist_2) != "": |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
219 --barcode_dist_2 $options_advanced.rescue_cond.barcode_dist_2 |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
220 #end if |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
221 #end if |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
222 ]]></token> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
223 |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
224 <!-- advanced options that are shared --> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
225 <xml name="common_advanced"> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
226 <param name="truncate" type="integer" value="" optional="True" argument="-t" label="Truncate final read length to this value" /> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
227 <param argument="--retain_header" type="boolean" checked="false" truevalue="--retain_header" falsevalue="" label="Retain unmodified FASTQ headers in the output" /> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
228 </xml> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
229 <token name="@COMMON_ADVANCED@"><![CDATA[ |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
230 #if str($options_advanced.truncate) |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
231 -t $options_advanced.truncate |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
232 #end if |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
233 $options_advanced.retain_header |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
234 ]]></token> |
8427e904f352
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/stacks2 commit 9c41b2599125298b1a4d9ffb2511cdc87ff79a73
matthias
parents:
diff
changeset
|
235 </macros> |