changeset 55:340cc5988c31 draft

Uploaded
author bornea
date Sat, 27 Aug 2016 21:01:12 -0400
parents 0f5028e0c39c
children 18389ccc7629
files SAINT_preprocessing.xml
diffstat 1 files changed, 65 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/SAINT_preprocessing.xml	Sat Aug 27 20:25:34 2016 -0400
+++ b/SAINT_preprocessing.xml	Sat Aug 27 21:01:12 2016 -0400
@@ -21,28 +21,71 @@
         #end for
         "
       $Bait_file \$INSTALL_RUN_PATH/ $bait_bool $bait_file_in
+    #elif (str($type) == 'Peptideshaker'):
+      Protein_report_processing.py "$input" $Bait_file $use_metric $fasta_db $preybool 
+        "
+        #for $ba in $bait
+          ${ba.bait1}
+          ${ba.assign}
+          ${ba.T_C}
+        #end for
+        "
+      \$INSTALL_RUN_PATH/ $bait_bool $bait_file_in $Inter_file $Prey_file
     #end if
   </command>
   <requirements>
     <requirement type="set_environment">INSTALL_RUN_PATH</requirement>
-    <requirement type="package" version="3.2.1">package_r_3_2_1</requirement>
   </requirements>
   <inputs>
-    <param type="select" name="type" label="MaxQuant or Scaffold">
-      <option value="MaxQuant">MaxQuant</option>
-      <option value="Scaffold">Scaffold</option> 
-    </param>
-    <param format="dat" name="input" type="data" label="Scaffold or MaxQuant peptides Output"/>
-    <param type="boolean" name="preybool" checked="true" label="Create Prey File"/>
-    <param type="data" name="fasta_db" format="fasta"  label="Provide Uniprot Fasta database" optional="true"/>
-    <param name="bait_bool" type="boolean" checked="true" label="Are You Providing Your Own bait file?"/>
-    <param type="data" format="dat" name="bait_file_in" label="Bait File" optional="true"/>
-    <repeat name="bait" title="Bait Create">
-      <param name="bait1" type="text" size="100" label="Bait"/>
-      <param name="assign" type="text" size="100" label="Group Assignment"/>
-      <param name="T_C" type="boolean" checked="true" label="Is this a Control?"/> 
-    </repeat>
-
+    <conditional name="type_select">
+      <param type="select" name="type" label="MaxQuant or Scaffold">
+        <option value="MaxQuant">MaxQuant</option>
+        <option value="Scaffold">Scaffold</option>
+        <option value="Peptideshaker">Peptideshaker</option> 
+      </param>
+      <when value="MaxQuant">
+        <param format="dat" name="input" type="data" label="MaxQuant peptides Output"/>
+        <param type="boolean" name="preybool" checked="true" label="Create Prey File"/>
+        <param type="data" name="fasta_db" format="fasta"  label="Provide Uniprot Fasta database" optional="true"/>
+        <param name="bait_bool" type="boolean" checked="true" label="Are You Providing Your Own bait file?"/>
+        <param type="data" format="dat" name="bait_file_in" label="Bait File" optional="true"/>
+        <repeat name="bait" title="Bait Create">
+          <param name="bait1" type="text" size="100" label="Bait"/>
+          <param name="assign" type="text" size="100" label="Group Assignment"/>
+          <param name="T_C" type="boolean" checked="true" label="Is this a Control?"/> 
+        </repeat>
+      <when value="Scaffold">
+        <param format="dat" name="input" type="data" label="Scaffold Output"/>
+        <param type="boolean" name="preybool" checked="true" label="Create Prey File"/>
+        <param type="data" name="fasta_db" format="fasta"  label="Provide Uniprot Fasta database" optional="true"/>
+        <param name="bait_bool" type="boolean" checked="true" label="Are You Providing Your Own bait file?"/>
+        <param type="data" format="dat" name="bait_file_in" label="Bait File" optional="true"/>
+        <repeat name="bait" title="Bait Create">
+          <param name="bait1" type="text" size="100" label="Bait"/>
+          <param name="assign" type="text" size="100" label="Group Assignment"/>
+          <param name="T_C" type="boolean" checked="true" label="Is this a Control?"/> 
+        </repeat>
+      </when>
+      <when value="Peptideshaker">
+        <param format="dat" name="input" type="data" label="Peptideshaker Output" multiple="true"/>
+        <param type="select" name="use_metric" label="Select Report File Value for Quantification">
+          <option value="Validated_Peptides">#Validated Peptides</option>
+          <option value="Peptides">#Peptides</option>
+          <option value="Unique">#Unique</option> 
+          <option value="Validated_PSMs">#Validated PSMs</option>
+          <option value="PSMs">#PSMs</option> 
+        </param>
+        <param type="boolean" name="preybool" checked="true" label="Create Prey File"/>
+        <param type="data" name="fasta_db" format="fasta"  label="Provide Uniprot Fasta database" optional="true"/>
+        <param name="bait_bool" type="boolean" checked="true" label="Are You Providing Your Own bait file?"/>
+        <param type="data" format="dat" name="bait_file_in" label="Bait File" optional="true"/>
+        <repeat name="bait" title="Bait Create">
+          <param name="bait1" type="text" size="100" label="Bait"/>
+          <param name="assign" type="text" size="100" label="Group Assignment"/>
+          <param name="T_C" type="boolean" checked="true" label="Is this a Control?"/> 
+        </repeat>
+      </when>
+    </conditional>
   </inputs>
   <outputs>
     <data format="txt" name="Inter_file" label="Inter File"/>    
@@ -83,8 +126,9 @@
 ^^^^^^^^^^^^^^
 
 This tool will read in a Scaffold *Samples Report* file (tab-delimited
-txt file) or a MaxQuant *peptides.txt* file and process them to generate
-a *Bait File, Prey File,* and *Inter File* for SAINTexpress analysis.
+txt file), multiple Peptideshaker *Protein Report* files or a MaxQuant 
+*peptides.txt* file and process them to generate a *Bait File, Prey 
+File,* and *Inter File* for SAINTexpress analysis.
 
 --------------
 
@@ -137,6 +181,9 @@
     **Note:** Individual bait names must match to the sample names
     within your Scaffold or MaxQuant output exactly and must contain no
     whitespace characters (e.g. spaces) or dashes.
+    
+    **Note:** When using Peptideshaker output the baits in the baitfile 
+    need to be in the same order as the files selected.
 
 **7) Bait Create**