Collect vertices and edges from effect data (SingleEffect, TwoEffect, ThreeEffect, FourEffect, FiveEffect) for network construction.

1 2 | ```
NetworkData(SingleEffect, TwoEffect, ThreeEffect,
FourEffect, FiveEffect, RatioThreshold, NumberThreshold)
``` |

`SingleEffect` |
matrix. main Effects of SNPs. There are 2 columns. The first column saves all SNPs, and the second column saves their corresponding effects. Ddescending save according to their effects. |

`TwoEffect` |
matrix. interaction Effects of two-SNP combinations. There are three columns. The first two columns save all two-SNP combinations, and the last column saves their corresponding effects. Descending save according to their interaction effects. |

`ThreeEffect` |
matrix. interaction Effects of three-SNP combinations. There are four columns. The first three columns save all three-SNP combinations, and the last column saves their corresponding effects. Descending save according to their interaction effects. |

`FourEffect` |
matrix. interaction Effects of four-SNP combinations. There are five columns. The first four columns save all four-SNP combinations, and the last column saves their corresponding effects. Descending save according to their interaction effects. |

`FiveEffect` |
matrix. interaction Effects of five-SNP combinations. There are six columns. The first five columns save all five-SNP combinations, and the last column saves their corresponding effects. Descending save according to their interaction effects. |

`RatioThreshold` |
character. It controls the numbers of detected SNPs or SNP-combinations with the help of NumberThreshold. The length of RatioThreshold is equal to MaxOrder. Each element is a decimal in [0,1]. |

`NumberThreshold` |
character. It controls the numbers of detected SNPs or SNP-combinations with the help of RatioThreshold. The length of NumberThreshold is equal to MaxOrder. Each element is an integer. |

Parameters 'RatioThreshold' and 'NumberThreshold' are used together to control the numbers of vertices and edges. That is, min(NumberThreshold[1],RatioThreshold[1]*nrow(SingleEffect)), min(NumberThreshold[2],RatioThreshold[2]*nrow(TwoEffect)), min(NumberThreshold[3],RatioThreshold[3]*nrow(ThreeEffect)), min(NumberThreshold[4],RatioThreshold[4]*nrow(FourEffect)), min(NumberThreshold[5],RatioThreshold[5]*nrow(FiveEffect)) Using above settings, the numbers of virtual vertexes denoting high order epistatic interactions in the graph are clear. Nevertheless, the number of Real Vertexes (i.e., the number of SNPs) is unclear, which is obviously more than the above set, since some of them must be included to connect virtual vertexes.

`Vertices` |
matrix. Vertices of constructed graphs, including real vertices and virtual vertices. The first column represents SNP ID or SNP-combination ID. The second column represents effect value. The third column represents the class of vertices, "1" -> real vertice, others -> virtual vertice. |

`Edges` |
matrix. Edges of constructed graphs. |

Junliang Shang shangjunliang110@163.com

None

1 2 3 4 5 6 7 8 9 10 11 | ```
data(SingleEffect)
data(TwoEffect)
data(ThreeEffect)
data(FourEffect)
data(FiveEffect)
RatioThreshold <- c(1,1,1,1,1)
NumberThreshold <- c(10,10,10,10,10)
Net <- NetworkData(SingleEffect, TwoEffect, ThreeEffect, FourEffect,
FiveEffect, RatioThreshold, NumberThreshold)
Vertices <- Net$Vertices
Edges <- Net$Edges
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.