View source: R/scHiC_simulate.R
scHiC_simulate | R Documentation |
This function simulates single cells from 3D structure.
scHiC_simulate( data = str1, alpha_0, alpha_1, beta_l, beta_g, beta_m, gamma, eta, n_single )
data |
3D coordinates of single cell. |
alpha_0 |
Parameter that controls sequence depth of data. |
alpha_1 |
Parameter that controls sequence depth of data. |
beta_l |
Parameter that controls effect size of covariate. |
beta_g |
Parameter that controls effect size of covariate. |
beta_m |
Parameter that controls effect size of covariate. |
gamma |
Quantile that is used as the threshold. |
eta |
Percent of structural zeros that are set to be common structural zeros among all single-cells. |
n_single |
Number of single cells to be generated. |
A list of underline true count, SZ positions, and generated single cells.
#Load 3d structure generated from SIMBA package load("simba_3strs.rdata") Set random seed set.seed(1234) #Generate 100 random type1 single cells simudat <- scHiC_simulate(data=str1, alpha_0=5.6,alpha_1=-1, beta_l=0.9,beta_g=0.9, beta_m=0.9,gamma=0.1,eta=0.8, n_single=10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.