Description Usage Arguments Details Value Note Author(s) References See Also Examples
The Basic Kmer Descriptor
1 2 | extrDNAkmer(x, k = 2, upto = FALSE, normalize = FALSE,
reverse = FALSE)
|
x |
the input data, which should be a list or file type. |
k |
the k value of kmer, it should be an integer larger than 0. |
upto |
generate all the kmers: 1mer, 2mer, ..., kmer. The output feature vector is the combination of all these kmers. The default value of this parameter is False. |
normalize |
with this option, the final feature vector will be normalized based on the total occurrences of all kmers. Therefore, the elements in the feature vectors represent the frequencies of kmers. The default value of this parameter is False. |
reverse |
make reverse complements into a single feature, The default value of this parameter is False. if reverse is True, this method returns the reverse compliment kmer feature vector. |
This function calculates the basic kmer descriptor
A vector
if the parameters normalize and upto are both True, and then the feature vector is the combination of all these normalized kmers, e.g. the combination of normalized 1-kmer and normalized 2-kmer when k=2, normalize=True, upto=True.
Min-feng Zhu <wind2zhu@163.com>
Noble W S, Kuehn S, Thurman R, et al. Predicting the in vivo signature of human gene regulatory sequences. Bioinformatics, 2005, 21 Suppl 1, i338-343. Lee D, Karchin R, Beer M A. Discriminative prediction of mammalian enhancers from DNA sequence. Genome research. 2005, 21, 2167-2180.
See make_kmer_index
1 2 3 |
x = 'GACTGAACTGCACTTTGGTTTCATATTATTTGCTC'
extrDNAkmer(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.