| purgePSM | R Documentation |
purgePSM removes peptide entries from PSM tables by quality
criteria. It further plots the distributions of the CV of log2FC by TMT
experiments and LC/MS series. The utility will have no effect against LFQ data
using MS1 peak area/intensity.
purgePSM(
dat_dir = NULL,
pt_cv = NULL,
max_cv = NULL,
adjSD = FALSE,
min_n = 1L,
rm_allna = FALSE,
theme = NULL,
...
)
dat_dir |
A character string to the working directory. The default is to match the value under the global environment. |
pt_cv |
Numeric between 0 and 1; the percentile of CV. Values above the
percentile threshold will be replaced with NA. The default is NULL with no
data trimming by CV percentile. The precedence in data purging is
|
max_cv |
Numeric; the cut-off in maximum CV. Values above the threshold will be replaced with NA. The default is NULL with no data trimming by max CV. |
adjSD |
Not currently used. If TRUE, adjust the standard deviation in relative to the width of ratio profiles. |
min_n |
Positive integer. When calling from |
rm_allna |
Logical; if TRUE, removes data rows that are exclusively NA
across ratio columns of |
theme |
A ggplot2 theme, i.e., theme_bw(), or a custom theme. At the NULL default, a system theme will be applied. |
... |
Additional parameters for plotting: |
The CV of peptides are calculated from contributing PSMs at the basis of per TMT experiment per series of LC/MS. Note that greater CV may be encountered for samples that are more different to reference material(s).
Metadata
load_expts for metadata preparation
and a reduced working example in data normalization
Data normalization
normPSM for extended examples in
PSM data normalization
PSM2Pep for extended examples in
PSM to peptide summarization
mergePep for extended
examples in peptide data merging
standPep for extended
examples in peptide data normalization
Pep2Prn for
extended examples in peptide to protein summarization
standPrn for extended examples in protein data normalization.
purgePSM and purgePep for extended examples
in data purging
pepHist and prnHist for
extended examples in histogram visualization.
extract_raws
and extract_psm_raws for extracting MS file names
Variable arguments of 'filter_...'
contain_str,
contain_chars_in, not_contain_str,
not_contain_chars_in, start_with_str,
end_with_str, start_with_chars_in and
ends_with_chars_in for data subsetting by character strings
Missing values
pepImp and prnImp for
missing value imputation
Informatics
pepSig and prnSig for
significance tests
pepVol and prnVol for
volcano plot visualization
prnGSPA for gene set enrichment
analysis by protein significance pVals
gspaMap for mapping
GSPA to volcano plot visualization
prnGSPAHM for heat map
and network visualization of GSPA results
prnGSVA for gene
set variance analysis
prnGSEA for data preparation for
online GSEA.
pepMDS and prnMDS for MDS
visualization
pepPCA and prnPCA for PCA
visualization
pepLDA and prnLDA for LDA
visualization
pepHM and prnHM for heat map
visualization
pepCorr_logFC, prnCorr_logFC,
pepCorr_logInt and prnCorr_logInt for
correlation plots
anal_prnTrend and
plot_prnTrend for trend analysis and visualization
anal_pepNMF, anal_prnNMF,
plot_pepNMFCon, plot_prnNMFCon,
plot_pepNMFCoef, plot_prnNMFCoef and
plot_metaNMF for NMF analysis and visualization
Custom databases
Uni2Entrez for lookups between
UniProt accessions and Entrez IDs
Ref2Entrez for lookups
among RefSeq accessions, gene names and Entrez IDs
prepGO
for
gene
ontology
prepMSig for
molecular
signatures
prepString and anal_prnString
for STRING-DB
Column keys in PSM, peptide and protein outputs
system.file("extdata", "psm_keys.txt", package = "proteoQ")
system.file("extdata", "peptide_keys.txt", package = "proteoQ")
system.file("extdata", "protein_keys.txt", package = "proteoQ")
# ===================================
# PSM cleanup by CV
# ===================================
## !!!require the brief working example in `?load_expts`
## additional examples
# visualization only
purgePSM()
# by percent CV
purgePSM(pt_cv = .95)
# by max CV
purgePSM(max_cv = .5)
# by `max_cv` then by `pt_cv`
purgePSM(max_cv = .5)
purgePSM(pt_cv = .95)
# actually 90% CV
purgePSM(pt_cv = .95)
purgePSM(pt_cv = .95)
## custom theme
purgePSM(dpi = 300, theme = ggplot2::theme_dark())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.