kmer_dot_prod: Computes the dot product of the parameters with the kmer...

Description Usage Arguments Value Author(s) Examples

Description

Taking in an integer representing the kmer at that site, it returns the integer for the (k-1)mer starting at the same place

Usage

1
kmer_dot_prod(kmers, paras, warp = NA)

Arguments

kmers

is a vector of integers of any length representing kmers over a window

paras

is a vector of length equal to the total number of kmers

warp

is a vector of length as long as the kmer vector, with the multiplicative weights for how much to warp the entry

Value

An double, representing the dot product of the parameters with what would usually be the vector of kmer abundances (warped or not)

Author(s)

Tom Mayo t.mayo@ed.ac.uk

Examples

1
2
3
kmers <- c(0,7,89,45,75,65,22,12)
paras <- rep(1,100)
kmer_dot_prod(kmers,paras)

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