peptideProfilePlot: plot log2 intensities of all peptides for one gene in...

Description Usage Arguments Value Author(s) Examples

View source: R/DEqMS.R

Description

This function is to plot log2 intensities of all peptides for one gene in different samples.

Usage

1
peptideProfilePlot(dat, col=2, gene)

Arguments

dat

a data frame with peptide/psm log2 intensities

col

an integer indicates the column number where the gene protein id is. default is 2, asumming the gene/protein is in the second column

gene

an character indicates the gene name/id to be plotted

Value

return a ggplot2 object

Author(s)

Yafeng Zhu

Examples

1
2
3
4
5
6
7
8
9
library(ExperimentHub)
eh = ExperimentHub(localHub=TRUE)
query(eh, "DEqMS")
dat.psm = eh[["EH1663"]]

dat.psm.log = dat.psm
dat.psm.log[,3:12] =  log2(dat.psm[,3:12])
    
peptideProfilePlot(dat.psm.log,col=2,gene="TGFBR2")

yafeng/DEqMS documentation built on June 3, 2020, 8:23 p.m.