covplot: Make a coverage plot for all the peptides retrieved for a...

Description Usage Arguments Value Examples

View source: R/unused/covplot.R

Description

Make a coverage plot for all the peptides retrieved for a single protein.

Usage

1
2
covplot(input_data, elementid, groupid = "", group_name = "",
  sort_column = "Start")

Arguments

input_data

Data frame to which the coverage columns will be appended.

elementid

Data frame column (factor) corresponding to the elements for each of which a row of the final plot will be produced.

groupid

Data frame column (factor) corresponding to the names of the groups of elements in the data.

group_name

(Optional) If specified, make plots from only those rows whose ID matched this argument.

sort_column

(Optional) If specified, rows in the final plot will be sorted according to this (numeric) column.

Value

ggplot item to be plotted using cowplot::ggdraw().

Examples

1
2
3
4
5
6
library(purrr)
test_data <- read.csv(system.file('extdata/msdata.csv',package='pepliner'))
sequences <- system.file('extdata/proteome.fasta',package='pepliner')
cov_columns(test_data,sequences,groupid='ID',elementid='Peptide') %>%
covplot('Peptide','ID','sp|P55036|PSMD4_HUMAN') %>%
cowplot::ggdraw()

marcottelab/pepliner documentation built on Feb. 6, 2018, noon