comparison SsuisSerotyping_pipeline.xml @ 0:1acaa51b2b97 draft

Uploaded wrapper
author p.lucas
date Tue, 13 Feb 2024 13:39:01 +0000
parents
children fc142f5cb6f1
comparison
equal deleted inserted replaced
-1:000000000000 0:1acaa51b2b97
1 <tool id="SsuisSerotyping_pipeline" name="Use SsuisSerotyping_pipeline." version="0.1.2">
2 <requirements>
3 <requirement type="package">perl-bioperl</requirement>
4 <requirement type="package">scipy</requirement>
5 <requirement type="package" version="2.7">python</requirement>
6 <requirement type="package">srst2</requirement>
7 </requirements>
8 <stdio>
9 <exit_code range="1:" />
10 </stdio>
11 <command><![CDATA[
12 python $__tool_directory__/Prepare_Ssuis_serotypingPipeline.py
13 --fastq_file $input1
14 --scoreName '$output1'
15 --output2 '$output2'
16 --output3 '$output3'
17 --output4 '$output4'
18 --output5 '$output5'
19 --output6 '$output6'
20 --output7 '$output7'
21 --output8 '$output8'
22 #if $optionalfiles.analysis_selector == "specific":
23 --serotype_db '$options.serotype_db'
24 --serotype_definitions '$options.serotype_definitions'
25 --cps2K '$options.cps2K'
26 --Virulence_db '$options.Virulence_db'
27 --recN_db '$options.recN_db'
28 --MLST_definitions '$options.MLST_definitions'
29 --MLST_db '$options.MLST_db'
30 #end if
31 #if $typeofdata.pors == "paired":
32 --ends pe
33 --forward '$typeofdata.forward'
34 --reverse '$typeofdata.reverse'
35 #else:
36 --ends se
37 #end if
38
39 ]]></command>
40 <inputs>
41 <param type="data" name="input1" format="fastq" />
42 <conditional name="optionalfiles">
43 <param name="analysis_selector" type="select" label="Use specific or default configuration?">
44 <option value="default" selected="True">Use default configuration.</option>
45 <option value="specific">Use specific file</option>
46 </param>
47 <when value="default" />
48 <when value="specific">
49 <param type="data" name="serotype_db" format="fasta" label="Serotype database in fasta format." />
50 <param type="data" name="serotype_definitions" format="txt" label="Definition of the serotype database" />
51 <param type="data" name="cps2K" format="fasta" label="Multifasta with cpsH confirmation database" />
52 <param type="data" name="Virulence_db" format="fasta" label="Virulence genes" />
53 <param type="data" name="recN_db" format="fasta" label="recN species specfic gene" />
54 <param type="data" name="MLST_definitions" format="txt" label="Definitions of MLST database file" />
55 <param type="data" name="MLST_db" format="fasta" label="MLST database" />
56 </when>
57 </conditional>
58 <conditional name="typeofdata">
59 <param name="pors" type="select" label="Read option">
60 <option value="single" selected="True">Single-end</option>
61 <option value="paired">Paired-end</option>
62 </param>
63 <when value="single" />
64 <when value="paired">
65 <param type="text" name="reverse" value="_R1" />
66 <param type="text" name="forward" value="_R2" />
67 </when>
68 </conditional>
69 </inputs>
70 <outputs>
71 <data name="output1" format="txt" label="${tool.name} on ${on_string}: Results_FinalResults.txt" from_work_dir="Results_FinalResults.txt"/>
72 <data name="output2" format="txt" label="${tool.name} on ${on_string}: Results_MLSTResults.txt" from_work_dir="Results_MLSTResults.txt"/>
73 <data name="output3" format="txt" label="${tool.name} on ${on_string}: Results_recN__fullgenes__recN_full__results.txt" from_work_dir="Results_recN__fullgenes__recN_full__results.txt" />
74 <data name="output4" format="txt" label="${tool.name} on ${on_string}: Results_speciesConfirmation.txt" from_work_dir="Results_speciesConfirmation.txt" />
75 <data name="output5" format="txt" label="${tool.name} on ${on_string}: Results_FinalSerotypingResults.txt" from_work_dir="Results_FinalSerotypingResults.txt" />
76 <data name="output6" format="txt" label="${tool.name} on ${on_string}: Results_InitialCapsuleResults.txt" from_work_dir="Results_InitialCapsuleResults.txt" />
77 <data name="output7" format="txt" label="${tool.name} on ${on_string}: Results_VirulenceFactors__fullgenes__Virulence__results.txt" from_work_dir="Results_VirulenceFactors__fullgenes__Virulence__results.txt" />
78 <data name="output8" format="txt" label="${tool.name} on ${on_string}: Results_VirulenceFactorResults.txt" from_work_dir="Results_VirulenceFactorResults.txt" />
79 </outputs>
80 <tests>
81 <test>
82 <param name="input1" value="/home/plucas/TEST/SsuisSerotyping_pipeline/input_fastq/SS1218_IonXpress_008_R_2016_02_23.soft_clean.trimmomatic_trimmed.fastq"/>
83 <output name="output1" file="/home/plucas/TEST/SsuisSerotyping_pipeline/results/Results_FinalResults.txt"/>
84 </test>
85 </tests>
86 <help><![CDATA[
87 Implementation of the S. suis serotyping pipeline:
88
89 perl Ssuis_serotypingPipeline.pl --fastq_directory /path/to/fastq/directory --scoreName Scores_output_name --serotype_db serotype.fasta --serotype_definitions serotype_definitions.txt --cps2K cps2K.fasta
90
91 --fastq_directory Path to directory containing paired-end fastq files.
92 Must be full path to directory, please do not use '.'
93 or '..' to declare path
94 If no path is given, the current working
95 directory is used
96 --scoreName Name of SRST2 results file
97 [optional: default name 'Results']
98 --serotype_db Multifasta file containing the serotype database
99 (Ssuis_Serotyping.fasta)
100 [If none is provided, Ssuis_Serotyping.fasta is looked
101 for in the directory containing the script]
102 --serotype_definitions Text file containing the definitions for the
103 serotype database file
104 (Ssuis_Serotyping_Definitions.txt)
105 [If none is provided, Ssuis_Serotyping_Definitions.txt is looked
106 for in the directory containing the script]
107 --cps2K Multifasta file containing the cpsH confirmation database
108 (Ssuis_cps2K.fasta)
109 [If none is provided, Ssuis_cps2K.fasta is looked
110 for in the directory containing the script]
111 --MLST_db Multifasta file containing the MLST database
112 (Streptococcus_suis.fasta)
113 [If none is provided, Streptococcus_suis.fasta is looked
114 for in the directory containing the script]
115 --MLST_definitions Text file containing the definitions for the
116 MLST database file
117 (ssuis.txt)
118 [If none is provided, ssuis.txt is looked
119 for in the directory containing the script]
120 --recN_db Fasta file containing the recN species specfic gene
121 (recN_Full.fasta)
122 [If none is provided, recN_full.fasta is looked
123 for in the directory containing the script]
124 --Virulence_db Multifasta file containing the Virulence genes
125 (Virulence.fasta)
126 [If none is provided, Virulence.fasta is looked
127 for in the directory containing the script]
128 --forward Indicator delimiting the forward reads file for
129 paired read fastq files
130
131 This option is ignored if single-end reads is selected
132 [optional: default '_R1']
133
134 --reverse Indicator delimiting the reverse reads file for
135 paired read fastq files
136
137 This option is ignored if single-end reads is selected
138 [optional: default '_R2']
139
140 --ends Indicates whether the reads are paired-end (pe) or single-end (se)
141 [optional: default 'pe']
142
143 Note: We recommend using paired end reads of at least 100nt in length
144 and at least 30X coverage.
145 We have not tested the efficiency of the pipeline with reads shorter than 80nt.
146 ]]></help>
147 <citations>
148 <citation type="bibtex">
149 @misc{githubSsuisSerotyping_pipeline,
150 author = {LastTODO, FirstTODO},
151 year = {TODO},
152 title = {SsuisSerotyping_pipeline},
153 publisher = {GitHub},
154 journal = {GitHub repository},
155 url = {https://github.com/streplab/SsuisSerotyping_pipeline},
156 }</citation>
157 </citations>
158 </tool>