syntheticNucReadsFromDist(wp.num, wp.del, wp.var, fuz.num, fuz.var,
max.cover = 100, nuc.len = 147, len.var = 10, lin.len = 20,
read.len = 40, rnd.seed = NULL, distr = c("Uniform", "Normal",
"Student"), offset)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 forward reads of
the well-positioned nucleosomes. This parameter introduces some variation
in the starting positions.numeric, 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.numeric, the maximum variance of the
fuzzy nucleosomes. This variance
can be different than the one used for the well-positioned
nucleosome reads.numeric, the maximum coverage for one
nucleosome. The final coverage can have a higher value than max.cover
since reads from different nucleosomes can be overlapping. Default = 100.integer, the nucleosome length.
Default = 147.numeric, the variance of the distance
between a forward read and its paired reverse read. Default = 10.integer, the length of the DNA linker
DNA. Default = 20.integer, the length of each of the
paired-end reads. Default = 40.integer, or
NULL. If an 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."Uniform", "Normal" and
"Student". Default = "Uniform".integer, the number of bases used to
offset all nucleosomes and reads. This is done to ensure that all
nucleosome positions and read alignment are of positive values.list of class "syntheticNucReads" containing the
following elements:
callthe matched call.dataIPadata.framewith the chromosome name, the
starting and ending positions and the direction of all forward
and reverse reads for all well-positioned and fuzzy nucleosomes.
Paired-end reads are identified with an unique id.wpadata.framewith the positions of all the
well-positioned nucleosomes, as well as the number of paired-reads
associated to each one.fuzadata.framewith the positions of all the fuzzy
nucleosomes, as well as the number of paired-reads associated to each one.pairedadata.framewith the starting and ending
positions of the reads used to generate the paired-end reads. Paired-end
reads are identified with an unique id.## Generate a synthetic map with 20 well-positioned + 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.
## Because of the fixed seed, each time is going to be run, the results
## are going to be the seed.
res <- syntheticNucReadsFromDist(wp.num = 20, wp.del = 0, wp.var = 30,
fuz.num = 10, fuz.var = 40, rnd.seed = 15, distr = "Normal",
offset = 1000)Run the code above in your browser using DataLab