美文网首页试读生信
MEGENA结果解读

MEGENA结果解读

作者: 小潤澤 | 来源:发表于2021-11-14 11:19 被阅读0次

前言

在之前的文章MEGENA原理已经介绍了MEGENA的基本原理,那么基于示例数据本文来解读一下MEGENA的结果

示例数据

rm(list = ls()) # rm R working space

library(MEGENA)

# input parameters
n.cores <- 1; # number of cores/threads to call for PCP
doPar <-F; # do we want to parallelize?
method = "pearson" # method for correlation. either pearson or spearman. 
FDR.cutoff = 0.05 # FDR threshold to define significant correlations upon shuffling samples. 
module.pval = 0.05 # module significance p-value. Recommended is 0.05. 
hub.pval = 0.05 # connectivity significance p-value based random tetrahedral networks
cor.perm = 10; # number of permutations for calculating FDRs for all correlation pairs. 
hub.perm = 100; # number of permutations for calculating connectivity significance p-value. 

# annotation to be done on the downstream
annot.table=NULL
id.col = 1
symbol.col= 2
###########

data(Sample_Expression) # load toy example data

ijw <- calculate.correlation(datExpr,doPerm = cor.perm,output.corTable = FALSE,output.permFDR = FALSE)


##### calculate PFN
el <- calculate.PFN(ijw[,1:3],doPar = doPar,num.cores = n.cores,keep.track = FALSE)

g <- graph.data.frame(el,directed = FALSE)

##### perform MCA clustering.
MEGENA.output <- do.MEGENA(g,
                           mod.pval = module.pval,hub.pval = hub.pval,remove.unsig = TRUE,
                           min.size = 10,max.size = vcount(g)/2,
                           doPar = doPar,num.cores = n.cores,n.perm = hub.perm,
                           save.output = FALSE)

###### unregister cores as these are not needed anymore.
summary.output <- MEGENA.ModuleSummary(MEGENA.output,
                                       mod.pvalue = module.pval,hub.pvalue = hub.pval,
                                       min.size = 10,max.size = vcount(g)/2,
                                       annot.table = annot.table,id.col = id.col,symbol.col = symbol.col,
                                       output.sig = TRUE)

最终summary.output:

1. summary.output$modules summary.output

可以把聚类的sub-cluster对应的基因获取到

2. summary.output$module.table

summary.output$module.table

可以把每个sub-cluster的hub gene(度比较大的基因)获取到

将sub-cluster的基因导入Cytoscape

由原理我们知道,基因之间的权重关系是由gene pair之间的相关性体现的,而Cytoscape的基本输入是node from,node to和weight
所以我们只需要在PFN网络中筛选出相应的sub-cluster的基因即可
el:


sub_cluster <- summary.output$modules$c1_2

df1 = el[el[,1] %in% sub_cluster,]
df2 = df1[df1[,2] %in% sub_cluster,]

然后将df2写入txt,导入Cytoscape即可

相关文章

  • MEGENA结果解读

    前言 在之前的文章MEGENA原理[https://www.jianshu.com/p/14b806e4b629]...

  • MEGENA原理

    前言 MEGENA是一种基于图嵌入的方式构建基因共表达网络的工具,相比较于WGCNA的权重分析,MEGENA直接用...

  • GSEA结果解读

    上一篇GSEA可以做什么之后,继续进行结果解读 1 Enrichment score(ES) ES是GSEA最初的...

  • RDA 结果解读

    介绍 微生物多样性分析中,α多样性主要关注局域均匀生境下的物种数目 ,通俗来讲就是样本内的物种多样性。β多样性是指...

  • SnpEff结果解读

    SnpEff结果文件的解读 根据上一篇简书中SnpEff结果产生的4个文件进行解读 第一个文件:positive....

  • Othofinder结果解读

    OrthoFinder结果文件 运行结束后,在ExampleData里多出一个文件夹,Results_Feb14,...

  • gffCompare鉴定新的转录本

    官方文件结果解读1结果解读2使用方法对于nanopore的data推荐使用FLAIRCollapse 后的gtf数...

  • 加权共表达分析总结

    综述 经典的WGCNA分析用于疾病两组比较的MEGENA用于两组处理比较的DGCA整合工具CEMiToolCEMi...

  • 1.3质控结果解读

    以最差的一个为例 总览 绿色勾勾:合格的黄色叹号:触到了警戒线红色叉叉:不合格 1.基础数据 reads长度=15...

  • 拟时序分析

    简要内容--拟时序分析的定义--结果解读--------做出结果(cluster、state)--------确定...

网友评论

    本文标题:MEGENA结果解读

    本文链接:https://www.haomeiwen.com/subject/wrbttrtx.html