ModuleTrait: Enhanced Module-Trait Relationships Plot after FastWGCNA...

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/BI_ModuleTrait.R

Description

After FastWGCNA, you can input the result into ModuleTrait function,and get a more powerful Module-Trait relationships visualization.

Usage

1
2
3
ModuleTrait(object, design, variable, corType = c("pearson", "bicor")[1],
  report = F, height = 10, width = 8, save.path = "WGCNA",
  names = "love")

Arguments

object

the result of FastWGCNA.

design

a trait-design object

variable

the variables you want to show in Module-Trait relationships plot.

corType

one of "pearson" and "bicor".Default is pearson

report

whether do a plot report

height, width

the size of saved plot

save.path

the space of the save file.Default is "WGCNA"

names

part of saved files name

Details

trait-design object means the design should convert to a numeric one.A good method is to use GetWGCNATrait.

Value

a Module-Trait relationships plot

Author(s)

Weibin Huang<654751191@qq.com>

See Also

GetWGCNATrait

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## This is a simulative process and NOT RUN
library(lucky)
object = wgcna;rm(wgcna);gc()
design = rna.design.tumor
variable = c("age","his1","gender","N.status","T.status")
save.path = "WGCNA"
names = "love"
corType = "pearson"
height = 10;width = 8
result_MT <- ModuleTrait(object,
                         design,
                         variable,
                         corType = "pearson",
                         report=T,
                         height = 10,width = 8,
                         save.path = "WGCNA",
                         names = "love")

shijianasdf/BasicBioinformaticsAnalysisFromZhongShan documentation built on Jan. 3, 2020, 10:08 p.m.