predictNextNucleotide: Predict next nucleotides in sequence

Description Usage Arguments Examples

View source: R/predict.R

Description

The output is a S4 class.

Usage

1
2
3
4
5
6
predictNextNucleotide(
  sequence,
  model,
  vocabulary = c("l", "a", "c", "g", "t"),
  verbose = F
)

Arguments

sequence

input sequence, length should be in sync with the model. If length exceeds input.shape of model then only the right side of the sequence will be used.

model

trained model from the function trainNetwork()

vocabulary

vocabulary of input sequence

verbose

TRUE/FALSE

Examples

1
2
3
4
5
## Not run: 
example.model <- keras::load_model_hdf5("example_model.hdf5")
sequence <- strrep("A", 100)
predictNextNucleotide(sequence, example.model)
## End(Not run)

hiddengenome/deepG documentation built on April 16, 2020, 1:38 a.m.