createFrequencyMat: Create frequency matrix

Description Usage Arguments Value Examples

View source: R/getMotifFreq.R

Description

Create frequency matrix

Usage

1
createFrequencyMat(substrates.seq)

Arguments

substrates.seq

A substrate sequence

Value

A frequency matrix of amino acid from substrates.seq.

Examples

1
2
3
4
5
6
7
data("phospho_L6_ratio")

# We will create a frequency matrix of Tfg S198 phosphosite.
rownames(phospho.L6.ratio)[1]
substrate.seq = unlist(lapply(strsplit(rownames(phospho.L6.ratio)[1],
                                    split = "~"), function(i) i[4]))
freq.mat = createFrequencyMat(substrate.seq)

PengyiYang/PhosR documentation built on June 21, 2020, 8:37 a.m.