gdb.init_examples()
# Generate random sequences with uniform nucleotide probabilities
seqs <- gsynth.random(
intervals = gintervals(1, 0, 1000),
output_format = "vector",
seed = 42
)
# Generate GC-rich sequences (60% GC)
gc_rich <- gsynth.random(
intervals = gintervals(1, 0, 1000),
output_format = "vector",
nuc_probs = c(A = 0.2, C = 0.3, G = 0.3, T = 0.2),
seed = 42
)
# Generate AT-rich sequences
at_rich <- gsynth.random(
intervals = gintervals(1, 0, 1000),
output_format = "vector",
nuc_probs = c(A = 0.35, C = 0.15, G = 0.15, T = 0.35),
seed = 42
)
Run the code above in your browser using DataLab