Mercurial > repos > eschen42 > mqppep_preproc
annotate MaxQuantProcessingScript.R @ 31:e103de3e41e6 draft
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 7e8b616a2519c8faeb6fd743a8fb73f271f655f9
| author | eschen42 | 
|---|---|
| date | Fri, 09 Dec 2022 21:06:08 +0000 | 
| parents | 29775869faba | 
| children | 072fe8228dfa | 
| rev | line source | 
|---|---|
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
1 #!/usr/bin/env Rscript | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
2 | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
3 # This is the implementation for the | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
4 # "MaxQuant Phosphopeptide Localization Probability Cutoff" | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
5 # Galaxy tool (mqppep_lclztn_filter) | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
6 # It is adapted from the MaxQuant Processing Script written by Larry Cheng. | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
7 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
8 # libraries | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
9 library(optparse) | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
10 library(data.table) | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
11 library(stringr) | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
12 library(ggplot2) | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
13 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
14 # title: "MaxQuant Processing Script" | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
15 # author: "Larry Cheng" | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
16 # date: "February 19, 2018" | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
17 # | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
18 # # MaxQuant Processing Script | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
19 # Takes MaxQuant Phospho (STY)sites.txt file as input | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
20 # and performs the following (in order): | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
21 # 1) Runs the Proteomics Quality Control software | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
22 # 2) Remove contaminant and reverse sequence rows | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
23 # 3) Filters rows based on localization probability | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
24 # 4) Extract the quantitative data | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
25 # 5) Sequences phosphopeptides | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
26 # 6) Merges multiply phosphorylated peptides | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
27 # 7) Filters out phosphopeptides based on enrichment | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
28 # The output file contains the phosphopeptide (first column) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
29 # and the quantitative values for each sample. | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
30 # | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
31 # ## Revision History | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
32 # Rev. 2022-02-10 :wrap for inclusion in Galaxy | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
33 # Rev. 2018-02-19 :break up analysis script into "MaxQuant Processing Script" | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
34 # and "Phosphopeptide Processing Script" | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
35 # Rev. 2017-12-12 :added PTXQC | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
36 # added additional plots and table outputs for quality control | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
37 # allowed for more than 2 samples to be grouped together | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
38 # (up to 26 (eg, 1A, 1B, 1C, etc)) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
39 # converted from .r to .rmd file to knit report | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
40 # for quality control | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
41 # Rev. 2016-09-11 :automated the FDR cutoffs; removed the option to data | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
42 # impute multiple times | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
43 # Rev. 2016-09-09 :added filter to eliminate contaminant & reverse sequence rows | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
44 # Rev. 2016-09-01 :moved the collapse step from after ANOVA filter to prior to | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
45 # preANOVA file output | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
46 # Rev. 2016-08-22 :use regexSampleNames <- "\\.(\\d + )[AB]$" | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
47 # so that it looks at the end of string | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
48 # Rev. 2016-08-05 :Removed vestigial line (ppeptides <- ....) | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
49 # Rev. 2016-07-03 :Removed row names from the write.table() output for | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
50 # ANOVA and PreANOVA | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
51 # Rev. 2016-06-25 :Set default Localization Probability cutoff to 0.75 | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
52 # Rev. 2016-06-23 :fixed a bug in filtering for pY enrichment by resetting | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
53 # the row numbers afterwards | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
54 # Rev. 2016-06-21 :test18 + standardized the regexpression in protocol | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
55 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
56 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
57 ### FUNCTION DECLARATIONS begin ---------------------------------------------- | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
58 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
59 # Read first line of file at filePath | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
60 # adapted from: https://stackoverflow.com/a/35761217/15509512 | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
61 read_first_line <- function(filepath) { | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
62 con <- file(filepath, "r") | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
63 line <- readLines(con, n = 1) | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
64 close(con) | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
65 return(line) | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
66 } | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
67 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
68 # Move columns to the end of dataframe | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
69 # - data: the dataframe | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
70 # - move: a vector of column names, each of which is an element of names(data) | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
71 movetolast <- function(data, move) { | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
72 data[c(setdiff(names(data), move), move)] | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
73 } | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
74 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
75 # Generate phosphopeptide and build list when applied | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
76 phosphopeptide_func <- function(df) { | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
77 # generate peptide sequence and list of phosphopositions | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
78 phosphoprobsequence <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
79 strsplit(as.character(df["Phospho (STY) Score diffs"]), "")[[1]] | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
80 output <- vector() | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
81 phosphopeptide <- "" | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
82 counter <- 0 # keep track of position in peptide | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
83 phosphopositions <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
84 vector() # keep track of phosphorylation positions in peptide | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
85 score_diff <- "" | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
86 for (chara in phosphoprobsequence) { | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
87 # build peptide sequence | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
88 if (!( | 
| 
23
 
7560a4e80a1e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 0c7ca054e77e042c8a584c9903073da064df7d8b
 
eschen42 
parents: 
7 
diff
changeset
 | 
89 chara == " " || | 
| 
 
7560a4e80a1e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 0c7ca054e77e042c8a584c9903073da064df7d8b
 
eschen42 
parents: 
7 
diff
changeset
 | 
90 chara == "(" || | 
| 
 
7560a4e80a1e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 0c7ca054e77e042c8a584c9903073da064df7d8b
 
eschen42 
parents: 
7 
diff
changeset
 | 
91 chara == ")" || | 
| 
 
7560a4e80a1e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 0c7ca054e77e042c8a584c9903073da064df7d8b
 
eschen42 
parents: 
7 
diff
changeset
 | 
92 chara == "." || | 
| 
 
7560a4e80a1e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 0c7ca054e77e042c8a584c9903073da064df7d8b
 
eschen42 
parents: 
7 
diff
changeset
 | 
93 chara == "-" || | 
| 
 
7560a4e80a1e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 0c7ca054e77e042c8a584c9903073da064df7d8b
 
eschen42 
parents: 
7 
diff
changeset
 | 
94 chara == "0" || | 
| 
 
7560a4e80a1e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 0c7ca054e77e042c8a584c9903073da064df7d8b
 
eschen42 
parents: 
7 
diff
changeset
 | 
95 chara == "1" || | 
| 
 
7560a4e80a1e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 0c7ca054e77e042c8a584c9903073da064df7d8b
 
eschen42 
parents: 
7 
diff
changeset
 | 
96 chara == "2" || | 
| 
 
7560a4e80a1e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 0c7ca054e77e042c8a584c9903073da064df7d8b
 
eschen42 
parents: 
7 
diff
changeset
 | 
97 chara == "3" || | 
| 
 
7560a4e80a1e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 0c7ca054e77e042c8a584c9903073da064df7d8b
 
eschen42 
parents: 
7 
diff
changeset
 | 
98 chara == "4" || | 
| 
 
7560a4e80a1e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 0c7ca054e77e042c8a584c9903073da064df7d8b
 
eschen42 
parents: 
7 
diff
changeset
 | 
99 chara == "5" || | 
| 
 
7560a4e80a1e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 0c7ca054e77e042c8a584c9903073da064df7d8b
 
eschen42 
parents: 
7 
diff
changeset
 | 
100 chara == "6" || | 
| 
 
7560a4e80a1e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 0c7ca054e77e042c8a584c9903073da064df7d8b
 
eschen42 
parents: 
7 
diff
changeset
 | 
101 chara == "7" || | 
| 
 
7560a4e80a1e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 0c7ca054e77e042c8a584c9903073da064df7d8b
 
eschen42 
parents: 
7 
diff
changeset
 | 
102 chara == "8" || | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
103 chara == "9") | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
104 ) { | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
105 phosphopeptide <- paste(phosphopeptide, chara, sep = "") | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
106 counter <- counter + 1 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
107 } | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
108 # generate score_diff | 
| 
23
 
7560a4e80a1e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 0c7ca054e77e042c8a584c9903073da064df7d8b
 
eschen42 
parents: 
7 
diff
changeset
 | 
109 if (chara == "-" || | 
| 
 
7560a4e80a1e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 0c7ca054e77e042c8a584c9903073da064df7d8b
 
eschen42 
parents: 
7 
diff
changeset
 | 
110 chara == "." || | 
| 
 
7560a4e80a1e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 0c7ca054e77e042c8a584c9903073da064df7d8b
 
eschen42 
parents: 
7 
diff
changeset
 | 
111 chara == "0" || | 
| 
 
7560a4e80a1e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 0c7ca054e77e042c8a584c9903073da064df7d8b
 
eschen42 
parents: 
7 
diff
changeset
 | 
112 chara == "1" || | 
| 
 
7560a4e80a1e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 0c7ca054e77e042c8a584c9903073da064df7d8b
 
eschen42 
parents: 
7 
diff
changeset
 | 
113 chara == "2" || | 
| 
 
7560a4e80a1e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 0c7ca054e77e042c8a584c9903073da064df7d8b
 
eschen42 
parents: 
7 
diff
changeset
 | 
114 chara == "3" || | 
| 
 
7560a4e80a1e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 0c7ca054e77e042c8a584c9903073da064df7d8b
 
eschen42 
parents: 
7 
diff
changeset
 | 
115 chara == "4" || | 
| 
 
7560a4e80a1e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 0c7ca054e77e042c8a584c9903073da064df7d8b
 
eschen42 
parents: 
7 
diff
changeset
 | 
116 chara == "5" || | 
| 
 
7560a4e80a1e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 0c7ca054e77e042c8a584c9903073da064df7d8b
 
eschen42 
parents: 
7 
diff
changeset
 | 
117 chara == "6" || | 
| 
 
7560a4e80a1e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 0c7ca054e77e042c8a584c9903073da064df7d8b
 
eschen42 
parents: 
7 
diff
changeset
 | 
118 chara == "7" || | 
| 
 
7560a4e80a1e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 0c7ca054e77e042c8a584c9903073da064df7d8b
 
eschen42 
parents: 
7 
diff
changeset
 | 
119 chara == "8" || | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
120 chara == "9" | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
121 ) { | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
122 score_diff <- paste(score_diff, chara, sep = "") | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
123 } | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
124 # evaluate score_diff | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
125 if (chara == ")") { | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
126 score_diff <- as.numeric(score_diff) | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
127 # only consider a phosphoresidue if score_diff > 0 | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
128 if (score_diff > 0) { | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
129 phosphopositions <- append(phosphopositions, counter) | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
130 } | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
131 score_diff <- "" | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
132 } | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
133 } | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
134 | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
135 # generate phosphopeptide sequence (ie, peptide sequence with "p"'s) | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
136 counter <- 1 | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
137 phosphoposition_correction1 <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
138 -1 # used to correct phosphosposition as "p"'s | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
139 # are inserted into the phosphopeptide string | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
140 phosphoposition_correction2 <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
141 0 # used to correct phosphosposition as "p"'s | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
142 # are inserted into the phosphopeptide string | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
143 while (counter <= length(phosphopositions)) { | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
144 phosphopeptide <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
145 paste( | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
146 substr( | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
147 phosphopeptide, | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
148 0, | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
149 phosphopositions[counter] + phosphoposition_correction1 | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
150 ), | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
151 "p", | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
152 substr( | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
153 phosphopeptide, | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
154 phosphopositions[counter] + phosphoposition_correction2, | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
155 nchar(phosphopeptide) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
156 ), | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
157 sep = "" | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
158 ) | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
159 counter <- counter + 1 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
160 phosphoposition_correction1 <- phosphoposition_correction1 + 1 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
161 phosphoposition_correction2 <- phosphoposition_correction2 + 1 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
162 } | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
163 # building phosphopeptide list | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
164 output <- append(output, phosphopeptide) | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
165 return(output) | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
166 } | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
167 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
168 ### FUNCTION DECLARATIONS end ------------------------------------------------ | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
169 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
170 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
171 ### EXTRACT ARGUMENTS begin -------------------------------------------------- | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
172 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
173 # parse options | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
174 option_list <- list( | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
175 make_option( | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
176 c("-i", "--input"), | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
177 action = "store", | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
178 type = "character", | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
179 help = "A MaxQuant Phospho (STY)Sites.txt" | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
180 ) | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
181 , | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
182 make_option( | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
183 c("-o", "--output"), | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
184 action = "store", | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
185 type = "character", | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
186 help = "path to output file" | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
187 ) | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
188 , | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
189 make_option( | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
190 c("-E", "--enrichGraph"), | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
191 action = "store", | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
192 type = "character", | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
193 help = "path to enrichment graph PDF" | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
194 ) | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
195 , | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
196 make_option( | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
197 c("-F", "--enrichGraph_svg"), | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
198 action = "store", | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
199 type = "character", | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
200 help = "path to enrichment graph SVG" | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
201 ) | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
202 , | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
203 make_option( | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
204 c("-L", "--locProbCutoffGraph"), | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
205 action = "store", | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
206 type = "character", | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
207 help = "path to location-proability cutoff graph PDF" | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
208 ) | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
209 , | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
210 make_option( | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
211 c("-M", "--locProbCutoffGraph_svg"), | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
212 action = "store", | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
213 type = "character", | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
214 help = "path to location-proability cutoff graph SVG" | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
215 ) | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
216 , | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
217 make_option( | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
218 c("-e", "--enriched"), | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
219 action = "store", | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
220 type = "character", | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
221 help = "pY or pST enriched samples (ie, 'Y' or 'ST')" | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
222 ) | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
223 , | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
224 make_option( | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
225 c("-p", "--phosphoCol"), | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
226 action = "store", | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
227 type = "character", | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
228 help = paste0("PERL-compatible regular expression matching", | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
229 " header of column having number of 'Phospho (STY)'") | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
230 ) | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
231 , | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
232 make_option( | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
233 c("-s", "--startCol"), | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
234 action = "store", | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
235 type = "character", | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
236 help = paste0("PERL-compatible regular expression matching", | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
237 " header of column having first sample intensity") | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
238 ) | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
239 , | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
240 make_option( | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
241 c("-I", "--intervalCol"), | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
242 action = "store", | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
243 type = "integer", | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
244 help = paste0("Column interval between the Intensities of samples", | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
245 " (eg, 1 if subsequent column; 2 if every other column") | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
246 ) | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
247 , | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
248 make_option( | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
249 c("-l", "--localProbCutoff"), | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
250 action = "store", | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
251 type = "double", | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
252 help = "Localization Probability Cutoff" | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
253 ) | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
254 , | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
255 make_option( | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
256 c("-f", "--collapse_func"), | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
257 action = "store", | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
258 type = "character", | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
259 help = paste0("merge identical phosphopeptides", | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
260 " by ('sum' or 'average') the intensities") | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
261 ) | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
262 , | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
263 make_option( | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
264 c("-r", "--filtered_data"), | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
265 action = "store", | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
266 type = "character", | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
267 help = "filtered_data.txt" | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
268 ) | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
269 , | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
270 make_option( | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
271 c("-q", "--quant_data"), | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
272 action = "store", | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
273 type = "character", | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
274 help = "quantData.txt" | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
275 ) | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
276 ) | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
277 args <- parse_args(OptionParser(option_list = option_list)) | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
278 # Check parameter values | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
279 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
280 ### EXTRACT ARGUMENTS end ---------------------------------------------------- | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
281 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
282 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
283 ### EXTRACT PARAMETERS from arguments begin ---------------------------------- | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
284 | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
285 if (!file.exists(args$input)) { | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
286 stop((paste("File", args$input, "does not exist"))) | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
287 } | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
288 | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
289 phospho_col_pattern <- "^Number of Phospho [(][STY][STY]*[)]$" | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
290 start_col_pattern <- "^Intensity[^_]" | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
291 phospho_col_pattern <- read_first_line(args$phosphoCol) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
292 start_col_pattern <- read_first_line(args$startCol) | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
293 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
294 sink(getConnection(2)) | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
295 | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
296 input_file_name <- args$input | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
297 filtered_filename <- args$filtered_data | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
298 quant_file_name <- args$quant_data | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
299 interval_col <- as.integer(args$intervalCol) | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
300 | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
301 first_line <- read_first_line(input_file_name) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
302 col_headers <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
303 unlist(strsplit( | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
304 x = first_line, | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
305 split = c("\t"), | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
306 fixed = TRUE | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
307 )) | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
308 sink(getConnection(2)) | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
309 sink() | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
310 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
311 | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
312 intensity_header_cols <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
313 grep(pattern = start_col_pattern, x = col_headers, perl = TRUE) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
314 if (length(intensity_header_cols) == 0) { | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
315 err_msg <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
316 paste("Found no intensity columns matching pattern:", | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
317 start_col_pattern) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
318 # Divert output to stderr | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
319 sink(getConnection(2)) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
320 print(err_msg) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
321 sink() | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
322 stop(err_msg) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
323 } | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
324 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
325 | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
326 phospho_col <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
327 grep(pattern = phospho_col_pattern, x = col_headers, perl = TRUE)[1] | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
328 if (is.na(phospho_col)) { | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
329 err_msg <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
330 paste("Found no 'number of phospho sites' columns matching pattern:", | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
331 phospho_col_pattern) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
332 # Divert output to stderr | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
333 sink(getConnection(2)) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
334 print(err_msg) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
335 sink() | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
336 stop(err_msg) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
337 } | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
338 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
339 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
340 i_count <- 0 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
341 this_column <- 1 | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
342 last_value <- intensity_header_cols[1] | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
343 intensity_cols <- c(last_value) | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
344 | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
345 while (length(intensity_header_cols) >= interval_col * i_count) { | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
346 i_count <- 1 + i_count | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
347 this_column <- interval_col + this_column | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
348 if (last_value + interval_col != intensity_header_cols[this_column]) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
349 break | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
350 last_value <- intensity_header_cols[this_column] | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
351 if (length(intensity_header_cols) < interval_col * i_count) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
352 break | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
353 intensity_cols <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
354 c(intensity_cols, intensity_header_cols[this_column]) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
355 } | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
356 | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
357 start_col <- intensity_cols[1] | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
358 num_samples <- i_count | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
359 | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
360 output_filename <- args$output | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
361 enrich_graph_filename <- args$enrichGraph | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
362 loc_prob_cutoff_graph_filename <- args$locProbCutoffGraph | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
363 enrich_graph_filename_svg <- args$enrichGraph_svg | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
364 loc_prob_cutoff_graph_fn_svg <- args$locProbCutoffGraph_svg | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
365 | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
366 local_prob_cutoff <- args$localProbCutoff | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
367 enriched <- args$enriched | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
368 collapse_fn <- args$collapse_func | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
369 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
370 ### EXTRACT PARAMETERS from arguments end ------------------------------------ | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
371 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
372 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
373 # Proteomics Quality Control for MaxQuant Results | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
374 # (Bielow C et al. J Proteome Res. 2016 PMID: 26653327) | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
375 # is run by the Galaxy MaxQuant wrapper and need not be invoked here. | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
376 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
377 | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
378 # Read & filter out contaminants, reverse sequences, & localization probability | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
379 # --- | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
380 full_data <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
381 read.table( | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
382 file = input_file_name, | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
383 sep = "\t", | 
| 
23
 
7560a4e80a1e
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 0c7ca054e77e042c8a584c9903073da064df7d8b
 
eschen42 
parents: 
7 
diff
changeset
 | 
384 header = TRUE, | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
385 quote = "" | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
386 ) | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
387 | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
388 # Filter out contaminant rows and reverse rows | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
389 filtered_data <- subset(full_data, !grepl("CON__", Proteins)) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
390 filtered_data <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
391 subset(filtered_data, !grepl("_MYCOPLASMA", Proteins)) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
392 filtered_data <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
393 subset(filtered_data, !grepl("CONTAMINANT_", Proteins)) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
394 filtered_data <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
395 subset(filtered_data, !grepl("REV__", Protein) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
396 ) # since REV__ rows are blank in the first column (Proteins) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
397 write.table( | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
398 filtered_data, | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
399 file = filtered_filename, | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
400 sep = "\t", | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
401 quote = FALSE, | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
402 col.names = TRUE, | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
403 row.names = FALSE | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
404 ) | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
405 # ... | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
406 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
407 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
408 # Filter out data with localization probability below localProbCutoff | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
409 # --- | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
410 # Data filtered by localization probability | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
411 loc_prob_filtered_data <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
412 filtered_data[ | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
413 filtered_data$Localization.prob >= local_prob_cutoff, | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
414 ] | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
415 # ... | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
416 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
417 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
418 # Localization probability -- visualize locprob cutoff | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
419 # --- | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
420 loc_prob_graph_data <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
421 data.frame( | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
422 group = c(paste(">", toString(local_prob_cutoff), sep = ""), | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
423 paste("<", toString(local_prob_cutoff), sep = "")), | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
424 value = c( | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
425 nrow(loc_prob_filtered_data) / nrow(filtered_data) * 100, | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
426 (nrow(filtered_data) - nrow(loc_prob_filtered_data)) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
427 / nrow(filtered_data) * 100 | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
428 ) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
429 ) | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
430 gigi <- | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
431 ggplot(loc_prob_graph_data, aes(x = "", y = value, fill = group)) + | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
432 geom_bar(width = 0.5, | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
433 stat = "identity", | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
434 color = "black") + | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
435 labs(x = NULL, | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
436 y = "percent", | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
437 title = "Phosphopeptides partitioned by localization-probability cutoff" | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
438 ) + | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
439 scale_fill_discrete(name = "phosphopeptide\nlocalization-\nprobability") + | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
440 theme_minimal() + | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
441 theme( | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
442 legend.position = "right", | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
443 legend.title = element_text(), | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
444 plot.title = element_text(hjust = 0.5), | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
445 plot.subtitle = element_text(hjust = 0.5), | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
446 plot.title.position = "plot" | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
447 ) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
448 pdf(loc_prob_cutoff_graph_filename) | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
449 print(gigi) | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
450 dev.off() | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
451 svg(loc_prob_cutoff_graph_fn_svg) | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
452 print(gigi) | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
453 dev.off() | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
454 # ... | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
455 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
456 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
457 # Extract quantitative values from filtered data | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
458 # --- | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
459 quant_data <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
460 loc_prob_filtered_data[, seq(from = start_col, | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
461 by = interval_col, | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
462 length.out = num_samples)] | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
463 # ... | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
464 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
465 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
466 # Generate Phosphopeptide Sequence | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
467 # for latest version of MaxQuant (Version 1.5.3.30) | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
468 # --- | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
469 metadata_df <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
470 data.frame( | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
471 loc_prob_filtered_data[, 1:8], | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
472 loc_prob_filtered_data[, phospho_col], | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
473 loc_prob_filtered_data[, phospho_col + 1], | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
474 loc_prob_filtered_data[, phospho_col + 2], | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
475 loc_prob_filtered_data[, phospho_col + 3], | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
476 loc_prob_filtered_data[, phospho_col + 4], | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
477 loc_prob_filtered_data[, phospho_col + 5], | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
478 loc_prob_filtered_data[, phospho_col + 6], | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
479 loc_prob_filtered_data[, phospho_col + 7], | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
480 quant_data | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
481 ) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
482 colnames(metadata_df) <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
483 c( | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
484 "Proteins", | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
485 "Positions within proteins", | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
486 "Leading proteins", | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
487 "Protein", | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
488 "Protein names", | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
489 "Gene names", | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
490 "Fasta headers", | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
491 "Localization prob", | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
492 "Number of Phospho (STY)", | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
493 "Amino Acid", | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
494 "Sequence window", | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
495 "Modification window", | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
496 "Peptide window coverage", | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
497 "Phospho (STY) Probabilities", | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
498 "Phospho (STY) Score diffs", | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
499 "Position in peptide", | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
500 colnames(quant_data) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
501 ) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
502 # 'phosphopeptide_func' generates a phosphopeptide sequence | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
503 # for each row of data. | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
504 # for the 'apply' function: MARGIN 1 == rows, 2 == columns, c(1, 2) = both | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
505 metadata_df$phosphopeptide <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
506 apply(X = metadata_df, MARGIN = 1, FUN = phosphopeptide_func) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
507 colnames(metadata_df)[1] <- "Phosphopeptide" | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
508 # Move the quant data columns to the right end of the data.frame | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
509 metadata_df <- movetolast(metadata_df, c(colnames(quant_data))) | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
510 # ... | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
511 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
512 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
513 # Write quantitative values for debugging purposes | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
514 # --- | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
515 quant_write <- cbind(metadata_df[, "Sequence window"], quant_data) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
516 colnames(quant_write)[1] <- "Sequence.Window" | 
| 
6
 
42daf70d4ed4
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 9dfb7e07a3673d7de4b0a1b7e6ce1b75a8a4f42b"
 
eschen42 
parents: 
5 
diff
changeset
 | 
517 write.table( | 
| 
 
42daf70d4ed4
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 9dfb7e07a3673d7de4b0a1b7e6ce1b75a8a4f42b"
 
eschen42 
parents: 
5 
diff
changeset
 | 
518 quant_write, | 
| 
 
42daf70d4ed4
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 9dfb7e07a3673d7de4b0a1b7e6ce1b75a8a4f42b"
 
eschen42 
parents: 
5 
diff
changeset
 | 
519 file = quant_file_name, | 
| 
 
42daf70d4ed4
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 9dfb7e07a3673d7de4b0a1b7e6ce1b75a8a4f42b"
 
eschen42 
parents: 
5 
diff
changeset
 | 
520 sep = "\t", | 
| 
 
42daf70d4ed4
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 9dfb7e07a3673d7de4b0a1b7e6ce1b75a8a4f42b"
 
eschen42 
parents: 
5 
diff
changeset
 | 
521 quote = FALSE, | 
| 
 
42daf70d4ed4
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 9dfb7e07a3673d7de4b0a1b7e6ce1b75a8a4f42b"
 
eschen42 
parents: 
5 
diff
changeset
 | 
522 col.names = TRUE, | 
| 
 
42daf70d4ed4
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 9dfb7e07a3673d7de4b0a1b7e6ce1b75a8a4f42b"
 
eschen42 
parents: 
5 
diff
changeset
 | 
523 row.names = FALSE | 
| 
 
42daf70d4ed4
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 9dfb7e07a3673d7de4b0a1b7e6ce1b75a8a4f42b"
 
eschen42 
parents: 
5 
diff
changeset
 | 
524 ) | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
525 # ... | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
526 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
527 | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
528 # Make new data frame containing only Phosphopeptides | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
529 # that are to be mapped to quant data (merge_df) | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
530 # --- | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
531 metadata_df <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
532 setDT(metadata_df, keep.rownames = TRUE) # row name will be used to map | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
533 merge_df <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
534 data.frame( | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
535 as.integer(metadata_df$rn), | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
536 metadata_df$phosphopeptide # row index to merge data frames | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
537 ) | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
538 colnames(merge_df) <- c("rn", "Phosphopeptide") | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
539 # ... | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
540 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
541 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
542 # Add Phosphopeptide column to quant columns for quality control checking | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
543 # --- | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
544 quant_data_qc <- as.data.frame(quant_data) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
545 setDT(quant_data_qc, keep.rownames = TRUE) # will use to match rowname to data | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
546 quant_data_qc$rn <- as.integer(quant_data_qc$rn) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
547 quant_data_qc <- merge(merge_df, quant_data_qc, by = "rn") | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
548 quant_data_qc$rn <- NULL # remove rn column | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
549 # ... | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
550 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
551 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
552 # Collapse multiphosphorylated peptides | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
553 # --- | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
554 quant_data_qc_collapsed <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
555 data.table(quant_data_qc, key = "Phosphopeptide") | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
556 quant_data_qc_collapsed <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
557 aggregate(. ~ Phosphopeptide, quant_data_qc, FUN = collapse_fn) | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
558 # ... | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
559 print("quant_data_qc_collapsed") | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
560 head(quant_data_qc_collapsed) | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
561 | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
562 # Compute (as string) % of phosphopeptides that are multiphosphorylated | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
563 # (for use in next step) | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
564 # --- | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
565 pct_multiphos <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
566 ( | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
567 nrow(quant_data_qc) - nrow(quant_data_qc_collapsed) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
568 ) / (2 * nrow(quant_data_qc)) | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
569 pct_multiphos <- sprintf("%0.1f%s", 100 * pct_multiphos, "%") | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
570 # ... | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
571 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
572 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
573 # Compute and visualize breakdown of pY, pS, and pT before enrichment filter | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
574 # --- | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
575 py_data <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
576 quant_data_qc_collapsed[ | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
577 str_detect(quant_data_qc_collapsed$Phosphopeptide, "pY"), | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
578 ] | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
579 ps_data <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
580 quant_data_qc_collapsed[ | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
581 str_detect(quant_data_qc_collapsed$Phosphopeptide, "pS"), | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
582 ] | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
583 pt_data <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
584 quant_data_qc_collapsed[ | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
585 str_detect(quant_data_qc_collapsed$Phosphopeptide, "pT"), | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
586 ] | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
587 | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
588 py_num <- nrow(py_data) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
589 ps_num <- nrow(ps_data) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
590 pt_num <- nrow(pt_data) | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
591 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
592 # Visualize enrichment | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
593 enrich_graph_data <- data.frame(group = c("pY", "pS", "pT"), | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
594 value = c(py_num, ps_num, pt_num)) | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
595 | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
596 enrich_graph_data <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
597 enrich_graph_data[ | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
598 enrich_graph_data$value > 0, | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
599 ] | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
600 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
601 # Plot pie chart with legend | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
602 # start: https://stackoverflow.com/a/62522478/15509512 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
603 # refine: https://www.statology.org/ggplot-pie-chart/ | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
604 # colors: https://colorbrewer2.org/#type=diverging&scheme=BrBG&n=8 | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
605 slices <- enrich_graph_data$value | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
606 phosphoresidue <- enrich_graph_data$group | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
607 pct <- round(100 * slices / sum(slices)) | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
608 lbls <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
609 paste(enrich_graph_data$group, "\n", pct, "%\n(", slices, ")", sep = "") | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
610 slc_ctr <- c() | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
611 run_tot <- 0 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
612 for (p in pct) { | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
613 slc_ctr <- c(slc_ctr, run_tot + p / 2.0) | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
614 run_tot <- run_tot + p | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
615 } | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
616 lbl_y <- 100 - slc_ctr | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
617 df <- | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
618 data.frame(slices, | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
619 pct, | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
620 lbls, | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
621 phosphoresidue = factor(phosphoresidue, levels = phosphoresidue)) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
622 gigi <- ggplot(df | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
623 , aes(x = 1, y = pct, fill = phosphoresidue)) + | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
624 geom_col(position = "stack", orientation = "x") + | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
625 geom_text(aes(x = 1, y = lbl_y, label = lbls), col = "black") + | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
626 coord_polar(theta = "y", direction = -1) + | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
627 labs( | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
628 x = NULL | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
629 , | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
630 y = NULL | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
631 , | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
632 title = "Percentages (and counts) of phosphosites, by type of residue" | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
633 , | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
634 caption = sprintf( | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
635 "Roughly %s of peptides have multiple phosphosites.", | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
636 pct_multiphos | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
637 ) | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
638 ) + | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
639 labs(x = NULL, y = NULL, fill = NULL) + | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
640 theme_classic() + | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
641 theme( | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
642 legend.position = "right" | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
643 , | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
644 axis.line = element_blank() | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
645 , | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
646 axis.text = element_blank() | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
647 , | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
648 axis.ticks = element_blank() | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
649 , | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
650 plot.title = element_text(hjust = 0.5) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
651 , | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
652 plot.subtitle = element_text(hjust = 0.5) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
653 , | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
654 plot.caption = element_text(hjust = 0.5) | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
655 , | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
656 plot.title.position = "plot" | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
657 ) + | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
658 scale_fill_manual(breaks = phosphoresidue, | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
659 values = c("#c7eae5", "#f6e8c3", "#dfc27d")) | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
660 | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
661 pdf(enrich_graph_filename) | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
662 print(gigi) | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
663 dev.off() | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
664 svg(enrich_graph_filename_svg) | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
665 print(gigi) | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
666 dev.off() | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
667 # ... | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
668 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
669 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
670 # Filter phosphopeptides by enrichment | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
671 # -- | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
672 if (enriched == "Y") { | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
673 quant_data_qc_enrichment <- quant_data_qc_collapsed[ | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
674 str_detect(quant_data_qc_collapsed$Phosphopeptide, "pY"), | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
675 ] | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
676 } else if (enriched == "ST") { | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
677 quant_data_qc_enrichment <- quant_data_qc_collapsed[ | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
678 str_detect(quant_data_qc_collapsed$Phosphopeptide, "pS") | | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
679 str_detect(quant_data_qc_collapsed$Phosphopeptide, "pT"), | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
680 ] | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
681 } else { | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
682 print("Error in enriched variable. Set to either 'Y' or 'ST'") | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
683 } | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
684 # ... | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
685 | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
686 print("quant_data_qc_enrichment") | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
687 head(quant_data_qc_enrichment) | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
688 | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
689 # Write phosphopeptides filtered by enrichment | 
| 
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
690 # -- | 
| 
5
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
691 write.table( | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
692 quant_data_qc_enrichment, | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
693 file = output_filename, | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
694 sep = "\t", | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
695 quote = FALSE, | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
696 row.names = FALSE | 
| 
 
b91809a18dbe
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit 92e8ab6fc27a1f02583742715d644bc96418fbdf"
 
eschen42 
parents: 
0 
diff
changeset
 | 
697 ) | 
| 
0
 
2c7e1b167736
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/mqppep commit bb6c941be50db4c0719efdeaa904d7cb7aa1d182"
 
eschen42 
parents:  
diff
changeset
 | 
698 # ... | 
