Usage
readSimulation(B, alleleSet, q, totalCopy, mutRate = NULL, seqError = 0,
fixedN = FALSE, normCont = 0, aveReadCoverage = 30, countDistribution = NULL)
Arguments
B
the number of simulated data sets to make
alleleSet
a vector of expected allele frequencies, without contamination or sequencing error accounted for
q
integer. the number of expected allele frequencies???
totalCopy
integer. The total number of copies in the final stage, i.e. at the end of the event
mutRate
a number between 0 and 1. The mutation rate, defined as the number of mutations observed divided by number of nucleotides sequenced or examined
seqError
a number between 0 and 1 representing the sequencing error. The default value is 0, i.e. no sequencing error.
fixedN
logical. Should the number of mutations be fixed? By default set to FALSE. If set to TRUE, the expected number of mutations is used, i.e. mutRate*B
normCont
a number between 0 and 1 describing the amount of normal contamination present in the sample. The default value is 0, i.e. no normal contamination.
aveReadCoverage
average read coverage of an allele. The default value is 30 reads per allele.
countDistribution
optional. Provide an empirical distribution for read coverage. If given, the argument aveReadCoverage is ignored, and the mean of the empirical distribution is used. By default, set to NULL.