Description Usage Arguments Details Value References See Also Examples
Computes the n-gram frequencies dataframe for the protein and species provides.
1 | ngraMatrix(data, k = 4, silent = FALSE)
|
data |
a dataframe with as many columns as species and one row per orthologous protein. The rows and columns must be named accordingly. |
k |
a positive integer, between 1 and 5, indicating the k-mer of the words to be counted. |
silent |
logical, set to FALSE to avoid loneliness. |
The argument prot can be obtained using orth() and orth.seq().
A list with two dataframes. The first one with nsp * npr columns (nsp: number of species, npr: number of proteins per species) and npe rows (npe: number of peptides, 20 for n = 1, 400 for n = 2, 8000 for n = 3 and 160000 for n = 4). The entries of the dataframe are the number of times that the indicated peptide has been counted in the given protein. Orthologous proteins are in consecutive columns, thus the first nsp columns are the orthologous of protein 1 and so on. The second dataframe contains the Species Vector Sums (each vector describes one species).
Stuart et al. Bioinformatics 2002; 18:100-108.
ngram(), svdgram()
1 | ngraMatrix(bovids[,1:3], k = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.