CANCERDownload github
if(F){ #sudo apt-get install libcurl4-openssl-dev #sudo apt-get install libxml2-dev install.packages("libxml") install.packages("rvest") install.packages("tidyverse") install.packages("survivalROC") install.packages("survival") install.packages("survminer") install.packages("lattice") install.packages("ggplot2") install.packages("ggpubr") install.packages("devtools") install.packages("BiocManager") BiocManager::install("DESeq2") BiocManager::install("TCGAbiolinks") devtools::install_github("wangyang1749/CANCERDownload") }
library(survivalROC) library(survival) library(survminer) library(lattice) library(DESeq2) library(TCGAbiolinks) library(tidyverse)
devtools::install_github("wangyang1749/CANCERDownload")
project <- "TCGA-COAD" count <- getCount(project)
提取count数据中lncRNA和mRNA
lnRAN_mRNA_count_res <- lnRAN_mRNA(count) lnRAN_mRNA_count_res@lnRNA lnRAN_mRNA_count_res@mRNA
clinical <- getClinical(project)
miRNACount <- getmiRNACount(project)
deg <- DeSeq2Analysis(count,project = project)
lnRAN_mRNA_res <- lnRAN_mRNA(deg) lnRAN_mRNA_res@lnRNA lnRAN_mRNA_res@mRNA
参考:单基因分析
clinical_count <- clinical_count(clinical,count@count)
gene <- deg@deg%>% arrange(desc(log2FoldChange))%>% rownames_to_column("symbol")%>% dplyr::slice(1:5)%>% pull("symbol")
CoxSingle(clinical,count@count,gene)
coxMulti_res <- CoxMulti(clinical,count@count, gene,cutoff=Inf)
参考:回归分析
ROC(coxMulti_res@data,predict.time=4)
Survival(coxMulti_res)
图片alt
R面向对象