Description Usage Arguments Value Examples
View source: R/all_functions.R
Generate.modules normalizes the epistatic interaction coefficients and performs hierarchical clustering,SNP selection and parameter selection for module construction, and generates modules. It uses the WGCNA workflow modified for epistatic correlations and outputs the module components and analysis parameters.
1 2 |
correlations |
List of epistatic correlations and p-values generated by epistatic.correlation() |
values |
Character which can be "Pvalues" or "Coefficients" Indicating if P-values or Coefficients should be used for analysis. The recomended and defualt values is Coefficients |
power |
Powers to test for creating scale free network. Only change if the default values don't work |
n.snps |
Number of SNPs to select. SNPs are selected by connectivity, so 500 will select the top 500 most connected Snps. Default is to use all |
minClusterSize |
Minimum module (cluster) size. Default, is 50, but changing this may be recommended in case of sparse SNPs |
type |
Type of network to generate. Default is "unsigned", can be "signed" or "signed hybrid" |
threads |
Number of threads to use if parallelization is possible. |
Plots the network connectivity and the scale and SNP tree clustering with modules found. Returns a named list with all the data generated:
SNPs used in the analysis and their correlations
The connectivity matrix of the SNPs
The adjacency matrix of the SNPs
The dissimilarity TOM
The clustering object used for the genetree
The module numbers for each SNP, in order of the SNP matrix
The colors used in the modules for each SNP
The power estimate to generate a scale free network
1 | generate.modules(correlations)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.