Description Author(s) Examples
Raw genotyping data for marker wsnp_Ku_rep_c103074_89904851
Alex Whan, Matthew Morell, Rohan Shah, Colin Cavanagh This dataset contains the raw genotyping data for marker wsnp_Ku_rep_c103074_89904851. This marker is interesting, because it can be mapped to both chromosome 1B (four alleles) and 1D (two alleles).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | data(eightParentSubsetMap)
data(wsnp_Ku_rep_c103074_89904851)
data(callFromMapExampleLocalisationStatistics)
called <- callFromMap(rawData = as.matrix(wsnp_Ku_rep_c103074_89904851), existingImputations =
eightParentSubsetMap, useOnlyExtraImputationPoints = TRUE, tDistributionPValue = 0.8,
thresholdChromosomes = 80, existingLocalisationStatistics = existingLocalisationStatistics)
library(ggplot2)
library(gridExtra)
plotData <- wsnp_Ku_rep_c103074_89904851
plotData$genotype1B <- factor(called$classificationsPerPosition$Chr1BLoc31$finals)
plotData$imputed1B <- factor(imputationData(eightParentSubsetMap)[, "Chr1BLoc31"])
plotData$genotype1D <- factor(called$classificationsPerPosition$Chr1DLoc16$finals)
plotData$imputed1D <- factor(imputationData(eightParentSubsetMap)[, "Chr1DLoc16"])
plotImputations1B <- ggplot(plotData, mapping = aes(x = theta, y = r, color = imputed1B)) +
geom_point() + theme_bw() + ggtitle("Imputed genotype, 1B") +
guides(color=guide_legend(title="IBD genotype"))
called1B <- ggplot(plotData, mapping = aes(x = theta, y = r, color = genotype1B)) +
geom_point() + theme_bw() + ggtitle("Called genotype, 1B") +
guides(color=guide_legend(title="Called cluster")) + scale_color_manual(values =
c("black", RColorBrewer::brewer.pal(n = 4, name = "Set1")))
plotImputations1D <- ggplot(plotData, mapping = aes(x = theta, y = r, color = imputed1D)) +
geom_point() + theme_bw() + ggtitle("Imputed genotype, 1D") +
guides(color=guide_legend(title="IBD genotype"))
called1D <- ggplot(plotData, mapping = aes(x = theta, y = r, color = genotype1D)) +
geom_point() + theme_bw() + ggtitle("Called genotype, 1D") +
guides(color=guide_legend(title="Called cluster")) +
scale_color_manual(values = c("black",RColorBrewer::brewer.pal(n=3,name = "Set1")[1:2]))
grid.arrange(plotImputations1B, plotImputations1D, called1B, called1D)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.