Description Usage Arguments Examples
This function generates a genome around significant parental alleles.
1 | generate_genodata(alleles, half_chr_width = 100, teta = 0.05)
|
alleles |
A vector that describes significant parental alleles (those that will control your phenotype |
half_chr_width |
An integer that defines the length of the (half (chromosome size minus 1)). |
teta |
An interger that specify recombination factor to use. |
1 2 3 4 5 6 7 8 9 10 | alleles = sample(c("BY","RM"), 25, replace=TRUE)
print(alleles)
genodata = generate_genodata(alleles, half_chr_width=50)
print(genodata)
tetas = compute_teta(genodata)
# matlab::imagesc(t(as.matrix(genodata)), xlab="markers",
# ylab="segrgants", main="Parental origin of segregant genomes")
plot(density(tetas), main=paste("Recombination Fraction Distribution"),
xlab=paste("mean(teta)=", signif(mean(tetas),3), sep=""))
abline(v=mean(tetas), lty=2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.