View source: R/single_network.R
single_network | R Documentation |
Construct network for single target gene
single_network(
matrix,
regulators,
target,
cross_validation = FALSE,
seed = 1,
penalty = "L0",
r_squared_threshold = 0,
n_folds = 5,
verbose = TRUE,
...
)
matrix |
An expression matrix. |
regulators |
The regulator genes for which to infer the regulatory network. |
target |
The target gene. |
cross_validation |
Logical value, default is |
seed |
The random seed for cross-validation, default is |
penalty |
The type of regularization, default is |
r_squared_threshold |
Threshold of |
n_folds |
The number of folds for cross-validation, default is |
verbose |
Logical value, default is |
... |
Parameters for other methods. |
A data frame of the single target gene network. The data frame has three columns:
regulator |
The regulator genes. |
target |
The target gene. |
weight |
The weight of the regulator gene on the target gene. |
data("example_matrix")
head(
single_network(
example_matrix,
regulators = colnames(example_matrix),
target = "g1"
)
)
head(
single_network(
example_matrix,
regulators = colnames(example_matrix),
target = "g1",
cross_validation = TRUE
)
)
single_network(
example_matrix,
regulators = c("g1", "g2", "g3"),
target = "g1"
)
single_network(
example_matrix,
regulators = c("g1", "g2"),
target = "g1"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.