annotate spotyping.xml @ 1:fcfd1e66edf9 draft default tip

planemo upload
author jowong
date Tue, 13 Nov 2018 10:47:19 -0500
parents 7412632c7b0e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
7412632c7b0e planemo upload
jowong
parents:
diff changeset
1 <tool id="spotyping" name="Spoligotype Prediction" version="1.0.4">
7412632c7b0e planemo upload
jowong
parents:
diff changeset
2 <description>fast and accurate in silico Mycobacterium spoligotyping from sequence reads</description>
7412632c7b0e planemo upload
jowong
parents:
diff changeset
3 <requirements>
7412632c7b0e planemo upload
jowong
parents:
diff changeset
4 <requirement type="package" version="2.1">spotyping</requirement>
7412632c7b0e planemo upload
jowong
parents:
diff changeset
5 </requirements>
7412632c7b0e planemo upload
jowong
parents:
diff changeset
6 <command detect_errors="aggressive"><![CDATA[
7412632c7b0e planemo upload
jowong
parents:
diff changeset
7 SpoTyping.py
7412632c7b0e planemo upload
jowong
parents:
diff changeset
8 $advanced.seq
7412632c7b0e planemo upload
jowong
parents:
diff changeset
9 $advanced.swift
7412632c7b0e planemo upload
jowong
parents:
diff changeset
10 --min=$advanced.min
7412632c7b0e planemo upload
jowong
parents:
diff changeset
11 --rmin=$advanced.min_relax
7412632c7b0e planemo upload
jowong
parents:
diff changeset
12 #if str( $data_input.data_selector ) == "paired"
7412632c7b0e planemo upload
jowong
parents:
diff changeset
13 $data_input.input1.forward $data_input.input1.reverse
7412632c7b0e planemo upload
jowong
parents:
diff changeset
14 #end if
7412632c7b0e planemo upload
jowong
parents:
diff changeset
15 #if str( $data_input.data_selector ) == "single"
7412632c7b0e planemo upload
jowong
parents:
diff changeset
16 $data_input.input2
7412632c7b0e planemo upload
jowong
parents:
diff changeset
17 #end if
7412632c7b0e planemo upload
jowong
parents:
diff changeset
18 && cp SITVIT_ONLINE.*.xls spotyping.xls
7412632c7b0e planemo upload
jowong
parents:
diff changeset
19 ]]>
7412632c7b0e planemo upload
jowong
parents:
diff changeset
20 </command>
7412632c7b0e planemo upload
jowong
parents:
diff changeset
21 <inputs>
7412632c7b0e planemo upload
jowong
parents:
diff changeset
22 <conditional name="data_input">
7412632c7b0e planemo upload
jowong
parents:
diff changeset
23 <param name="data_selector" type="select" label="Single or Paired-end Data" help="Select between paired and single end data to add name to dataset">
7412632c7b0e planemo upload
jowong
parents:
diff changeset
24 <option value="paired">Paired</option>
7412632c7b0e planemo upload
jowong
parents:
diff changeset
25 <option value="single">Single</option>
7412632c7b0e planemo upload
jowong
parents:
diff changeset
26 </param>
7412632c7b0e planemo upload
jowong
parents:
diff changeset
27 <when value="paired">
7412632c7b0e planemo upload
jowong
parents:
diff changeset
28 <param name="input1" format="data" type="data_collection" collection_type="paired" label="Select a paired collection" help="a paired data"/>
7412632c7b0e planemo upload
jowong
parents:
diff changeset
29 </when>
7412632c7b0e planemo upload
jowong
parents:
diff changeset
30 <when value="single">
7412632c7b0e planemo upload
jowong
parents:
diff changeset
31 <param name="input2" format="data" type="data_collection" label="input" help="Specify dataset with single reads"/>
7412632c7b0e planemo upload
jowong
parents:
diff changeset
32 </when>
7412632c7b0e planemo upload
jowong
parents:
diff changeset
33 </conditional>
7412632c7b0e planemo upload
jowong
parents:
diff changeset
34 <section name="advanced" title="Advanced options" expanded="false">
7412632c7b0e planemo upload
jowong
parents:
diff changeset
35 <param type="boolean" argument="--seq" label="Input is assembled sequence" help="Input is either a complete genomic sequence or assembled contigs from an isolate" truevalue="--seq" falsevalue="" checked="false" />
7412632c7b0e planemo upload
jowong
parents:
diff changeset
36 <param type="boolean" argument="--swift" label="Swift mode" checked="true" truevalue="--swift=on" falsevalue="--swift=off" />
7412632c7b0e planemo upload
jowong
parents:
diff changeset
37 <param name="min" type="integer" value="5" label="MIN" help="minimum number of error-free hits to support presence of a spacer" />
7412632c7b0e planemo upload
jowong
parents:
diff changeset
38 <param name="min_relax" type="integer" value="6" label="MIN RELAX" help="minimum number of 1-error-tolerant hits to support presence of a spacer " />
7412632c7b0e planemo upload
jowong
parents:
diff changeset
39 </section>
7412632c7b0e planemo upload
jowong
parents:
diff changeset
40 </inputs>
7412632c7b0e planemo upload
jowong
parents:
diff changeset
41 <outputs>
7412632c7b0e planemo upload
jowong
parents:
diff changeset
42 <data name="spotyping_results" label="spoligotyping results" format="txt" from_work_dir="SpoTyping"/>
7412632c7b0e planemo upload
jowong
parents:
diff changeset
43 <data name="spotyping_log" label="spoligotyping log" format="txt" from_work_dir="SpoTyping.log"/>
7412632c7b0e planemo upload
jowong
parents:
diff changeset
44 <data name="sitvit_database_query" label="query" format="excel.xls" from_work_dir="spotyping.xls"/>
7412632c7b0e planemo upload
jowong
parents:
diff changeset
45 </outputs>
7412632c7b0e planemo upload
jowong
parents:
diff changeset
46 <help><![CDATA[
7412632c7b0e planemo upload
jowong
parents:
diff changeset
47 This is a modified version of IUC's wrapper of spotyping without the concatenation and renaming of the input files. The wrapper also runs properly when supplied with paired-end reads
7412632c7b0e planemo upload
jowong
parents:
diff changeset
48
7412632c7b0e planemo upload
jowong
parents:
diff changeset
49 SpoTyping_ is a software for predicting spoligotype_ from sequencing reads, complete genomic sequences and assembled contigs.
7412632c7b0e planemo upload
jowong
parents:
diff changeset
50
7412632c7b0e planemo upload
jowong
parents:
diff changeset
51 **Input:**
7412632c7b0e planemo upload
jowong
parents:
diff changeset
52
7412632c7b0e planemo upload
jowong
parents:
diff changeset
53 - Fastq file - if paired end data is used, you may choose to concatenate paired reads into a single input (e.g. using the cat tool)
7412632c7b0e planemo upload
jowong
parents:
diff changeset
54 - Fasta file of a complete genomic sequence or assembled contigs of an isolate (with --seq option)
7412632c7b0e planemo upload
jowong
parents:
diff changeset
55
7412632c7b0e planemo upload
jowong
parents:
diff changeset
56 *Note on input size*: In swift mode the sampling threshold is reached in approximately 30x coverage when using
7412632c7b0e planemo upload
jowong
parents:
diff changeset
57 paired end sequencing of a *M. tuberculosis* genome.
7412632c7b0e planemo upload
jowong
parents:
diff changeset
58
7412632c7b0e planemo upload
jowong
parents:
diff changeset
59 **Output:**
7412632c7b0e planemo upload
jowong
parents:
diff changeset
60
7412632c7b0e planemo upload
jowong
parents:
diff changeset
61 Count of hits from BLAST result for each spacer sequence and predicted spoligotype in the format of binary code and octal code.
7412632c7b0e planemo upload
jowong
parents:
diff changeset
62
7412632c7b0e planemo upload
jowong
parents:
diff changeset
63 **Options:**
7412632c7b0e planemo upload
jowong
parents:
diff changeset
64
7412632c7b0e planemo upload
jowong
parents:
diff changeset
65
7412632c7b0e planemo upload
jowong
parents:
diff changeset
66 \--seq
7412632c7b0e planemo upload
jowong
parents:
diff changeset
67 Set this if input is a fasta file that contains only complete genomic sequence or assembled contigs from an isolate. [Default is off]
7412632c7b0e planemo upload
jowong
parents:
diff changeset
68
7412632c7b0e planemo upload
jowong
parents:
diff changeset
69 \-s SWIFT, --swift=SWIFT
7412632c7b0e planemo upload
jowong
parents:
diff changeset
70 Swift mode, either "on" or "off" [Default: on] - swift mode samples 250 million bases to use for spoligotyping
7412632c7b0e planemo upload
jowong
parents:
diff changeset
71
7412632c7b0e planemo upload
jowong
parents:
diff changeset
72 \-m MIN, --min=MIN
7412632c7b0e planemo upload
jowong
parents:
diff changeset
73 minimum number of error-free hits to support presence of a spacer [Default: 5]
7412632c7b0e planemo upload
jowong
parents:
diff changeset
74
7412632c7b0e planemo upload
jowong
parents:
diff changeset
75 \-r MIN_RELAX, --rmin=MIN_RELAX
7412632c7b0e planemo upload
jowong
parents:
diff changeset
76 minimum number of 1-error-tolerant hits to support presence of a spacer [Default: 6].
7412632c7b0e planemo upload
jowong
parents:
diff changeset
77
7412632c7b0e planemo upload
jowong
parents:
diff changeset
78
7412632c7b0e planemo upload
jowong
parents:
diff changeset
79
7412632c7b0e planemo upload
jowong
parents:
diff changeset
80 **Got weird spoligotype prediction?**
7412632c7b0e planemo upload
jowong
parents:
diff changeset
81
7412632c7b0e planemo upload
jowong
parents:
diff changeset
82 Sequencing throughput is very low (<40Mbp, for example): SpoTyping may not be able to give accurate prediction due to the relatively low read depth.
7412632c7b0e planemo upload
jowong
parents:
diff changeset
83
7412632c7b0e planemo upload
jowong
parents:
diff changeset
84 **Interpreting the spoligotype**
7412632c7b0e planemo upload
jowong
parents:
diff changeset
85
7412632c7b0e planemo upload
jowong
parents:
diff changeset
86 The binary or octal spoligotype can be used to look up lineage information using a service
7412632c7b0e planemo upload
jowong
parents:
diff changeset
87 like `TB Lineage`_.
7412632c7b0e planemo upload
jowong
parents:
diff changeset
88
7412632c7b0e planemo upload
jowong
parents:
diff changeset
89 **SITVIT reports**
7412632c7b0e planemo upload
jowong
parents:
diff changeset
90
7412632c7b0e planemo upload
jowong
parents:
diff changeset
91 Optionally a report on the detected spoligotype can be retrieved from the SITVIT_ database. If such a report is requested it can also be
7412632c7b0e planemo upload
jowong
parents:
diff changeset
92 illustrated as a (PDF format) plot.
7412632c7b0e planemo upload
jowong
parents:
diff changeset
93
7412632c7b0e planemo upload
jowong
parents:
diff changeset
94 .. _SpoTyping: https://github.com/xiaeryu/SpoTyping
7412632c7b0e planemo upload
jowong
parents:
diff changeset
95 .. _spoligotype: https://www.ncbi.nlm.nih.gov/pubmed/19521871
7412632c7b0e planemo upload
jowong
parents:
diff changeset
96 .. _TB Lineage: http://tbinsight.cs.rpi.edu/run_tb_lineage.html
7412632c7b0e planemo upload
jowong
parents:
diff changeset
97 .. _SITVIT: http://www.pasteur-guadeloupe.fr:8081/SITVIT_ONLINE/
7412632c7b0e planemo upload
jowong
parents:
diff changeset
98 ]]></help>
7412632c7b0e planemo upload
jowong
parents:
diff changeset
99 <citations>
7412632c7b0e planemo upload
jowong
parents:
diff changeset
100 <citation type="bibtex">
7412632c7b0e planemo upload
jowong
parents:
diff changeset
101 @misc{githubSpoTyping,
7412632c7b0e planemo upload
jowong
parents:
diff changeset
102 author = {Xia, Eryu},
7412632c7b0e planemo upload
jowong
parents:
diff changeset
103 year = {2016},
7412632c7b0e planemo upload
jowong
parents:
diff changeset
104 title = {SpoTyping},
7412632c7b0e planemo upload
jowong
parents:
diff changeset
105 publisher = {GitHub},
7412632c7b0e planemo upload
jowong
parents:
diff changeset
106 journal = {GitHub repository},
7412632c7b0e planemo upload
jowong
parents:
diff changeset
107 url = {https://github.com/xiaeryu/SpoTyping},
7412632c7b0e planemo upload
jowong
parents:
diff changeset
108 }</citation>
7412632c7b0e planemo upload
jowong
parents:
diff changeset
109 <citation type="doi">10.1186/s13073-016-0270-7</citation>
7412632c7b0e planemo upload
jowong
parents:
diff changeset
110 </citations>
7412632c7b0e planemo upload
jowong
parents:
diff changeset
111 </tool>