Matrix_parametrization.f: Change matrix values for heatmap creation

Description Usage Arguments Value See Also Examples

Description

Change knockout and overexpression matrices values to different numbers for proper creation of heatmaps.

Usage

1
Matrix_parametrization.f(mat,sensitivity=0.2)

Arguments

mat

Output matrix of the perturbation analysis results.

sensitivity

Percentage of change of the attractors (perturbed situation vs baseline attractor) from which the cells of the heatmap start to be colored. By default, the function colors the heatmaps when changes in the attractor states are increased/decreased by 0.2 (sensitivity=0.2).

Value

A matrix ready to plot a heatmap to visualize the individual values contained in the matrix returned by KO_matrix.f and OE_matrix.f as colors.

See Also

See Also KO_matrix.f OE_matrix.f Create_heatmap

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#Load the example network:
## Not run: 
 data(Example_network)
 #Read the Boolean functions:
 BN <- read.Boolean.functions(Lines=BN$BooleanFunctions)
 #Perturbation analysis: knockouts
 KO.m<-KO_matrix.f(BN,time.steps=999,repetitions=24,asynchronous=TRUE)
 KO2<-Matrix_parametrization.f(KO.m,sensitivity=0.2)
 print(KO2)
 #Create a heatmap of the results:
 Create_heatmap(KO.m)
 
## End(Not run)

SPIDDOR/SPIDDOR documentation built on May 9, 2019, 11:42 a.m.