GDCRNAtools——DEG

1 -----------------------------------------------------------------------

library(GDCRNATools)
library(DT)

load RNA counts data

data(rnaCounts)


image.png

load miRNAs counts data

data(mirCounts)

####### Normalization of RNAseq data #######
rnaExpr <- gdcVoomNormalization(counts = rnaCounts, filter = FALSE)

####### Normalization of miRNAs data #######
mirExpr <- gdcVoomNormalization(counts = mirCounts, filter = FALSE)

3.1.2 Parse metadata
####### Parse and filter RNAseq metadata #######
metaMatrix.RNA <- gdcParseMetadata(project.id = 'TCGA-CHOL',
data.type = 'RNAseq',
write.meta = FALSE)

metaMatrix.RNA <- gdcFilterDuplicate(metaMatrix.RNA)
metaMatrix.RNA <- gdcFilterSampleType(metaMatrix.RNA)
metaMatrix.RNA[1:5,]

注意comparision写法顺序,谁在前谁是分子,后者是分母

比较对相的来自 metaMatrix.RNA$sample_type函数的字符串

DEGAll <- gdcDEAnalysis(counts = rnaCounts,
group = metaMatrix.RNA$sample_type,
comparison = 'PrimaryTumor-SolidTissueNormal',
method = 'limma')

DEGAll[1:5,]

All DEGs

deALL <- gdcDEReport(deg = DEGAll, gene.type = 'all')

DE long-noncoding

deLNC <- gdcDEReport(deg = DEGAll, gene.type = 'long_non_coding')

DE protein coding genes

dePC <- gdcDEReport(deg = DEGAll, gene.type = 'protein_coding')

3.2.2 ceRNAs network analysis of DEGs
ceOutput <- gdcCEAnalysis(lnc = rownames(deLNC),
pc = rownames(dePC),
lnc.targets = 'starBase',
pc.targets = 'starBase',
rna.expr = rnaExpr,
mir.expr = mirExpr)
ceOutput[1:5,]

3.2.3 Export ceRNAs network to Cytoscape

ceOutput2 <- ceOutput[ceOutputhyperPValue<0.01 & ceOutputcorPValue<0.01 & ceOutput$regSim != 0,]

edges <- gdcExportNetwork(ceNetwork = ceOutput2, net = 'edges')
nodes <- gdcExportNetwork(ceNetwork = ceOutput2, net = 'nodes')

write.table(edges, file='edges.txt', sep='\t', quote=F)
write.table(nodes, file='nodes.txt', sep='\t', quote=F)

3.3.6 Correlation plot on a local webpage
shinyCorPlot() , a interactive plot function based on shiny package, can be easily operated by just clicking the genes in each drop down box (in the GUI window). By running shinyCorPlot() function, a local webpage would pop up and correlation plot between a lncRNA and mRNA would be automatically shown.

shinyCorPlot(gene1 = rownames(deLNC),
gene2 = rownames(dePC),
rna.expr = rnaExpr,
metadata = metaMatrix.RNA)

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • by 港漂圈 猫西 上周接到徐大记者的电话,我以为她会跟我说她要结婚了,她说的却是她分手了。 我条件反射地问她,真...
    7f67504d611e阅读 1,783评论 0 1
  • 想你 在夜深人静的时候 思绪填满寂静的空间 没有商量 任凭随意的遐想 想你 在喧嚣的闹市 你出现在我的前方 是现实...
    笑傲江湖之秋雨阅读 1,733评论 0 1
  • 明天又是做出一个决定的时候了,关于工作上的。 最近正离职,上礼拜找了一家公司便尝试着待着看看,没做两天发现不喜欢打...
    缓存不足的模仿家阅读 1,135评论 0 0
  • 槐花香过了 蔷薇笑过了 扔出的纸飞机 惊扰了记忆中的夏蝉 寻觅 寻觅 寻寻觅觅 顺着叶经的脉络 仿佛拥有了一切 那...
    三木厘阅读 3,474评论 2 6
  • 约珥书1 1:6有一队蝗虫(注:原文作“民”)又强盛又无数,侵犯我的地。它的牙齿如狮子的牙齿,大牙如母狮的大牙。 ...
    旭日明亮阅读 12,976评论 0 0

友情链接更多精彩内容