calc_perturbation: Calculates average expression changes of all nodes except...

Description Usage Arguments Details Value Examples

View source: R/calc_perturbation.R

Description

Calculates average expression changes of all nodes except trigger and finds the perturbed node count for a given node.

Usage

1
calc_perturbation(input_graph, node_name, how = 1, cycle = 1, limit = 0)

Arguments

input_graph

the graph object that was processed with priming graph in previous step.

node_name

The node that is trigger for simulation.

how

The change of count of the given node in terms of fold change.

cycle

The iteration of simulation.

limit

The minimum fold change which can be taken into account for perturbation calculation on all nodes in terms of percentage.

Details

calc_perturbation calculates mean expression changes of elements except trigger after the change in the network in terms of percentage. It also calculates the number of nodes that have expression changes after the change occur in the network. The function determines the perturbation efficiency and number of perturbed nodes after given change with how, cycle and limit parameter.

Value

a tibble with two columns, the perturbation efficiency and number of perturbed nodes.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data('minsamp')

minsamp%>%
   priming_graph(competing_count = Competing_expression,
       miRNA_count = miRNA_expression)%>%
   calc_perturbation('Gene6', how= 3, cycle = 4)

 minsamp%>%
   priming_graph(competing_count = Competing_expression, miRNA_count = miRNA_expression,
       aff_factor = c(energy,seed_type), deg_factor = region)%>%
   calc_perturbation('Gene6',3, cycle = 4)

ceRNAnetsim documentation built on Nov. 28, 2020, 2 a.m.