Tessera is a tool to visualise the impact of aneuploidy on embryo biopsies in pre-implantation genetic testing.
It includes a Shiny app that can be run from base R or RStudio.
install.packages("devtools")
devtools::install_github("bmskinner/tessera")
The Shiny app is available at reproduction.essex.ac.uk, and is also included in the package for you to run locally if you prefer:
library(tessera)
runTessera()
number of samples: the number of cells in a single biopsy
model all chromosomes: if selected, 23 chromosome pairs will be modelled separately, rather than a single assessment of whether the cell is aneuploid. This also reveals two new controls in the ui, detailed below.
If you want to run simulations computationally, you can create embryos using the Embryo function with desired parameters, and count the number of aneuploid cells in all possible biopsies with the takeAllBiopsies function:
e <- Embryo(n.cells = 200,
n.chr = 23,
prop.aneuploid = 0.2,
dispersal = 0.1,
concordance = 1)
takeAllBiopsies(e, chromosome = 1, biopsy.size = 5)
# Output is a vector of the number of aneuploid cells from all possible biopsies
Note that since prop.aneuploid and dispersal are vectors, you can give each chromosome a different value if you wish.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.