Description Usage Arguments Value Examples
This function calculates a dipeptide frequency (or count) matrix from a vector of sequences.
1 | extractDCasMat(seqvec, count = TRUE)
|
seqvec |
A character vector of peptide/protein sequences. |
count |
Logical, default TRUE. If TRUE, returns total count of dipeptide. If FALSE, returns frequency. |
A matrix of dipeptide frequency/count, with its row being the first amino acid and its column being the second amino acid.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.