View source: R/motif_identification.R
find_bifan | R Documentation |
Find bifan motifs
find_bifan( edgelist = NULL, paralogs = NULL, lambda_vec = NULL, count_only = FALSE )
edgelist |
A 2-column data frame with regulators in column 1 and targets in column 2. It can be ignored if you give lambda motifs to parameter lambda_vec (recommended). |
paralogs |
A 2-column data frame with gene IDs for each paralog in the paralog pair. |
lambda_vec |
A character of lambda motifs as returned
by |
count_only |
Logical indicating whether the function should return only motif counts as a numeric scalar. If FALSE, it will return a character vector of motifs. Default: FALSE. |
A character vector with bifan motifs represented in the format regulator1, regulator2->target1, target2.
data(gma_grn) data(gma_paralogs) edgelist <- gma_grn[1:50000, 1:2] paralogs <- gma_paralogs[gma_paralogs$type == "WGD", 1:2] paralogs <- rbind( paralogs, data.frame(duplicate1 = "Glyma.01G177200", duplicate2 = "Glyma.08G116700") ) lambda_vec <- find_lambda(edgelist, paralogs) bifan <- find_bifan(paralogs = paralogs, lambda_vec = lambda_vec)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.