comparison split_libraries.xml @ 5:6f2a0b6a8da2 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit 3b54163c4f7daff76fcc589c4a9057bb03904380
author iuc
date Sat, 05 Aug 2017 07:15:16 -0400
parents c11972e98d44
children 481efc8a2fe2
comparison
equal deleted inserted replaced
4:35b7418dc740 5:6f2a0b6a8da2
1 <tool id="qiime_split_libraries" name="Split libraries" version="@WRAPPER_VERSION@.0"> 1 <tool id="qiime_split_libraries" name="Split libraries" version="@WRAPPER_VERSION@.0">
2 <description>according to barcodes specified in mapping file</description> 2 <description>according to barcodes specified in mapping file (split_libraries)</description>
3 <macros> 3 <macros>
4 <import>macros.xml</import> 4 <import>macros.xml</import>
5 </macros> 5 </macros>
6 <expand macro="requirements"/> 6 <expand macro="requirements"/>
7 <version_command>split_libraries.py --version</version_command> 7 <version_command>split_libraries.py --version</version_command>
8 <command detect_errors="aggressive"><![CDATA[ 8 <command detect_errors="aggressive"><![CDATA[
9 split_libraries.py 9 split_libraries.py
10 --map '$map' 10 --map '$map'
11 -o split_libraries 11 -o split_libraries
12 --fasta '$fasta' 12 --fasta '$fasta'
13 13
14 #if str($add_qual.add_qual_test) == 'true' 14 #if str($add_qual.add_qual_test) == 'true'
15 --qual '$add_qual.qual' 15 --qual '$add_qual.qual'
16 --min_qual_score '$add_qual.min_qual_score' 16 --min_qual_score '$add_qual.min_qual_score'
17 --qual_score_window '$add_qual.qual_score_window' 17 --qual_score_window '$add_qual.qual_score_window'
18 $add_qual.discard_bad_windows 18 $add_qual.discard_bad_windows
19 $add_qual.record_qual_scores 19 $add_qual.record_qual_scores
20 #end if 20 #end if
21 21
22 --min_seq_length '$min_seq_length' 22 --min_seq_length '$min_seq_length'
23 --max_seq_length '$max_seq_length' 23 --max_seq_length '$max_seq_length'
24 $trim_seq_length 24 $trim_seq_length
25 $keep_primer 25 $keep_primer
26 $keep_barcode 26 $keep_barcode
27 --max_ambig '$max_ambig' 27 --max_ambig '$max_ambig'
28 --max_homopolymer '$max_homopolymer' 28 --max_homopolymer '$max_homopolymer'
29 --max_primer_mismatch '$max_primer_mismatch' 29 --max_primer_mismatch '$max_primer_mismatch'
30 #if str( $barcode_selector.barcode_type ) != "custom_length" 30 #if str( $barcode_selector.barcode_type ) != "custom_length"
31 --barcode_type '$barcode_selector.barcode_type' 31 --barcode_type '$barcode_selector.barcode_type'
32 #else 32 #else
33 --barcode_type '$barcode_selector.barcode_length' 33 --barcode_type '$barcode_selector.barcode_length'
34 #end if 34 #end if
35 --max_barcode_errors '$max_barcode_errors' 35 --max_barcode_errors '$max_barcode_errors'
36 --start_numbering_at '$start_numbering_at' 36 --start_numbering_at '$start_numbering_at'
37 $retain_unassigned_reads 37 $retain_unassigned_reads
38 $disable_bc_correction 38 $disable_bc_correction
39 $disable_primers 39 $disable_primers
40 $reverse_primers_test.reverse_primers 40 $reverse_primers_test.reverse_primers
41 #if str($reverse_primers_test.reverse_primers) == '--reverse_primers': 41 #if str($reverse_primers_test.reverse_primers) == '--reverse_primers':
42 --reverse_primer_mismatches '$reverse_primers_test.reverse_primer_mismatches' 42 --reverse_primer_mismatches '$reverse_primers_test.reverse_primer_mismatches'
43 #end if 43 #end if
44 #if str($median_length_filtering): 44 #if str($median_length_filtering):
45 --median_length_filtering '$median_length_filtering' 45 --median_length_filtering '$median_length_filtering'
46 #end if 46 #end if
47 #if str($added_demultiplex_field): 47 #if str($added_demultiplex_field):
48 --added_demultiplex_field '$added_demultiplex_field' 48 --added_demultiplex_field '$added_demultiplex_field'
49 #end if 49 #end if
50 ]]></command> 50 ]]></command>
51 <inputs> 51 <inputs>
52 <param argument="--map" label="Metadata mapping filepath" type="data" format="tabular,txt,tsv,csv" help="The file must contain header line indicating SampleID in the first column and BarcodeSequence in the second, LinkerPrimerSequence in the third. It is recommended to check the mapping file using the dedicated file"/> 52 <param argument="--map" label="Metadata mapping filepath" type="data" format="tabular,txt,tsv,csv" help="The file must contain header line indicating SampleID in the first column and BarcodeSequence in the second, LinkerPrimerSequence in the third. It is recommended to check the mapping file using the dedicated file"/>
53 <param argument="--fasta" type="data" format="fasta" label="Input fasta files" multiple="True"/> 53 <param argument="--fasta" type="data" format="fasta" multiple="true" label="Input fasta files"/>
54 <conditional name="add_qual"> 54 <conditional name="add_qual">
55 <param name="add_qual_test" type="select" label="Add quality files"> 55 <param name="add_qual_test" type="select" label="Add quality files">
56 <option value="true">Yes</option> 56 <option value="true">Yes</option>
57 <option value="false" selected="true">No</option> 57 <option value="false" selected="true">No</option>
58 </param> 58 </param>
59 <when value="true"> 59 <when value="true">
60 <param argument="--qual" type="data" format="qual,qual454,qualillumina,qualsolexa,qualsolid" label="Input quality files (optional)" multiple="True"/> 60 <param argument="--qual" type="data" format="qual,qual454,qualillumina,qualsolexa,qualsolid" multiple="true" label="Input quality files (optional)"/>
61 <param argument="--min_qual_score" type="integer" value="25" label="Minimum average quality score allowed in read"/> 61 <param argument="--min_qual_score" type="integer" value="25" label="Minimum average quality score allowed in read"/>
62 <param argument="--qual_score_window" type="integer" value="0" label="Size of the sliding window" help="If the average score of a continuous set of w nucleotides falls below the threshold, the sequence is discarded. A good value would be 50. 0 (zero) means no filtering. Must pass a .qual file (see -q parameter) if this functionality is enabled. Default behavior for this function is to truncate the sequence at the beginning of the poor quality window, and test for minimal length (-l parameter) of the resulting sequence"/> 62 <param argument="--qual_score_window" type="integer" value="0" label="Size of the sliding window" help="If the average score of a continuous set of w nucleotides falls below the threshold, the sequence is discarded. A good value would be 50. 0 (zero) means no filtering. Must pass a .qual file (see -q parameter) if this functionality is enabled. Default behavior for this function is to truncate the sequence at the beginning of the poor quality window, and test for minimal length (-l parameter) of the resulting sequence"/>
63 <param argument="--discard_bad_windows" type="boolean" label="Discard any sequences where a bad window is found?" truevalue="--discard_bad_windows" falsevalue="" checked="False" help="It will work if the sliding window length is bigger than 0"/> 63 <param argument="--discard_bad_windows" type="boolean" truevalue="--discard_bad_windows" falsevalue="" checked="false" label="Discard any sequences where a bad window is found?" help="It will work if the sliding window length is bigger than 0"/>
64 <param argument="--record_qual_scores" type="boolean" label="Record quality scores for all sequences that are recorded?" truevalue="--record_qual_scores" falsevalue="" checked="False" help="If this option is enabled, a file named seqs_filtered.qual will be created in the output directory, and will contain the same sequence IDs in the seqs.fna file and sequence quality scores matching the bases present in the seqs.fna file"/> 64 <param argument="--record_qual_scores" type="boolean" truevalue="--record_qual_scores" falsevalue="" checked="false" label="Record quality scores for all sequences that are recorded?" help="If this option is enabled, a file named seqs_filtered.qual will be created in the output directory, and will contain the same sequence IDs in the seqs.fna file and sequence quality scores matching the bases present in the seqs.fna file"/>
65 </when> 65 </when>
66 <when value="false"/> 66 <when value="false"/>
67 </conditional> 67 </conditional>
68 <param argument="--min_seq_length" type="integer" value="200" label="Minimum sequence length"/> 68 <param argument="--min_seq_length" type="integer" value="200" label="Minimum sequence length"/>
69 <param argument="--max_seq_length" type="integer" value="1000" label="Maximum sequence length"/> 69 <param argument="--max_seq_length" type="integer" value="1000" label="Maximum sequence length"/>
70 <param argument="--trim_seq_length" type="boolean" label="Compute sequence lengths after trimming and barcodes?" truevalue="--trim_seq_length" falsevalue="" checked="False"/> 70 <param argument="--trim_seq_length" type="boolean" truevalue="--trim_seq_length" falsevalue="" checked="false" label="Compute sequence lengths after trimming and barcodes?"/>
71 <param argument="--keep_primer" type="boolean" label="Remove primer from sequences?" truevalue="" falsevalue="--keep_primer" checked="True"/> 71 <param argument="--keep_primer" type="boolean" truevalue="" falsevalue="--keep_primer" checked="true" label="Remove primer from sequences?"/>
72 <param argument="--keep_barcode" type="boolean" label="Remove barcode from sequences?" truevalue="" falsevalue="--keep_barcode" checked="True"/> 72 <param argument="--keep_barcode" type="boolean" truevalue="" falsevalue="--keep_barcode" checked="true" label="Remove barcode from sequences?"/>
73 <param argument="--max_ambig" type="integer" value="6" label="Maximum number of ambiguous bases"/> 73 <param argument="--max_ambig" type="integer" value="6" label="Maximum number of ambiguous bases"/>
74 <param argument="--max_homopolymer" type="integer" value="6" label="Maximum length of homopolymer run"/> 74 <param argument="--max_homopolymer" type="integer" value="6" label="Maximum length of homopolymer run"/>
75 <param argument="--max_primer_mismatch" type="integer" value="0" label="Maximum number of primer mismatch"/> 75 <param argument="--max_primer_mismatch" type="integer" value="0" label="Maximum number of primer mismatch"/>
76 <conditional name="barcode_selector"> 76 <conditional name="barcode_selector">
77 <param argument="--barcode_type" type="select" label="Type of barcode"> 77 <param argument="--barcode_type" type="select" label="Type of barcode">
87 <param name="barcode_length" type="integer" value="4" label="Barcode length"/> 87 <param name="barcode_length" type="integer" value="4" label="Barcode length"/>
88 </when> 88 </when>
89 </conditional> 89 </conditional>
90 <param argument="--max_barcode_errors" type="float" value="1.5" label="Maximum number of errors in barcode"/> 90 <param argument="--max_barcode_errors" type="float" value="1.5" label="Maximum number of errors in barcode"/>
91 <param argument="--start_numbering_at" type="integer" value="1" label="Sequence id to use for the first sequence"/> 91 <param argument="--start_numbering_at" type="integer" value="1" label="Sequence id to use for the first sequence"/>
92 <param argument="--retain_unassigned_reads" type="boolean" label="Retain sequences with are Unassigned in the output sequence file?" truevalue="--retain_unassigned_reads" falsevalue="" checked="False"/> 92 <param argument="--retain_unassigned_reads" type="boolean" truevalue="--retain_unassigned_reads" falsevalue="" checked="false" label="Retain sequences with are Unassigned in the output sequence file?"/>
93 <param argument="--disable_bc_correction" type="boolean" label="Disable attempts to find nearest corrected barcode?" truevalue="--disable_bc_correction" falsevalue="" checked="False" help="It can improve performance"/> 93 <param argument="--disable_bc_correction" type="boolean" truevalue="--disable_bc_correction" falsevalue="" checked="false" label="Disable attempts to find nearest corrected barcode?" help="It can improve performance"/>
94 <param argument="--disable_primers" type="boolean" label="Disable primer usage when demultiplexing?" truevalue="--disable_primers" falsevalue="" checked="False" help="It should be enabled for unusual circumstances, such as analyzing Sanger sequence data generated with different primers"/> 94 <param argument="--disable_primers" type="boolean" truevalue="--disable_primers" falsevalue="" checked="false" label="Disable primer usage when demultiplexing?" help="It should be enabled for unusual circumstances, such as analyzing Sanger sequence data generated with different primers"/>
95 <conditional name="reverse_primers_test"> 95 <conditional name="reverse_primers_test">
96 <param argument="--reverse_primers" type="select" label="Enable removal of the reverse primer and any subsequence sequence from the end of each read?"> 96 <param argument="--reverse_primers" type="select" label="Enable removal of the reverse primer and any subsequence sequence from the end of each read?">
97 <option value="--reverse_primers">Yes</option> 97 <option value="--reverse_primers">Yes</option>
98 <option value="" selected="true">No</option> 98 <option value="" selected="true">No</option>
99 </param> 99 </param>
101 <when value="--reverse_primers"> 101 <when value="--reverse_primers">
102 <param argument="--reverse_primer_mismatches" type="integer" value="0" label="Number of allowed mismatches for reverse primers"/> 102 <param argument="--reverse_primer_mismatches" type="integer" value="0" label="Number of allowed mismatches for reverse primers"/>
103 </when> 103 </when>
104 </conditional> 104 </conditional>
105 <param argument="--median_length_filtering" type="integer" label="Median length filtering (optional)" help="It disables minimum and maximum sequence length filtering, and instead calculates the median sequence length and filters the sequences based upon the number of median absolute deviations specified by this parameter. Any sequences with lengths outside the number of deviations will be removed" optional="True"/> 105 <param argument="--median_length_filtering" type="integer" label="Median length filtering (optional)" help="It disables minimum and maximum sequence length filtering, and instead calculates the median sequence length and filters the sequences based upon the number of median absolute deviations specified by this parameter. Any sequences with lengths outside the number of deviations will be removed" optional="True"/>
106 <param argument="--added_demultiplex_field" type="text" label="Field to use in the mapping file as additional demultiplexing (optional)" help="It can be used with or without barcodes. All combinations of barcodes/primers and these fields must be unique. The fields must contain values that can be parsed from the fasta labels such as 'plate=R_2008_12_09'. In this case, 'plate' would be the column header and 'R_2008_12_09' would be the field data (minus quotes) in the mapping file. To use the run prefix from the fasta label, such as 'FLP3FBN01ELBSX', where 'FLP3FBN01' is generated from the run ID, use 'run_prefix' and set the run prefix to be used as the data under the column header 'run_prefix'" optional="True"/> 106 <param argument="--added_demultiplex_field" type="text" optional="true" label="Field to use in the mapping file as additional demultiplexing (optional)" help="It can be used with or without barcodes. All combinations of barcodes/primers and these fields must be unique. The fields must contain values that can be parsed from the fasta labels such as 'plate=R_2008_12_09'. In this case, 'plate' would be the column header and 'R_2008_12_09' would be the field data (minus quotes) in the mapping file. To use the run prefix from the fasta label, such as 'FLP3FBN01ELBSX', where 'FLP3FBN01' is generated from the run ID, use 'run_prefix' and set the run prefix to be used as the data under the column header 'run_prefix'"/>
107 <param argument="--truncate_ambi_bases" type="boolean" label="Enable to truncate at the first N character encountered in the sequences?" truevalue="--truncate_ambi_bases" falsevalue="" checked="False" help="This will disable testing for ambiguous bases"/> 107 <param argument="--truncate_ambi_bases" type="boolean" truevalue="--truncate_ambi_bases" falsevalue="" checked="false" label="Enable to truncate at the first N character encountered in the sequences?" help="This will disable testing for ambiguous bases"/>
108 </inputs> 108 </inputs>
109 <outputs> 109 <outputs>
110 <data name="sequences" format="fasta" from_work_dir="split_libraries/*.fna" label="${tool.name} on ${on_string}: sequences"/> 110 <data name="sequences" format="fasta" from_work_dir="split_libraries/*.fna" label="${tool.name} on ${on_string}: sequences"/>
111 <data name="log" format="txt" from_work_dir="split_libraries/split_library_log.txt" label="${tool.name} on ${on_string}: log"/> 111 <data name="log" format="txt" from_work_dir="split_libraries/split_library_log.txt" label="${tool.name} on ${on_string}: log"/>
112 <data name="histograms" format="txt" from_work_dir="split_libraries/histograms.txt" label="${tool.name} on ${on_string}: histograms"/> 112 <data name="histograms" format="txt" from_work_dir="split_libraries/histograms.txt" label="${tool.name} on ${on_string}: histograms"/>