README.md

Tessera

R version

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

install.packages("devtools")
devtools::install_github("bmskinner/tessera")

Run the web app

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()

The parameters

Compute values yourself

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.



bmskinner/tessera documentation built on Aug. 26, 2023, 6:46 p.m.