kmer_counter: Represents the kmers present in the input with their integer...

Description Usage Arguments Value Author(s) Examples

Description

This runs over the input calculating the integer value for every kmer that begins at that location. It returns the resutls as a vector.

Usage

1
kmer_counter(dna, alph, k)

Arguments

dna

The DNA sequence, as a character

alph

The alphabet we are using. A dataframe created using build_alphabet()

k

The length of kmers we are assessing. Used as a check.

Value

An integer vector corresponding to the kmers at each starting point in the DNA

Author(s)

Tom Mayo t.mayo@ed.ac.uk

Examples

1
2
alph <- kmermods::build_alphabet()
kmer_counter('GATCATCAT', alph, 4)

TomMayo/kmermods documentation built on May 9, 2019, 4:53 p.m.