forked from statOmics/SGA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mzIDMsgfSwissprotExample.Rmd
65 lines (49 loc) · 1.31 KB
/
mzIDMsgfSwissprotExample.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
title: "Example: MSGF+ search on Swiss-Prot"
author:
- name: Lieven Clement
affiliation:
- Ghent University
output:
html_document:
code_download: true
theme: flatly
toc: true
toc_float: true
highlight: tango
number_sections: true
linkcolor: blue
urlcolor: blue
citecolor: blue
---
# Load Libraries
```{r}
library(TargetDecoy)
library(RCurl)
library(mzID)
```
# Download data in working directory
```{r}
download.file(
url = "https://raw.githubusercontent.com/statOmics/PDA22GTPB/data/identification/pyrococcusMSGF%2B.mzid",
destfile = "pyrococcusMSGF+.mzid"
)
```
# Load Data in R
```{r}
path2File <- "pyrococcusMSGF+.mzid"
msgf <- mzID(path2File)
```
# Launch the Shiny Gadget
Explore the results for search eninge scores to find correct names of search engine scores in the mzID.
```{r eval=FALSE}
evalTargetDecoys(msgf)
```
# Evaluate target decoy assumptions
```{r}
evalTargetDecoys(msgf,"isdecoy","ms-gf:evalue")
```
- The plots show that
the distribution of the MSGF+ PSM scores are nicely bimodal.
- The separation between good target PSM scores and bad target PSM scores is less pronounced than for peptide shaker. So it is beneficial to include the other engines with peptideshaker.
- We do not see deviations from the target decoy assumptions.