GeneEffects: Getting GeneEffects matrices

View source: R/simulation_functions.R

GeneEffectsR Documentation

Getting GeneEffects matrices

Description

This function randomly generates the effect size of each evf on the dynamic expression parameters

Usage

GeneEffects(
  ngenes,
  nevf,
  randseed,
  prob,
  geffect_mean,
  geffect_sd,
  evf_res,
  is_in_module
)

Arguments

ngenes

number of genes

nevf

number of evfs

prob

the probability that the effect size is not 0

geffect_mean

the mean of the normal distribution where the non-zero effect sizes are dropped from

geffect_sd

the standard deviation of the normal distribution where the non-zero effect sizes are dropped from

evf_res

the EVFs generated for cells

is_in_module

a vector of length ngenes. 0 means the gene is not in any gene module. In case of non-zero values, genes with the same value in this vector are in the same module.

randomseed

(should produce same result if ngenes, nevf and randseed are all the same)

Value

a list of 3 matrices, each of dimension ngenes * nevf


YosefLab/SymSim documentation built on Sept. 30, 2024, 2:22 p.m.