The presentation follows the narrative in the following html document:
Within that notebook are links to the Shiny Apps I have written to play with genotype likelihoods (as well as directions on how to use them). If you want to get the associated R project, you can download it from Box at:
or get it directly from GitHub:
And, only as a last resort, if you can’t get the Shiny Apps working in RStudio on your computer, you can visit their pages on shinyapps.io
:
We will continue with the narrative from the week before, but starting from estimating genotyping errors from departures from Hardy-Weinberg equilibrium:
After that short presentation, we will have a break-out room, hands-on practical session interlude:
whoa
library(whoa)
whoa
in the text search box and hit return.In the RStudio terminal from your home directory, do this:
cp -r instructor_materials/Eric_Anderson/whoa-practical-session ./
Then open the RStudio project inside there and follow the directions in: 001-whoa-first-steps.Rmd
.
When you need really accurate genotype calls on many individuals, approaches that yield high read depths at a smaller number of targets are useful. I will talk about our use of microhaplotypes, following these slides:
This can be run from using the ConGen 2020 remote desktop servers:
R
into the terminal and hit return (this starts an R session).library(microhaplot)
mvShinyHaplot("~/Shiny")
vignette("microhaplot-walkthrough")
The final line there should open a package vignette in a Firefox tab. This vignette provides instructions for the hands-on session. * Note that the vignette is not well rendered in Firefox on the Remote Desktop. You can get a better looking version straight from CRAN on your own Desktop: https://cran.r-project.org/web/packages/microhaplot/vignettes/microhaplot-walkthrough.html
runShinyHaplot("~/Shiny/microhaplot")
That will open a FireFox tab with the Shiny App. * From the dropdown box, choose the fish2.rds
data set.
Now, you can go through the vignette, starting from “About the Example Data”. This section provides a lot of description about the different panels/views of the microhaplotype data that are available. If you want to just get going and start clicking on stuff, you might try proceeding to the section Mission one: An overview of loci in the vignette.
To do this, go to https://github.com/ngthomas/microhaplot and follow the installation instructions.