powered by
Computes the n-gram frequencies vector for a given protein.
ngram(prot, k = 4)
a character string corresponding to the primary structure of the protein.
a positive integer, between 1 and 5, indicating the k-mer of the words to be counted.
A dataframe with two columns, the first one given the peptides and the second one the corresponding absolute frequency.
The one letter code for amino acids is used (capital).
Stuart et al. Bioinformatics 2002; 18:100-108.
ngraMatrix(), ffp(), svdgram()
# NOT RUN { ngram(bovids$Bos_taurus[1], k = 3) # }
Run the code above in your browser using DataLab