-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathannotPSM.Rd
79 lines (68 loc) · 3.2 KB
/
annotPSM.Rd
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/psmtable.R
\name{annotPSM}
\alias{annotPSM}
\title{Annotates PSM results}
\usage{
annotPSM(
dat_dir = NULL,
group_psm_by = "pep_seq",
group_pep_by = "prot_acc",
mc_psm_by = "peptide",
fasta = NULL,
expt_smry = "expt_smry.xlsx",
plot_rptr_int = TRUE,
plot_log2FC_cv = TRUE,
rm_allna = FALSE,
type_sd = "log2_R",
engine = "mz",
...
)
}
\arguments{
\item{dat_dir}{A character string to the working directory. The default is to
match the value under the global environment.}
\item{group_psm_by}{A character string specifying the method in PSM grouping.
At the \code{pep_seq} default, descriptive statistics will be calculated
based on the same \code{pep_seq} groups. At the \code{pep_seq_mod}
alternative, peptides with different variable modifications will be treated
as different species and descriptive statistics will be calculated based on
the same \code{pep_seq_mod} groups.}
\item{group_pep_by}{A character string specifying the method in peptide
grouping. At the \code{prot_acc} default, descriptive statistics will be
calculated based on the same \code{prot_acc} groups. At the \code{gene}
alternative, proteins with the same gene name but different accession
numbers will be treated as one group.}
\item{mc_psm_by}{A character string specifying the method in the median
centering of PSM \code{log2FC} across samples. At the \code{peptide}
default, the median description of PSMs (grouped by \code{pep_seq} or
\code{pep_seq_mod} according to \code{group_psm_by}) will be first
calculated and the offsets to zero (of logarithmic 2) will be used for the
centering of PSMs across samples. At \code{mc_psm_by = protein}, the median
description of PSMs (grouped by \code{prot_acc} or \code{gene} according to
\code{group_pep_by}) will be calculated and the corresponding offsets to
zero will be applied. At the \code{mc_psm_by = psm}, PSMs will be median
centered without grouping.}
\item{fasta}{Character string(s) to the name(s) of fasta file(s) with
prepended directory path. The \code{fasta} database(s) need to match those
used in MS/MS ion search. There is no default and users need to provide the
correct file path(s) and name(s).}
\item{expt_smry}{A character string to a \code{.xlsx} file containing the
metadata of TMT or LFQ experiments. The default is \code{expt_smry.xlsx}.}
\item{plot_rptr_int}{Logical; if TRUE, the distributions of reporter-ion
intensities will be plotted. The default is TRUE. The argument is also
applicable to the precursor intensity with MaxQuant LFQ.}
\item{plot_log2FC_cv}{Logical; if TRUE, the distributions of the CV of
peptide \code{log2FC} will be plotted. The default is TRUE.}
\item{rm_allna}{Logical; if TRUE, removes data rows that are exclusively NA
across ratio columns of \code{log2_R126} etc. The setting also applies to
\code{log2_R000} in LFQ.}
\item{type_sd}{Character string; the type of log2Ratios for SD calculations.
The value is one \code{log2_R}, \code{N_log2_R} or \code{Z_log2_R}.}
\item{engine}{The name of search engine.}
\item{...}{Not currently used.}
}
\description{
\code{annotPSM} adds fields of annotation to Mascot PSM tables after
\code{rmPSMHeaders}, \code{splitPSM_ma} and \code{cleanupPSM}.
}