plot_consensus {CEMiTool} | R Documentation |
Plot graph of consensus modules
plot_consensus(cem_overlap_df, comm_overlap_df, study_num, num_sd_cut = 2)
cem_overlap_df |
Output |
comm_overlap_df |
Output |
study_num |
Minimum number of studies an edge must be present in for it to be included |
num_sd_cut |
Number of standard deviations an edge's mean must be above in order to be included in the final plot (Default: 2) |
A plot containing the consensus modules of the studies
## Not run: # Run the cemitool function twice on expr dataset. Each time, one sample will be removed data(expr0) data(sample_annot) set.seed(10) dset1 <- expr0[,-sample(1:ncol(expr0), 1)] dset2 <- expr0[,-sample(1:ncol(expr0), 1)] cem1 <- cemitool(dset1, sample_annot, plot=FALSE) cem2 <- cemitool(dset2, sample_annot, plot=FALSE) cem_overlap_df <- cem_overlap(list(cem1, cem2)) comm_overlap_df <- overlap_community(cem_overlap_df) plot_consensus(cem_overlap_df, comm_overlap_df, study_num=2) ## End(Not run)