Simulates dominant markers from an autopolyploid cross given the ploidy
level and/or expected segregation ratios and the proportions in each
dosage marker class. This is a wrapper to sim.autoMarkers
to
generate markers for ‘10’, ‘01’ and ‘11’ parents
sim.autoCross(ploidy.level, prop.par.type = structure(c(0.4, 0.4, 0.2),
names = c("p10", "p01", "p11")), n.markers = 500, n.individuals = 200,
dose.proportion, true.seg.ratios, no.dosage.classes,
marker.names = paste("M", 1:n.markers, sep = "."),
individual.names = paste("X", 1:n.individuals, sep = "."),
parent.names = c("P.1", "P.2"), seed)
the number of homologous chromosomes, either as numeric (single value) or as a character string containing type tetraploid, hexaploid, octoploid, …
the proportion of markers generated from each parental type '10', '01' and '11'. Note that the exact number will be randomly generated from the multinomial distribution (Default: c(0.4,0.4,0.2))
number of markers (Default: 500)
number of individuals in the cross (Default: 200)
the proportion of markers to be simulated in each dosage class. Note that the exact number will be randomly generated from the multinomial distribution NB: If a vector is supplied the dose.proportion is same for each parental type otherwise as list with components ‘p01’, ‘p10’ and ‘p11’
numeric vector containing segregation proportion to be supplied if you wish to overide automatic calculations using ploidy.level
numeric vector containing the number of dosage classes
labels for markers (Default: M.1 … M.n.markers)
labels for offspring (Default: … X.j … )
numeric vector of length 2 containing columns of marker matrix containing parental markers (Default: first 2 columns)
integer used to set seed for random number generator (RNG) which (if set) may be used to reproduce results
Returns an object of class simAutoCross
containing
matrix of 0,1 dominant markers with individuals as cols and rows as markers
true doses for each marker
names of true doses for each marker
object of class simAutoMarkers
for parental
type ‘10’
object of class simAutoMarkers
for parental
type ‘01’
object of class simAutoMarkers
for parental
type ‘11’
the number of homologous chromosomes as numeric (single value)
proportion of markers for each parental type ‘p01’, ‘p10’ and ‘p11’
number of markers (Default: 500)
number of individuals in the cross (Default: 200)
proportion in each dose -- if numeric vector is the same for ‘p01’, ‘p10’ and ‘p11’ else a list with components ‘p01’, ‘p10’ and ‘p11’
number in each dosage class
number in each parental type
time/date when data set generated
seed for random number generator seed which could be used to reproduce results (I hope)
matches arguments when function called
# NOT RUN {
p1 <- sim.autoCross(4, dose.proportion=c(0.7,0.3), n.markers=20, n.indiv=10)
print(p1)
p2 <- sim.autoCross(4, dose.proportion=list(p01=c(0.7,0.3),p10=c(0.7,0.3),p11=c(0.6,0.2,0.2)))
print(p2)
# }
Run the code above in your browser using DataLab