createFrequencyMat: Create frequency matrix

View source: R/getMotifFreq.R

createFrequencyMatR Documentation

Create frequency matrix

Description

Create frequency matrix

Usage

createFrequencyMat(substrates.seq)

Arguments

substrates.seq

A substrate sequence

Value

A frequency matrix of amino acid from substrates.seq.

Examples


data("phospho_L6_ratio_pe")

# We will create a frequency matrix of Tfg S198 phosphosite.
idx = which(grepl("TFG\\;S198\\;", rownames(phospho.L6.ratio.pe)))
substrate.seq = Sequence(phospho.L6.ratio.pe)[idx]
freq.mat = createFrequencyMat(substrate.seq)


PYangLab/PhosR documentation built on Nov. 1, 2024, 1:47 p.m.