predict_peaks: Computes the predictions for the logistic regression

Description Usage Arguments Value Author(s)

Description

This calculates the predictions at each window, returning a probability of seeing a peak there

Usage

1
predict_peaks(kmers_win, params, peaks, win_size, chrom_loc, warp_ = NULL)

Arguments

kmers_win

is a vector of integers of any length representing kmers in a region

win_size

is the length of the sliding window we are using

chrom_loc

is the position of the first kmer along the chromosome - this avoids indexing errors when splitting up the data

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

A vector of probabilities

Author(s)

Tom Mayo t.mayo@ed.ac.uk


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