5
|
1 <tool id="SAINT_preprocessing_v5" name="SAINT pre-processing">
|
|
2 <description></description>
|
|
3 <command interpreter="python">
|
|
4 #if (str($type) == 'Scaffold'):
|
|
5 SAINT_preprocessing.py $input $preybool $fasta_db $Inter_file $Prey_file
|
|
6 "
|
|
7 #for $ba in $bait
|
|
8 ${ba.bait1}
|
|
9 ${ba.assign}
|
|
10 ${ba.T_C}
|
|
11 #end for
|
|
12 "
|
|
13 $Bait_file \$INSTALL_RUN_PATH/ $bait_bool $bait_file_in
|
|
14 #elif (str($type) == 'MaxQuant'):
|
|
15 SAINT_preprocessing_mq_pep.py $input $preybool $fasta_db $Inter_file $Prey_file
|
|
16 "
|
|
17 #for $ba in $bait
|
|
18 ${ba.bait1}
|
|
19 ${ba.assign}
|
|
20 ${ba.T_C}
|
|
21 #end for
|
|
22 "
|
|
23 $Bait_file \$INSTALL_RUN_PATH/ $bait_bool $bait_file_in
|
55
|
24 #elif (str($type) == 'Peptideshaker'):
|
|
25 Protein_report_processing.py "$input" $Bait_file $use_metric $fasta_db $preybool
|
|
26 "
|
|
27 #for $ba in $bait
|
|
28 ${ba.bait1}
|
|
29 ${ba.assign}
|
|
30 ${ba.T_C}
|
|
31 #end for
|
|
32 "
|
|
33 \$INSTALL_RUN_PATH/ $bait_bool $bait_file_in $Inter_file $Prey_file
|
5
|
34 #end if
|
|
35 </command>
|
|
36 <requirements>
|
|
37 <requirement type="set_environment">INSTALL_RUN_PATH</requirement>
|
|
38 </requirements>
|
|
39 <inputs>
|
55
|
40 <conditional name="type_select">
|
|
41 <param type="select" name="type" label="MaxQuant or Scaffold">
|
|
42 <option value="MaxQuant">MaxQuant</option>
|
|
43 <option value="Scaffold">Scaffold</option>
|
|
44 <option value="Peptideshaker">Peptideshaker</option>
|
|
45 </param>
|
|
46 <when value="MaxQuant">
|
|
47 <param format="dat" name="input" type="data" label="MaxQuant peptides Output"/>
|
|
48 <param type="boolean" name="preybool" checked="true" label="Create Prey File"/>
|
|
49 <param type="data" name="fasta_db" format="fasta" label="Provide Uniprot Fasta database" optional="true"/>
|
|
50 <param name="bait_bool" type="boolean" checked="true" label="Are You Providing Your Own bait file?"/>
|
|
51 <param type="data" format="dat" name="bait_file_in" label="Bait File" optional="true"/>
|
|
52 <repeat name="bait" title="Bait Create">
|
|
53 <param name="bait1" type="text" size="100" label="Bait"/>
|
|
54 <param name="assign" type="text" size="100" label="Group Assignment"/>
|
|
55 <param name="T_C" type="boolean" checked="true" label="Is this a Control?"/>
|
|
56 </repeat>
|
|
57 <when value="Scaffold">
|
|
58 <param format="dat" name="input" type="data" label="Scaffold Output"/>
|
|
59 <param type="boolean" name="preybool" checked="true" label="Create Prey File"/>
|
|
60 <param type="data" name="fasta_db" format="fasta" label="Provide Uniprot Fasta database" optional="true"/>
|
|
61 <param name="bait_bool" type="boolean" checked="true" label="Are You Providing Your Own bait file?"/>
|
|
62 <param type="data" format="dat" name="bait_file_in" label="Bait File" optional="true"/>
|
|
63 <repeat name="bait" title="Bait Create">
|
|
64 <param name="bait1" type="text" size="100" label="Bait"/>
|
|
65 <param name="assign" type="text" size="100" label="Group Assignment"/>
|
|
66 <param name="T_C" type="boolean" checked="true" label="Is this a Control?"/>
|
|
67 </repeat>
|
|
68 </when>
|
|
69 <when value="Peptideshaker">
|
|
70 <param format="dat" name="input" type="data" label="Peptideshaker Output" multiple="true"/>
|
|
71 <param type="select" name="use_metric" label="Select Report File Value for Quantification">
|
|
72 <option value="Validated_Peptides">#Validated Peptides</option>
|
|
73 <option value="Peptides">#Peptides</option>
|
|
74 <option value="Unique">#Unique</option>
|
|
75 <option value="Validated_PSMs">#Validated PSMs</option>
|
|
76 <option value="PSMs">#PSMs</option>
|
|
77 </param>
|
|
78 <param type="boolean" name="preybool" checked="true" label="Create Prey File"/>
|
|
79 <param type="data" name="fasta_db" format="fasta" label="Provide Uniprot Fasta database" optional="true"/>
|
|
80 <param name="bait_bool" type="boolean" checked="true" label="Are You Providing Your Own bait file?"/>
|
|
81 <param type="data" format="dat" name="bait_file_in" label="Bait File" optional="true"/>
|
|
82 <repeat name="bait" title="Bait Create">
|
|
83 <param name="bait1" type="text" size="100" label="Bait"/>
|
|
84 <param name="assign" type="text" size="100" label="Group Assignment"/>
|
|
85 <param name="T_C" type="boolean" checked="true" label="Is this a Control?"/>
|
|
86 </repeat>
|
|
87 </when>
|
|
88 </conditional>
|
5
|
89 </inputs>
|
|
90 <outputs>
|
|
91 <data format="txt" name="Inter_file" label="Inter File"/>
|
|
92 <data format="txt" name="Prey_file" label="Prey File" />
|
|
93 <data format="txt" name="Bait_file" label="Bait File" />
|
|
94 </outputs>
|
|
95 <stdio>
|
52
|
96 <regex match="Error: bad bait"
|
|
97 source="stdout"
|
|
98 level="fatal"
|
|
99 description="Error: bad bait"/>
|
|
100 <regex match="IOError: [Errno 2] No such file or directory: './tukeys_output.txt'"
|
|
101 source="stderr"
|
|
102 level="fatal"
|
|
103 description="Error: Scaffold/MaxQuant mismatch. Check job settings."/>
|
|
104 <regex match="bait_temp_file = open(sys.argv[10], 'r')"
|
|
105 source="stderr"
|
|
106 level="fatal"
|
|
107 description="Error: Bait create settings mismatch. Check job settings."/>
|
5
|
108 <regex match="Error|error"
|
|
109 source="stdout"
|
|
110 level="fatal"
|
|
111 description="Unknown error"/>
|
|
112 <regex match="Error|error"
|
|
113 source="stderr"
|
|
114 level="fatal"
|
|
115 description="Unknown error"/>
|
|
116 </stdio>
|
|
117
|
|
118 <tests>
|
|
119 <test>
|
|
120 <param name="input" value="fa_gc_content_input.fa"/>
|
|
121 <output name="out_file1" file="fa_gc_content_output.txt"/>
|
|
122 </test>
|
|
123 </tests>
|
|
124 <help>
|
21
|
125 Pre-Processing
|
25
|
126 ^^^^^^^^^^^^^^
|
20
|
127
|
21
|
128 This tool will read in a Scaffold *Samples Report* file (tab-delimited
|
55
|
129 txt file), multiple Peptideshaker *Protein Report* files or a MaxQuant
|
|
130 *peptides.txt* file and process them to generate a *Bait File, Prey
|
|
131 File,* and *Inter File* for SAINTexpress analysis.
|
20
|
132
|
25
|
133 --------------
|
|
134
|
27
|
135 **1) MaxQuant or Scaffold**
|
20
|
136
|
21
|
137 APOSTL is able to recognize either a Scaffold *Samples Report* file
|
|
138 (tab-delimited txt file) or the *peptides.txt* file output in the
|
|
139 MaxQuant *txt* output folder. No modifications should be made to these
|
|
140 files. Please designate which one is being provided.
|
20
|
141
|
27
|
142 **2) Scaffold or MaxQuant File Input**
|
20
|
143
|
21
|
144 Select the corresponding *Samples Report* or *peptides.txt* here.
|
|
145
|
27
|
146 **3) Create Prey File**
|
5
|
147
|
20
|
148 Select whether or not you would like APOSTL to generate a prey file.
|
|
149
|
21
|
150 When making a prey file, APOSTL queries a user provided FASTA database
|
|
151 (see below) in order to extract protein amino acid lengths and gene
|
|
152 names. This may take several minutes depending on your computer and if
|
|
153 your Galaxy distribution is cluster enabled. Some users may want to run
|
|
154 SAINTexpress using the same data set while changing which baits are
|
|
155 considered test or control. It is useful to toggle **Create Prey File**
|
|
156 off in order to save time by circumventing this step as the same prey
|
|
157 file can be used for both SAINTexpress runs.
|
20
|
158
|
27
|
159 **4) Provide Uniprot FASTA database**
|
20
|
160
|
21
|
161 Please specify a FASTA file containing the protein sequence. You can
|
|
162 download the latest release of Uniprot's reviewed sequences (Swiss-Prot)
|
24
|
163 http://www.uniprot.org/downloads. For computing efficiency,
|
21
|
164 please limit your FASTA file to your species of interest. It is
|
|
165 generally advised to use the same FASTA database that was used for your
|
|
166 database searches during peptide and protein ID.
|
5
|
167
|
27
|
168 **5) Are You Providing Your Own Bait File?**
|
20
|
169
|
21
|
170 Users have two options for providing a *Bait* file. If you would like to
|
|
171 create your own *Bait* file, select Yes and designate the file below. If
|
|
172 you would like to use the **Bait Create** tool to create a *Bait* file
|
|
173 within Galaxy, please select No and proceed to the **Bait Create** tool.
|
20
|
174
|
27
|
175 **6) Bait File**
|
21
|
176
|
|
177 If you selected Yes above, please specify the *Bait* file you would like
|
|
178 to provide. If you selected No above, ignore this argument and proceed
|
|
179 to the **Bait Create** tool.
|
5
|
180
|
21
|
181 **Note:** Individual bait names must match to the sample names
|
|
182 within your Scaffold or MaxQuant output exactly and must contain no
|
|
183 whitespace characters (e.g. spaces) or dashes.
|
55
|
184
|
|
185 **Note:** When using Peptideshaker output the baits in the baitfile
|
|
186 need to be in the same order as the files selected.
|
5
|
187
|
27
|
188 **7) Bait Create**
|
21
|
189
|
|
190 Using the **Bait Create** tool, you can create your *bait.txt* file.
|
20
|
191
|
21
|
192 **Note:** Individual bait names must match to the sample names
|
|
193 within your Scaffold or MaxQuant output exactly and must contain no
|
|
194 whitespace characters (e.g. spaces) or dashes.
|
5
|
195
|
21
|
196 APOSTL uses this bait file to find the user's baits of interest within a
|
|
197 *Samples Report* or *peptides.txt* file and when preparing the
|
|
198 *inter.txt* file.
|
20
|
199
|
21
|
200 --------------
|
20
|
201
|
21
|
202 Once your parameters have been finalized, please press the Execute
|
|
203 button to start processing. This may take a few minutes. Once your
|
|
204 process has been completed, you will see your *Bait File, Prey File,*
|
|
205 and *Inter File* on the right hand side of your panel highlighted in
|
|
206 green.
|
5
|
207 </help>
|
|
208 </tool>
|