calculate_offsets: Calculate offset

Description Usage Arguments Value Author(s) See Also

Description

Calculate the offset (bias) as the mean activation over a sampling of the data.

Usage

1
2
calculate_offsets(filter.motifs, motif.pos = NULL, motif.maxlen,
  onehot_array, batchsize = 256)

Arguments

filter.motifs

4-D array of IGMs or PWMs.

motif.pos

Vector of indices to extract motifs. If NULL all motifs will be selected.

motif.maxlen

Maximum motif length, found via find_max_length.

onehot_array

One-hot encoded training data to sample a batch from.

batchsize

Size of batch to sample.

Value

Vector of offsets of length equal to the fourth dimension of the input array of IGMs/PWMs.

Author(s)

Matthew Ploenzke, ploenzke@g.harvard.edu

See Also

find_max_length


mPloenzke/learnMotifs documentation built on May 27, 2019, 11:55 a.m.