restore: Restore a set of node/edge groups.

Description Usage Arguments Details Value See Also Examples

View source: R/utils.R

Description

Restore a set of node/edge groups in a network.

Usage

1
restore(network, groupSet)

Arguments

network

The network contains the node/edge groups

groupSet

The indexing number of node/edge groups in the network

Details

This function restores a set of node/edge groups in a network to its normal condition. And the parameter groupSet has same meaning as in the calSensitivity function.

Value

None. Error messages or information would be outputed to the screen.

See Also

perturb, generateGroups, generateGroup, calSensitivity, findAttractors

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
data(amrn)
# Generate a group of two nodes in the AMRN network
amrn <- generateGroup(amrn, nodes = "AG, SUP")
print(amrn$Group_1)

# Generate a specific initial-state for the AMRN network
state1 <- generateState(amrn, "1110011011")

# Find the original transition network (before making perturbations)
transNet <- findAttractors(amrn, state1)
print(transNet)

# Perturb the group with overexpression mutation
perturb(amrn, 1, "overexpression")

# Continuously perturb the group with "state-flip" mutation
perturb(amrn, 1, "state flip")

# Find the perturbed transition network
perturbed_transNet <- findAttractors(amrn, state1)
print(perturbed_transNet)

# Restore the group from previous mutations
restore(amrn, 1)

# Find again the original transition network, it should be same with the "transNet" network
origin_transNet <- findAttractors(amrn, state1)
print(origin_transNet)

csclab/RMut documentation built on May 14, 2019, 12:07 p.m.