syntheticNucMapFromDist(wp.num, wp.del, wp.var, fuz.num, fuz.var,
max.cover = 100, nuc.len = 147, len.var = 10, lin.len = 20,
rnd.seed = NULL, as.ratio = FALSE, distr = c("Uniform", "Normal",
"Student"))integer, the number of well-positioned
(non-overlapping) nucleosomes.integer, the number of well-positioned
nucleosomes to remove to create uncovered regions.integer, the variance associated with
the distribution used to assign the start position to the sequences of the
well-positioned nucleosomes. This parameter introduces some variation in
the starting positions.integer, the number of
fuzzy nucleosomes. Those nucleosomes are
distributed accordingly to an uniform distribution all over the region.
Those nucleosomes can overlap other well-positioned or fuzzy nucleosomes.integer, the variance associated with
the distribution used to assign the start position to the sequences of the
fuzzy nucleosomes. This parameter introduces some variation in
the starting positions.integer, the maximum coverage for
one nucleosome. The final coverage
can have a higher value than max.cover since sequences from
different nucleosomes can be overlapping. Default = 100.numeric, the nucleosome length.
Default = 147.integer, the variance associated to
the normal distribution used to add some variance to the length of each
sequence. Default = 10.integer, the length of
the DNA linker. Default = 20.integer, or
NULL. If a integer is given, the value is used to set the seed
of the random number generator. By fixing the seed, the generated results
can be reproduced. Default = NULL.logical, if TRUE, a synthetic naked DNA
control map is created and the ratio between it and the nucleosome coverage
are calculated. It can be used to simulate hybridization ratio data, like
the one in Tiling Arrays. Both control map and obtained ratio are
returned. Default = FALSE."Uniform", "Normal" and
"Student". Default = "Uniform".list of class "syntheticNucMap" containing the
following elements:
callthe matched call.wp.startsavectorofinteger, the start
positions of all well-positioned nucleosome regions. The central
position of the nucleosome is calculated as wp.starts + round(nuc.len/2).wp.nreadsavectorofinteger, the number of
sequences associated to each well-positioned nucleosome.wp.readsaIRangescontaining the well-positioned
nucleosome sequences.fuz.startsavectorofinteger, the
start position of all the fuzzy nucleosomes.fuz.nreadsavectorofinteger, the number
of sequences associated to each fuzzy nucleosome.fuz.readsaIRangescontaining the fuzzy nucleosome
sequences.syn.readsaIRangescontaining all the synthetic
nucleosome sequences (from both fuzzy and well-positioned nucleosomes).nuc.lenanumericthe nucleosome length.as.ratio=TRUE:
ctr.readsaIRangescontaining the naked DNA
(control) sequences.syn.ratioaRlecontaining the calculated ratio
between the nucleosome coverage and the control coverage.## Generate a synthetic map with 20 well-positioned nucleosomes and 10 fuzzy
## nucleosomes using a Normal distribution with a variance of 30 for the
## well-positioned nucleosomes, a variance of 40 for the fuzzy nucleosomes
## and a seed of 15.
syntheticNucMapFromDist(wp.num = 20, wp.del = 0, wp.var = 30,
fuz.num = 10, fuz.var = 40, rnd.seed = 15,
distr = "Normal")
## Same output but with ratio
syntheticNucMapFromDist(wp.num = 20, wp.del = 0, wp.var = 30,
fuz.num = 10, fuz.var = 40,
rnd.seed = 15, as.ratio = TRUE, distr = "Normal")Run the code above in your browser using DataLab