extractDCasMat: Calculate dipeptide frequency matrix

Description Usage Arguments Value Examples

Description

This function calculates a dipeptide frequency (or count) matrix from a vector of sequences.

Usage

1
extractDCasMat(seqvec, count = TRUE)

Arguments

seqvec

A character vector of peptide/protein sequences.

count

Logical, default TRUE. If TRUE, returns total count of dipeptide. If FALSE, returns frequency.

Value

A matrix of dipeptide frequency/count, with its row being the first amino acid and its column being the second amino acid.

Examples

1
2
3
4
5
6
7
8
## Not run: 
# An artificial, very short example
seq=c("AHGTYIR", "VCSDWEQLPMK", "FGGNTIPCAWMR", "QTYILMNK", "ASTEMNDNK")
dipepmat=extractDCasMat(seq)
print(dipepmat) # Note that the presence of two "NK" motifs
lattice::levelplot(dipepmat, xlab="First", ylab="Second", col.regions=heat.colors)

## End(Not run)

ohgane/DigestionSpecificity documentation built on May 24, 2019, 11:55 a.m.