Mercurial > repos > iuc > qiime_validate_mapping_file
comparison validate_mapping_file.xml @ 0:51ce498c97f4 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/qiime/ commit c9bf747b23b4a9d6adc20c7740b9247c22654862
author | iuc |
---|---|
date | Thu, 18 May 2017 09:29:50 -0400 |
parents | |
children | 6b784a33f3b3 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:51ce498c97f4 |
---|---|
1 <tool id="qiime_validate_mapping_file" name="Validate mapping file" version="@WRAPPER_VERSION@.0"> | |
2 <description>to check for required data and format</description> | |
3 <macros> | |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="requirements"/> | |
7 <version_command>validate_mapping_file.py --version</version_command> | |
8 <command detect_errors="aggressive"><![CDATA[ | |
9 validate_mapping_file.py | |
10 --mapping_fp '$mapping_fp' | |
11 -o validate_mapping_file_output | |
12 $verbose | |
13 --char_replace '$char_replace' | |
14 $not_barcoded | |
15 $variable_len_barcodes | |
16 $disable_primer_check | |
17 #if str($added_demultiplex_field): | |
18 --added_demultiplex_field '$added_demultiplex_field' | |
19 #end if | |
20 $suppress_html | |
21 | |
22 #if not $suppress_html: | |
23 && mkdir -p '$html_report.files_path' | |
24 && mv validate_mapping_file_output/*.html '$html_report' | |
25 && cp validate_mapping_file_output/overlib.js '$html_report.files_path' | |
26 #end if | |
27 ]]></command> | |
28 <inputs> | |
29 <param argument="--mapping_fp" label="Metadata mapping filepath" type="data" format="tabular,csv,txt" help=""/> | |
30 <param argument="--verbose" type="boolean" label="Enable printing information to standard out?" truevalue="-v" falsevalue="" checked="False"/> | |
31 <param argument="--char_replace" type="text" value="_" label="Default character used to replace invalid characters found in the mapping file" help="Must be a valid character (alphanumeric, period, or underscore)"/> | |
32 <param argument="--not_barcoded" type="boolean" label="Are barcodes present?" truevalue="" falsevalue="--not_barcoded" checked="True" help="BarcodeSequence header is still required in mapping file"/> | |
33 <param argument="--variable_len_barcodes" type="boolean" label="Are barcodes with variable length?" truevalue="" falsevalue="--variable_len_barcodes" checked="True" help=""/> | |
34 <param argument="--disable_primer_check" type="boolean" label="Disable checks for primers?" truevalue="-disable_primer_check" falsevalue="" checked="False" help="LinkerPrimerSequence header is still required in mapping file"/> | |
35 <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"/> | |
36 <param argument="--suppress_html" type="boolean" label="Disable html file generation?" truevalue="-s" falsevalue="" checked="False" help="It can be useful for extremely large mapping files"/> | |
37 </inputs> | |
38 <outputs> | |
39 <data name="html_report" format="html" label="${tool.name} on ${on_string}: html report"> | |
40 <filter>suppress_html is False</filter> | |
41 </data> | |
42 <data name="log" format="txt" from_work_dir="validate_mapping_file_output/*.log" label="${tool.name} on ${on_string}: log"/> | |
43 <data format="tabular" name="mapping_fp_corrected" from_work_dir="validate_mapping_file_output/*corrected.txt" label="${tool.name} on ${on_string}: corrected map"/> | |
44 </outputs> | |
45 <tests> | |
46 <test> | |
47 <param name="mapping_fp" value="validate_mapping_file/map.tsv"/> | |
48 <param name="verbose" value=""/> | |
49 <param name="char_replace" value="_"/> | |
50 <param name="not_barcoded" value=""/> | |
51 <param name="variable_len_barcodes" value=""/> | |
52 <param name="disable_primer_check" value=""/> | |
53 <param name="suppress_html" value=""/> | |
54 <output name="log" file="validate_mapping_file/log.txt"/> | |
55 <output name="mapping_fp_corrected" file="validate_mapping_file/corrected_map.tabular"/> | |
56 </test> | |
57 </tests> | |
58 <help><![CDATA[ | |
59 **What it does** | |
60 | |
61 This tool checks user’s metadata mapping file for required data, valid format | |
62 | |
63 Specifically, it checks that: | |
64 | |
65 - The BarcodeSequence, LinkerPrimerSequences, and ReversePrimer fields have valid IUPAC DNA characters, and BarcodeSequence characters are non-degenerate (error) | |
66 - The SampleID, BarcodeSequence, LinkerPrimerSequence, and Description headers are present. (error) | |
67 - There are not duplicate header fields (error) | |
68 - There are not duplicate barcodes (error) | |
69 - Barcodes are of the same length. Suppressed when variable_len_barcode flag is passed (warning) | |
70 - The headers do not contain invalid characters (alphanumeric and underscore only) (warning) | |
71 - The data fields do not contain invalid characters (alphanumeric, underscore, space, and +-%./:,; characters) (warning) | |
72 - SampleID fields are MIENS compliant (only alphanumeric and . characters). (warning) | |
73 - There are no duplicates when the primer and variable length barcodes are appended (error) | |
74 - There are no duplicates when barcodes and added demultiplex fields (-j option) are combined (error) | |
75 - Data fields are not found beyond the Description column (warning) | |
76 | |
77 More information about this tool is available on | |
78 `QIIME documentation <http://qiime.org/scripts/validate_mapping_file.html>`_. | |
79 ]]></help> | |
80 <citations> | |
81 <expand macro="citations"/> | |
82 </citations> | |
83 </tool> |