replaceChar: Replaces specific nucleotides in a sequence

Description Usage Arguments Examples

View source: R/predict.R

Description

Replaces specific nucleotides in a sequence

Usage

1
2
3
4
5
6
replaceChar(
  sequence,
  model,
  char = "X",
  vocabulary = c("l", "a", "c", "g", "t")
)

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()

char

character in the sequence that will be replaced

vocabulary

ordered vocabulary of input sequence

Examples

1
2
3
4
## Not run: 
example.model <- keras::load_model_hdf5("example_model.hdf5")
replaceChar(sequence = sequence, model = example.model)
## End(Not run)

hiddengenome/altum documentation built on April 22, 2020, 9:33 p.m.