if (FALSE) {
# Resolve a redirect table before handing it to gsynth.sample:
redirects <- list(
list(from = c(0.725, 0.05), to = c(0.70, 0.08)),
list(from = c(0.75, 0.06), to = c(0.70, 0.08))
)
resolved <- gsynth.cell_merge(model, redirects)
print(resolved)
gsynth.sample(model, "out.fa",
output_format = "fasta",
cell_merge = redirects
)
}
Run the code above in your browser using DataLab