Repository 'proteomiqon_proteininference'
hg clone https://toolshed.g2.bx.psu.edu/repos/galaxyp/proteomiqon_proteininference

Changeset 0:8e4fb95a319a (2021-07-26)
Next changeset 1:7729b9043b80 (2022-04-29)
Commit message:
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/proteomiqon_proteininference commit 1b4c15d5c84c890663475a22cc6ff71bbc9aa90c"
added:
proteomiqon_proteininference.xml
static/images/ProteinInference.png
test-data/result_1.json
test-data/result_2.json
test-data/result_3.json
test-data/result_4.json
test-data/result_5.json
test-data/result_6.json
test-data/result_7.json
test-data/sample.db
test-data/sample_1.qpsm
test-data/sample_2.qpsm
test-data/sample_3.qpsm
b
diff -r 000000000000 -r 8e4fb95a319a proteomiqon_proteininference.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/proteomiqon_proteininference.xml Mon Jul 26 13:34:26 2021 +0000
[
b'@@ -0,0 +1,269 @@\n+<tool id="proteomiqon_proteininference" name="ProteomIQon ProteinInference" version="@VERSION@" profile="20.05">\n+    <description>\n+        uses identified peptides to infere proteins explaining their presence in the sample.\n+    </description>\n+    <macros>\n+        <token name="@VERSION@">0.0.7</token>\n+    </macros>\n+    <requirements>\n+        <requirement type="package" version="@VERSION@">proteomiqon-proteininference</requirement>\n+    </requirements>\n+    <command detect_errors="exit_code"><![CDATA[\n+        #import re\n+        #if $PSMInputModeCond.PSMInputMode == "single"\n+            #set basename = $re.sub(r\'[^\\w ,.\\-+]\',\'_\',$PSMInputModeCond.scoredPSMs.element_identifier)\n+            ln -s \'$scoredPSMs\' \'${basename}.qpsm\' &&\n+        #elif $PSMInputModeCond.PSMInputMode == "multi"\n+            #for $psmfile in $PSMInputModeCond.scoredPSMs\n+                #set basename = $re.sub(r\'[^\\w ,.\\-+]\',\'_\',$psmfile.element_identifier)\n+                ln -s \'$psmfile\' \'${basename}.qpsm\' &&\n+            #end for\n+        #end if\n+        #if $outputParamfile:\n+            cat \'$paramfile\' >> \'$out_paramfile\' &&\n+        #end if\n+        proteomiqon-proteininference -i \'./\' -d \'$peptideDB\' -p \'$paramfile\' -o \'./out\'\n+    ]]>\n+    </command>\n+    <configfiles>\n+        <configfile name="paramfile">\n+            <![CDATA[\n+            {\n+                "ProteinIdentifierRegex": "${ProteinIdentifierRegex}",\n+                "Protein": {\n+                  "Case": "${Protein}"\n+                },\n+                "Peptide": {\n+                  "Case": "${Peptide}"\n+                },\n+                "GroupFiles": ${GroupFiles},\n+                #if $GetQValueCond.GetQValue == "LogisticRegression"\n+                "GetQValue": {\n+                  "Case": "${GetQValueCond.GetQValue}",\n+                  "Fields": [\n+                    {\n+                      "Case": "${GetQValueCond.LogisticRegressionType}"\n+                    }\n+                  ]\n+                }\n+                #else\n+                "GetQValue": {\n+                    "Case": "${GetQValueCond.GetQValue}",\n+                }\n+                #end if\n+            }\n+            ]]>\n+        </configfile>\n+    </configfiles>\n+    <inputs>\n+        <param name="peptideDB" type="data" format="sqlite" label="Peptide database" help="Specify the peptide data base."/>\n+        <conditional name="PSMInputModeCond">\n+            <param name="PSMInputMode" type="select" label="PSM file input mode">\n+                <option value="single">Single File</option>\n+                <option value="multi">Multiple Files</option>\n+            </param>\n+            <when value="single">\n+                <param name="scoredPSMs" type="data" format="tabular" label="Scored PSM file" help="Specify peptide identifications." />\n+            </when>\n+            <when value="multi">\n+                <param name="scoredPSMs" type="data" format="tabular" label="Scored PSM files" help="Specify list of peptide identifications." multiple="true"/>\n+            </when>\n+        </conditional>\n+        <param name="ProteinIdentifierRegex" type="text" value="id" label="Protein identifier regex pattern" help="Fasta headers do often contain additional information in addition to your protein identifier, by specifying a regex pattern the tool can extract the protein IDs. If you fasta headers are already cleaned you can leave this field empty.">\n+            <sanitizer sanitize="false" />\n+        </param>\n+        <param name="Protein" type="select" label="Protein" help="Specify how protein groups are created. For details please refer to the description below.">\n+            <option value="Minimal">Minimal</option>\n+            <option value="Maximal" selected="true">Maximal</option>\n+        </param>\n+        <param name="Peptide" type="select" label="Peptide" help="Specify how peptides are used to infer protein groups. For details please refer to the description below.'..b'alue="NoQValue"/>\n+            </conditional>\n+            <param name="outputParamfile" value="true"/>\n+            <output name="out_paramfile" file="result_6.json" />\n+        </test>\n+        <test expect_num_outputs="2">\n+            <param name="peptideDB" value="sample.db"/>\n+            <conditional name="PSMInputModeCond">\n+                <param name="PSMInputMode" value="multi"/>\n+                <param name="scoredPSMs" value="sample_1.qpsm,sample_2.qpsm,sample_3.qpsm"/>\n+            </conditional>\n+            <param name="ProteinIdentifierRegex" value="id"/>\n+            <param name="Protein" value="Maximal"/>\n+            <param name="Peptide" value="Maximal"/>\n+            <param name="GroupFiles" value="false"/>\n+            <conditional name="GetQValueCond">\n+                <param name="GetQValue" value="NoQValue"/>\n+            </conditional>\n+            <param name="outputParamfile" value="true"/>\n+            <output name="out_paramfile" file="result_7.json" />\n+        </test>\n+    </tests>\n+    <help>\n+    <![CDATA[\n+What It Does\n+------------\n+**Disclaimer** Disclaimer this tool needs a `peptide database <https://csbiology.github.io/ProteomIQon/tools/PeptideDB.html>`_ and `peptide spectrum matches <https://csbiology.github.io/ProteomIQon/tools/PeptideSpectrumMatching.html>`_ which `passed fdr thresholds <https://csbiology.github.io/ProteomIQon/tools/PSMStatistics.html>`_.\n+\n+MS-based shotgun proteomics estimates protein abundances using a proxy: peptides. The process of \'Protein Inference\' is concerned with the mapping of identified peptides to the proteins they putatively originated from. This process is not as straightforward as one might think at a first glance on the subject, since the peptide-to-protein mapping is not necessarily a one-to-one relationship but in many cases a one-to-many relationship. This is due to the fact that many proteins share peptides with an identical sequence, e.g. two proteins originating from two different splice variants of the same gene.\n+\n+One way to cope with this problem is to introduce the concept of protein groups, which allow us to report the aggregation of all peptides which map to all isoforms of a gene independently from the peptides mapping uniquely to a single isoform. \n+While this approach has its merits it leaves room for fine tuning when implemented. \n+Lets say we have two proteins pA and pB which were both discovered by one peptide uniquely mapping to each of them and additionally by a third peptide, which maps to both of them: How do we report our findings? \n+We could report both proteins seperately and as a protein group, we could only report the protein group, or we could report both proteins but not the protein group. \n+A problem of comparable complexity occurs when we think about peptides when calculating the abundances for the proteingroup pA;pB. \n+Do we use the peptides only once, or do we also use the peptides mapping uniquely to protein pA and pB? \n+Fortunately, the tool ProteinInference gives you the possibility to choose any of the described scenarios by tuning the parameters described below. \n+The following scheme gives an overview how parameter settings influence inferred protein groups:\n+\n+.. image:: $PATH_TO_IMAGES/ProteinInference.png\n+            :width: 1048pt\n+            :height: 358pt\n+\n+Moreover, we report each protein group with a so called \'Peptide evidence class\'. This metric gives an indication how pure the peptide composition of a protein group is and lets us differentiate between protein groups that consist of isoforms of a splice variant or contain a rather arbitrary mix of proteins. \n+In order to determine these inter-protein relationships the user can optionally supply a gff3 file.\n+\n+Further Reading\n+---------------\n+Additional information about the tool can be found in the `documentation <https://csbiology.github.io/ProteomIQon/tools/ProteinInference.html>`_.  \n+    ]]>\n+    </help>\n+</tool>\n\\ No newline at end of file\n'
b
diff -r 000000000000 -r 8e4fb95a319a static/images/ProteinInference.png
b
Binary file static/images/ProteinInference.png has changed
b
diff -r 000000000000 -r 8e4fb95a319a test-data/result_1.json
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/result_1.json Mon Jul 26 13:34:26 2021 +0000
b
@@ -0,0 +1,17 @@
+
+            
+            {
+                "ProteinIdentifierRegex": "id",
+                "Protein": {
+                  "Case": "Maximal"
+                },
+                "Peptide": {
+                  "Case": "Maximal"
+                },
+                "GroupFiles": true,
+                "GetQValue": {
+                    "Case": "Storey",
+                }
+            }
+            
+        
\ No newline at end of file
b
diff -r 000000000000 -r 8e4fb95a319a test-data/result_2.json
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/result_2.json Mon Jul 26 13:34:26 2021 +0000
b
@@ -0,0 +1,17 @@
+
+            
+            {
+                "ProteinIdentifierRegex": "id",
+                "Protein": {
+                  "Case": "Minimal"
+                },
+                "Peptide": {
+                  "Case": "MaximalInverse"
+                },
+                "GroupFiles": true,
+                "GetQValue": {
+                    "Case": "NoQValue",
+                }
+            }
+            
+        
\ No newline at end of file
b
diff -r 000000000000 -r 8e4fb95a319a test-data/result_3.json
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/result_3.json Mon Jul 26 13:34:26 2021 +0000
[
@@ -0,0 +1,22 @@
+
+            
+            {
+                "ProteinIdentifierRegex": "id",
+                "Protein": {
+                  "Case": "Minimal"
+                },
+                "Peptide": {
+                  "Case": "MaximalInverse"
+                },
+                "GroupFiles": true,
+                "GetQValue": {
+                  "Case": "LogisticRegression",
+                  "Fields": [
+                    {
+                      "Case": "Conservative"
+                    }
+                  ]
+                }
+            }
+            
+        
\ No newline at end of file
b
diff -r 000000000000 -r 8e4fb95a319a test-data/result_4.json
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/result_4.json Mon Jul 26 13:34:26 2021 +0000
[
@@ -0,0 +1,22 @@
+
+            
+            {
+                "ProteinIdentifierRegex": "id",
+                "Protein": {
+                  "Case": "Minimal"
+                },
+                "Peptide": {
+                  "Case": "MaximalInverse"
+                },
+                "GroupFiles": true,
+                "GetQValue": {
+                  "Case": "LogisticRegression",
+                  "Fields": [
+                    {
+                      "Case": "MAYU"
+                    }
+                  ]
+                }
+            }
+            
+        
\ No newline at end of file
b
diff -r 000000000000 -r 8e4fb95a319a test-data/result_5.json
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/result_5.json Mon Jul 26 13:34:26 2021 +0000
[
@@ -0,0 +1,22 @@
+
+            
+            {
+                "ProteinIdentifierRegex": "id",
+                "Protein": {
+                  "Case": "Minimal"
+                },
+                "Peptide": {
+                  "Case": "MaximalInverse"
+                },
+                "GroupFiles": true,
+                "GetQValue": {
+                  "Case": "LogisticRegression",
+                  "Fields": [
+                    {
+                      "Case": "DecoyTargetRatio"
+                    }
+                  ]
+                }
+            }
+            
+        
\ No newline at end of file
b
diff -r 000000000000 -r 8e4fb95a319a test-data/result_6.json
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/result_6.json Mon Jul 26 13:34:26 2021 +0000
b
@@ -0,0 +1,17 @@
+
+            
+            {
+                "ProteinIdentifierRegex": "id",
+                "Protein": {
+                  "Case": "Maximal"
+                },
+                "Peptide": {
+                  "Case": "Maximal"
+                },
+                "GroupFiles": true,
+                "GetQValue": {
+                    "Case": "NoQValue",
+                }
+            }
+            
+        
\ No newline at end of file
b
diff -r 000000000000 -r 8e4fb95a319a test-data/result_7.json
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/result_7.json Mon Jul 26 13:34:26 2021 +0000
b
@@ -0,0 +1,17 @@
+
+            
+            {
+                "ProteinIdentifierRegex": "id",
+                "Protein": {
+                  "Case": "Maximal"
+                },
+                "Peptide": {
+                  "Case": "Maximal"
+                },
+                "GroupFiles": false,
+                "GetQValue": {
+                    "Case": "NoQValue",
+                }
+            }
+            
+        
\ No newline at end of file
b
diff -r 000000000000 -r 8e4fb95a319a test-data/sample.db
b
Binary file test-data/sample.db has changed
b
diff -r 000000000000 -r 8e4fb95a319a test-data/sample_1.qpsm
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/sample_1.qpsm Mon Jul 26 13:34:26 2021 +0000
b
@@ -0,0 +1,4 @@
+PSMId GlobalMod PepSequenceID ModSequenceID Label ScanNr ScanTime Charge PrecursorMZ TheoMass AbsDeltaMass PeptideLength MissCleavages SequestScore SequestNormDeltaBestToRest SequestNormDeltaNext AndroScore AndroNormDeltaBestToRest AndroNormDeltaNext XtandemScore XtandemNormDeltaBestToRest XtandemNormDeltaNext ModelScore QValue PEPValue StringSequence ProteinNames
+sample=1 period=1 cycle=2033 experiment=4 1 4 8 1 0 32.9949 2 383.2268582 764.4508194 0.01165603632 7 0 8.635639049 0 0.6779896705 112.3264921 0 0.7657267969 45.72186797 0 0.5594493789 NaN NaN NaN ILVGDIK Cre02.g143307.t1.1
+sample=1 period=1 cycle=2043 experiment=5 0 22 87 1 2 33.36088333 2 399.242789 796.4806883 0.009663316474 7 0 7.816376209 0 0.8192994029 74.99645487 0 1 29.37298389 0 0.7506817907 NaN NaN NaN ALEVIPR Cre01.g026550.t1.1
+sample=1 period=1 cycle=2038 experiment=7 1 22 88 1 1 33.18005 2 404.2288055 806.4510372 0.007979227388 7 0 7.830779576 0 0.7970537368 112.937008 0 0.8973792939 47.98049859 0 0.6070363597 NaN NaN NaN ALEVIPR Cre01.g026550.t1.1
b
diff -r 000000000000 -r 8e4fb95a319a test-data/sample_2.qpsm
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/sample_2.qpsm Mon Jul 26 13:34:26 2021 +0000
b
@@ -0,0 +1,4 @@
+PSMId GlobalMod PepSequenceID ModSequenceID Label ScanNr ScanTime Charge PrecursorMZ TheoMass AbsDeltaMass PeptideLength MissCleavages SequestScore SequestNormDeltaBestToRest SequestNormDeltaNext AndroScore AndroNormDeltaBestToRest AndroNormDeltaNext XtandemScore XtandemNormDeltaBestToRest XtandemNormDeltaNext ModelScore QValue PEPValue StringSequence ProteinNames
+sample=1 period=1 cycle=2033 experiment=4 1 4 8 1 0 32.9949 2 383.2268582 764.4508194 0.01165603632 7 0 8.635639049 0 0.6779896705 112.3264921 0 0.7657267969 45.72186797 0 0.5594493789 NaN NaN NaN ILVGDIK Cre02.g143307.t1.1
+sample=1 period=1 cycle=2043 experiment=5 0 22 87 1 2 33.36088333 2 399.242789 796.4806883 0.009663316474 7 0 7.816376209 0 0.8192994029 74.99645487 0 1 29.37298389 0 0.7506817907 NaN NaN NaN ALEVIPR Cre01.g026550.t1.1
+sample=1 period=1 cycle=2038 experiment=7 1 22 88 1 1 33.18005 2 404.2288055 806.4510372 0.007979227388 7 0 7.830779576 0 0.7970537368 112.937008 0 0.8973792939 47.98049859 0 0.6070363597 NaN NaN NaN ALEVIPR Cre01.g026550.t1.1
b
diff -r 000000000000 -r 8e4fb95a319a test-data/sample_3.qpsm
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/sample_3.qpsm Mon Jul 26 13:34:26 2021 +0000
b
@@ -0,0 +1,4 @@
+PSMId GlobalMod PepSequenceID ModSequenceID Label ScanNr ScanTime Charge PrecursorMZ TheoMass AbsDeltaMass PeptideLength MissCleavages SequestScore SequestNormDeltaBestToRest SequestNormDeltaNext AndroScore AndroNormDeltaBestToRest AndroNormDeltaNext XtandemScore XtandemNormDeltaBestToRest XtandemNormDeltaNext ModelScore QValue PEPValue StringSequence ProteinNames
+sample=1 period=1 cycle=2033 experiment=4 1 4 8 1 0 32.9949 2 383.2268582 764.4508194 0.01165603632 7 0 8.635639049 0 0.6779896705 112.3264921 0 0.7657267969 45.72186797 0 0.5594493789 NaN NaN NaN ILVGDIK Cre02.g143307.t1.1
+sample=1 period=1 cycle=2043 experiment=5 0 22 87 1 2 33.36088333 2 399.242789 796.4806883 0.009663316474 7 0 7.816376209 0 0.8192994029 74.99645487 0 1 29.37298389 0 0.7506817907 NaN NaN NaN ALEVIPR Cre01.g026550.t1.1
+sample=1 period=1 cycle=2038 experiment=7 1 22 88 1 1 33.18005 2 404.2288055 806.4510372 0.007979227388 7 0 7.830779576 0 0.7970537368 112.937008 0 0.8973792939 47.98049859 0 0.6070363597 NaN NaN NaN ALEVIPR Cre01.g026550.t1.1