if (FALSE) {
# CpG-null synthetic background: train on the genome, then forbid CG.
model <- gsynth.train(
list(expr = "gc_vt", breaks = seq(0, 1, 0.05)),
intervals = gintervals.all(),
iterator = 200
)
model_no_cg <- gsynth.forbid_kmer(model, "CG")
seqs <- gsynth.sample(model_no_cg,
output_format = "vector",
intervals = some_regions, seed = 42
)
# Motif-null background: forbid a 4-mer TF consensus substring.
model_no_ebox <- gsynth.forbid_kmer(model, "CACG")
}
Run the code above in your browser using DataLab