generate_nulls | R Documentation |
Generate null distributions of motif counts for each motif type
generate_nulls( edgelist = NULL, paralogs = NULL, edgelist_ppi = NULL, n = 1000, bp_param = BiocParallel::SerialParam() )
edgelist |
A 2-column data frame with regulators in column 1 and targets in column 2. |
paralogs |
A 2-column data frame with gene IDs for each paralog in the paralog pair. |
edgelist_ppi |
A 2-column data frame with IDs of genes that encode each protein in the interacting pair. |
n |
Number of degree-preserving simulated networks to generate. Default: 1000. |
bp_param |
BiocParallel back-end to be used. Default: BiocParallel::SerialParam(). |
A list of numeric vectors named lambda
, delta
, V
,
PPI_V
, and bifan
, containing the null distribution of motif counts
for each motif type.
set.seed(123) data(gma_grn) data(gma_paralogs) data(gma_ppi) edgelist <- gma_grn[500:1000, 1:2] # reducing for test purposes paralogs <- gma_paralogs[gma_paralogs$type == "WGD", 1:2] edgelist_ppi <- gma_ppi n <- 2 # small n for demonstration purposes generate_nulls(edgelist, paralogs, edgelist_ppi, n)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.