knitr::opts_chunk$set(echo = TRUE)
load("~/rnaGinesis/data/muraro.RData")
mu = makeCentroid(data) # Subsets mu to contain gene expression profiles for 3 most abundant cell types mu = subsetCentroid(data, mu, 3)
# Creates H with 3 cell types, Samplesize = 50 Samplesize = 50 d.params = c("alpha" = 0.5, "beta" = 0.2, "duct" = 0.3) trueH = sim_H(S = Samplesize, d.params = d.params)
total = 500 # Number of cells want to sample out of population of all cells in data result = make_W(data, trueH, total) ex = result[[1]] trueW = result[[2]]
Dataset_ResampledSingleCell = list() Dataset_ResampledSingleCell$ex = ex Dataset_ResampledSingleCell$trueW = trueW Dataset_ResampledSingleCell$trueH = trueH Dataset_ResampledSingleCell$unmixed = mu
save(Dataset_ResampledSingleCell, file = "~/rnaGinesis/data/Dataset_ResampledSingleCell.RData")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.