Description Usage Arguments Value Author(s) Examples
This runs over the input calculating the integer value for every kmer that begins at that location. It returns the resutls as a vector. It acts as a wrapper to kmer_counter, and takes in DNAStringSet objects from the Biostrings package (available from Bioconductor)
1 | kmer_counter_wrapper(dna_input, chunk_size, alph, k)
|
dna_input |
The DNA sequence, as a DNAStringSet object (see Biostrings package) |
chunk_size |
The length of DNA to send in each chunk for parallel processing by kmer_counter |
alph |
The alphabet we are using. A dataframe created using build_alphabet() |
k |
The length of kmers we are assessing. Used as a check. |
An integer vector corresponding to the kmers at each starting point in the DNA
Tom Mayo t.mayo@ed.ac.uk
1 2 3 | data(dna_input)
alph <- kmermods::build_alphabet()
kmer_counter_wrapper(dna_input,100,alph,4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.