generate_single: Generate_single

Description Usage Arguments Value Examples

View source: R/generate_single.R

Description

This function simulates single cells from 3D structure.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
generate_single(
  data = str1,
  alpha_0,
  alpha_1,
  beta_l,
  beta_g,
  beta_m,
  alpha,
  n_single
)

Arguments

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.

alpha

Proportion of random true 0.

n_single

Number of single cells to be generated.

Value

A list of underline true count, SZ positions, and generated single cells.

Examples

1
2
3
4
5
6
#Load 3d structure generated from SIMBA package
load("simba_3strs.rdata")
Set random seed
set.seed(1234)
#Generate 100 random type1 single cells
simudat <- generate_single(data=str1, alpha_0=5.6,alpha_1=-1, beta_l=0.9,beta_g=0.9,beta_m=0.9, alpha=0.2, n_single=10) 

Queen0044/scHiCBayes documentation built on Dec. 18, 2021, 8:43 a.m.