TGCA數(shù)據(jù)挖掘1---R包安裝

R version 4.0.3 (2020-10-10) -- "Bunny-Wunnies Freak Out"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> options("repos" = c(CRAN="http://mirrors.tuna.tsinghua.edu.cn/CRAN/"))
> if(!require("BiocManager")) install.packages("BiocManager",update = F,ask = F)
載入需要的程輯包:BiocManager
Bioconductor version 3.12 (BiocManager 1.30.10), ?BiocManager::install for help
> 
> options(BioC_mirror="http://mirrors.tuna.tsinghua.edu.cn/bioconductor/")
> 
> cran_packages <- c('tidyr',
+                    'tibble',
+                    'dplyr',
+                    'stringr',
+                    'ggplot2',
+                    'ggpubr',
+                    'factoextra',
+                    'FactoMineR',
+                    'pheatmap',
+                    "survival",
+                    "survminer",
+                    "patchwork",
+                    "ggstatsplot",
+                    "ggplotify",
+                    "cowplot",
+                    "glmnet",
+                    "ROCR",
+                    "caret",
+                    "randomForest",
+                    "survminer",
+                    "Hmisc",
+                    "e1071",
+                    "deconstructSigs",
+                    "timeROC"
+ ) 
> Biocductor_packages <- c("KEGG.db",
+                          "limma",
+                          "clusterProfiler",
+                          "org.Hs.eg.db",
+                          "SummarizedExperiment",
+                          "DESeq2",
+                          "edgeR",
+                          "ggpubr",
+                          "rtracklayer",
+                          "genefilter",
+                          "maftools",
+                          "ComplexHeatmap",
+                          "GDCRNATools"
+ )
> 
> 
> for (pkg in cran_packages){
+   if (! require(pkg,character.only=T) ) {
+     install.packages(pkg,ask = F,update = F)
+     require(pkg,character.only=T) 
+   }
+ }
載入需要的程輯包:tidyr
載入需要的程輯包:tibble
載入需要的程輯包:dplyr

載入程輯包:‘dplyr’

The following objects are masked from ‘package:stats’:

    filter, lag

The following objects are masked from ‘package:base’:

    intersect, setdiff, setequal, union

載入需要的程輯包:stringr
載入需要的程輯包:ggplot2
Use suppressPackageStartupMessages() to eliminate package startup messages
載入需要的程輯包:ggpubr
載入需要的程輯包:factoextra
Welcome! Want to learn more? See two factoextra-related books at https://goo.gl/ve3WBa
載入需要的程輯包:FactoMineR
載入需要的程輯包:pheatmap
載入需要的程輯包:survival
載入需要的程輯包:survminer
載入需要的程輯包:patchwork
載入需要的程輯包:ggstatsplot
Registered S3 methods overwritten by 'lme4':
  method                          from
  cooks.distance.influence.merMod car 
  influence.merMod                car 
  dfbeta.influence.merMod         car 
  dfbetas.influence.merMod        car 
In case you would like cite this package, cite it as:
     Patil, I. (2018). ggstatsplot: "ggplot2" Based Plots with Statistical Details. CRAN.
     Retrieved from https://cran.r-project.org/web/packages/ggstatsplot/index.html
載入需要的程輯包:ggplotify
載入需要的程輯包:cowplot

載入程輯包:‘cowplot’

The following object is masked from ‘package:patchwork’:

    align_plots

The following object is masked from ‘package:ggpubr’:

    get_legend

載入需要的程輯包:glmnet
載入需要的程輯包:Matrix

載入程輯包:‘Matrix’

The following objects are masked from ‘package:tidyr’:

    expand, pack, unpack

Loaded glmnet 4.1
載入需要的程輯包:ROCR
載入需要的程輯包:caret
載入需要的程輯包:lattice

載入程輯包:‘caret’

The following object is masked from ‘package:survival’:

    cluster

載入需要的程輯包:randomForest
randomForest 4.6-14
Type rfNews() to see new features/changes/bug fixes.

載入程輯包:‘randomForest’

The following object is masked from ‘package:ggplot2’:

    margin

The following object is masked from ‘package:dplyr’:

    combine

載入需要的程輯包:Hmisc
載入需要的程輯包:Formula

載入程輯包:‘Hmisc’

The following objects are masked from ‘package:dplyr’:

    src, summarize

The following objects are masked from ‘package:base’:

    format.pval, units

載入需要的程輯包:e1071

載入程輯包:‘e1071’

The following object is masked from ‘package:Hmisc’:

    impute

載入需要的程輯包:deconstructSigs
載入需要的程輯包:timeROC
> 
> 
> # use BiocManager to install
> for (pkg in Biocductor_packages){
+   if (! require(pkg,character.only=T) ) {
+     BiocManager::install(pkg,ask = F,update = F)
+     require(pkg,character.only=T) 
+   }
+ }
載入需要的程輯包:KEGG.db
載入需要的程輯包:AnnotationDbi
載入需要的程輯包:stats4
載入需要的程輯包:BiocGenerics
載入需要的程輯包:parallel

載入程輯包:‘BiocGenerics’

The following objects are masked from ‘package:parallel’:

    clusterApply, clusterApplyLB, clusterCall, clusterEvalQ, clusterExport,
    clusterMap, parApply, parCapply, parLapply, parLapplyLB, parRapply, parSapply,
    parSapplyLB

The following object is masked from ‘package:randomForest’:

    combine

The following objects are masked from ‘package:dplyr’:

    combine, intersect, setdiff, union

The following objects are masked from ‘package:stats’:

    IQR, mad, sd, var, xtabs

The following objects are masked from ‘package:base’:

    anyDuplicated, append, as.data.frame, basename, cbind, colnames, dirname,
    do.call, duplicated, eval, evalq, Filter, Find, get, grep, grepl, intersect,
    is.unsorted, lapply, Map, mapply, match, mget, order, paste, pmax, pmax.int,
    pmin, pmin.int, Position, rank, rbind, Reduce, rownames, sapply, setdiff, sort,
    table, tapply, union, unique, unsplit, which.max, which.min

載入需要的程輯包:Biobase
Welcome to Bioconductor

    Vignettes contain introductory material; view with 'browseVignettes()'. To cite
    Bioconductor, see 'citation("Biobase")', and for packages
    'citation("pkgname")'.


載入程輯包:‘Biobase’

The following object is masked from ‘package:Hmisc’:

    contents

載入需要的程輯包:IRanges
載入需要的程輯包:S4Vectors

載入程輯包:‘S4Vectors’

The following object is masked from ‘package:Matrix’:

    expand

The following objects are masked from ‘package:dplyr’:

    first, rename

The following object is masked from ‘package:tidyr’:

    expand

The following object is masked from ‘package:base’:

    expand.grid


載入程輯包:‘IRanges’

The following objects are masked from ‘package:dplyr’:

    collapse, desc, slice

The following object is masked from ‘package:grDevices’:

    windows


載入程輯包:‘AnnotationDbi’

The following object is masked from ‘package:dplyr’:

    select


KEGG.db contains mappings based on older data because the original resource was
  removed from the the public domain before the most recent update was produced.
  This package should now be considered deprecated and future versions of
  Bioconductor may not have it available.  Users who want more current data are
  encouraged to look at the KEGGREST or reactome.db packages

載入需要的程輯包:limma

載入程輯包:‘limma’

The following object is masked from ‘package:BiocGenerics’:

    plotMA

載入需要的程輯包:clusterProfiler

clusterProfiler v3.18.0  For help: https://guangchuangyu.github.io/software/clusterProfiler

If you use clusterProfiler in published research, please cite:
Guangchuang Yu, Li-Gen Wang, Yanyan Han, Qing-Yu He. clusterProfiler: an R package for comparing biological themes among gene clusters. OMICS: A Journal of Integrative Biology. 2012, 16(5):284-287.

載入程輯包:‘clusterProfiler’

The following object is masked from ‘package:AnnotationDbi’:

    select

The following object is masked from ‘package:IRanges’:

    slice

The following object is masked from ‘package:S4Vectors’:

    rename

The following object is masked from ‘package:lattice’:

    dotplot

The following object is masked from ‘package:stats’:

    filter

載入需要的程輯包:org.Hs.eg.db

載入需要的程輯包:SummarizedExperiment
載入需要的程輯包:MatrixGenerics
載入需要的程輯包:matrixStats

載入程輯包:‘matrixStats’

The following objects are masked from ‘package:Biobase’:

    anyMissing, rowMedians

The following object is masked from ‘package:dplyr’:

    count


載入程輯包:‘MatrixGenerics’

The following objects are masked from ‘package:matrixStats’:

    colAlls, colAnyNAs, colAnys, colAvgsPerRowSet, colCollapse, colCounts,
    colCummaxs, colCummins, colCumprods, colCumsums, colDiffs, colIQRDiffs,
    colIQRs, colLogSumExps, colMadDiffs, colMads, colMaxs, colMeans2, colMedians,
    colMins, colOrderStats, colProds, colQuantiles, colRanges, colRanks,
    colSdDiffs, colSds, colSums2, colTabulates, colVarDiffs, colVars,
    colWeightedMads, colWeightedMeans, colWeightedMedians, colWeightedSds,
    colWeightedVars, rowAlls, rowAnyNAs, rowAnys, rowAvgsPerColSet, rowCollapse,
    rowCounts, rowCummaxs, rowCummins, rowCumprods, rowCumsums, rowDiffs,
    rowIQRDiffs, rowIQRs, rowLogSumExps, rowMadDiffs, rowMads, rowMaxs, rowMeans2,
    rowMedians, rowMins, rowOrderStats, rowProds, rowQuantiles, rowRanges,
    rowRanks, rowSdDiffs, rowSds, rowSums2, rowTabulates, rowVarDiffs, rowVars,
    rowWeightedMads, rowWeightedMeans, rowWeightedMedians, rowWeightedSds,
    rowWeightedVars

The following object is masked from ‘package:Biobase’:

    rowMedians

載入需要的程輯包:GenomicRanges
載入需要的程輯包:GenomeInfoDb
載入需要的程輯包:DESeq2
載入需要的程輯包:edgeR
載入需要的程輯包:rtracklayer
載入需要的程輯包:genefilter

載入程輯包:‘genefilter’

The following objects are masked from ‘package:MatrixGenerics’:

    rowSds, rowVars

The following objects are masked from ‘package:matrixStats’:

    rowSds, rowVars

The following object is masked from ‘package:patchwork’:

    area

載入需要的程輯包:maftools

載入程輯包:‘maftools’

The following object is masked from ‘package:deconstructSigs’:

    plotSignatures

載入需要的程輯包:ComplexHeatmap
載入需要的程輯包:grid
========================================
ComplexHeatmap version 2.6.2
Bioconductor page: http://bioconductor.org/packages/ComplexHeatmap/
Github page: https://github.com/jokergoo/ComplexHeatmap
Documentation: http://jokergoo.github.io/ComplexHeatmap-reference

If you use it in published research, please cite:
Gu, Z. Complex heatmaps reveal patterns and correlations in multidimensional 
  genomic data. Bioinformatics 2016.

This message can be suppressed by:
  suppressPackageStartupMessages(library(ComplexHeatmap))
========================================
! pheatmap() has been masked by ComplexHeatmap::pheatmap(). 90% of the arguments
   in the original pheatmap() are identically supported in the new function. You 
   can still use the original function by explicitly calling pheatmap::pheatmap().


載入程輯包:‘ComplexHeatmap’

The following object is masked from ‘package:genefilter’:

    dist2

The following object is masked from ‘package:pheatmap’:

    pheatmap

載入需要的程輯包:GDCRNATools
Found more than one class "atomicVector" in cache; using the first, from namespace 'Matrix'
Also defined by ‘Rmpfr’
Found more than one class "atomicVector" in cache; using the first, from namespace 'Matrix'
Also defined by ‘Rmpfr’
Found more than one class "atomicVector" in cache; using the first, from namespace 'Matrix'
Also defined by ‘Rmpfr’
Found more than one class "atomicVector" in cache; using the first, from namespace 'Matrix'
Also defined by ‘Rmpfr’
Found more than one class "atomicVector" in cache; using the first, from namespace 'Matrix'
Also defined by ‘Rmpfr’
Found more than one class "atomicVector" in cache; using the first, from namespace 'Matrix'
Also defined by ‘Rmpfr’
Found more than one class "atomicVector" in cache; using the first, from namespace 'Matrix'
Also defined by ‘Rmpfr’
Found more than one class "atomicVector" in cache; using the first, from namespace 'Matrix'
Also defined by ‘Rmpfr’
Found more than one class "atomicVector" in cache; using the first, from namespace 'Matrix'
Also defined by ‘Rmpfr’
Found more than one class "atomicVector" in cache; using the first, from namespace 'Matrix'
Also defined by ‘Rmpfr’
Found more than one class "atomicVector" in cache; using the first, from namespace 'Matrix'
Also defined by ‘Rmpfr’
Found more than one class "atomicVector" in cache; using the first, from namespace 'Matrix'
Also defined by ‘Rmpfr’
Registered S3 method overwritten by 'gplots':
  method         from     
  reorder.factor DescTools
##############################################################################
Pathview is an open source software package distributed under GNU General
Public License version 3 (GPLv3). Details of GPLv3 is available at
http://www.gnu.org/licenses/gpl-3.0.html. Particullary, users are required to
formally cite the original Pathview paper (not just mention it) in publications
or products. For details, do citation("pathview") within R.

The pathview downloads and uses KEGG data. Non-academic uses may require a KEGG
license agreement (details at http://www.kegg.jp/kegg/legal.html).
##############################################################################
Warning message:
Package 'KEGG.db' is deprecated and will be removed from Bioconductor version 3.12 
> 
> 
> #前面的報錯都先不要管。主要看這里
> for (pkg in c(Biocductor_packages,cran_packages)){
+   require(pkg,character.only=T) 
+ }
> 
> #哪個報錯类少,就回去安裝哪個很泊。如果你沒有安裝xx包贝次,卻提示你xx包不存在昭娩,這也正常,是因為復(fù)雜的依賴關(guān)系宪郊,缺啥補啥艰匙。
> if(!require(AnnoProbe))devtools::install_local("AnnoProbe-master.zip",upgrade = F,dependencies = T)
載入需要的程輯包:AnnoProbe
Setting options('download.file.method.GEOquery'='auto')
Setting options('GEOquery.inmemory.gpl'=FALSE)
AnnoProbe v 0.1.0  welcome to use AnnoProbe!
If you use AnnoProbe in published research, please acknowledgements:
We thank Dr.Jianming Zeng(University of Macau), and all the members of his bioinformatics team, biotrainee, for generously sharing their experience and codes.
> if(!require(tinyarray))devtools::install_local("tinyarray-master.zip",upgrade = F,dependencies = T)
載入需要的程輯包:tinyarray

載入程輯包:‘tinyarray’

The following object is masked from ‘package:dplyr’:

    union_all

> library(AnnoProbe)
> library(tinyarray)
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市庇绽,隨后出現(xiàn)的幾起案子锡搜,更是在濱河造成了極大的恐慌,老刑警劉巖瞧掺,帶你破解...
    沈念sama閱讀 218,941評論 6 508
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件耕餐,死亡現(xiàn)場離奇詭異,居然都是意外死亡辟狈,警方通過查閱死者的電腦和手機肠缔,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,397評論 3 395
  • 文/潘曉璐 我一進店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來哼转,“玉大人明未,你說我怎么就攤上這事∫悸” “怎么了趟妥?”我有些...
    開封第一講書人閱讀 165,345評論 0 356
  • 文/不壞的土叔 我叫張陵,是天一觀的道長佣蓉。 經(jīng)常有香客問我披摄,道長亲雪,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 58,851評論 1 295
  • 正文 為了忘掉前任行疏,我火速辦了婚禮匆光,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘酿联。我一直安慰自己终息,他們只是感情好,可當(dāng)我...
    茶點故事閱讀 67,868評論 6 392
  • 文/花漫 我一把揭開白布贞让。 她就那樣靜靜地躺著周崭,像睡著了一般。 火紅的嫁衣襯著肌膚如雪喳张。 梳的紋絲不亂的頭發(fā)上续镇,一...
    開封第一講書人閱讀 51,688評論 1 305
  • 那天,我揣著相機與錄音销部,去河邊找鬼摸航。 笑死,一個胖子當(dāng)著我的面吹牛舅桩,可吹牛的內(nèi)容都是我干的酱虎。 我是一名探鬼主播,決...
    沈念sama閱讀 40,414評論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼擂涛,長吁一口氣:“原來是場噩夢啊……” “哼读串!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起撒妈,我...
    開封第一講書人閱讀 39,319評論 0 276
  • 序言:老撾萬榮一對情侶失蹤恢暖,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后狰右,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體杰捂,經(jīng)...
    沈念sama閱讀 45,775評論 1 315
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 37,945評論 3 336
  • 正文 我和宋清朗相戀三年棋蚌,在試婚紗的時候發(fā)現(xiàn)自己被綠了琼娘。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 40,096評論 1 350
  • 序言:一個原本活蹦亂跳的男人離奇死亡附鸽,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出瞒瘸,到底是詐尸還是另有隱情坷备,我是刑警寧澤,帶...
    沈念sama閱讀 35,789評論 5 346
  • 正文 年R本政府宣布情臭,位于F島的核電站省撑,受9級特大地震影響赌蔑,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜竟秫,卻給世界環(huán)境...
    茶點故事閱讀 41,437評論 3 331
  • 文/蒙蒙 一娃惯、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧肥败,春花似錦趾浅、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,993評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至纽谒,卻和暖如春证膨,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背鼓黔。 一陣腳步聲響...
    開封第一講書人閱讀 33,107評論 1 271
  • 我被黑心中介騙來泰國打工央勒, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人澳化。 一個月前我還...
    沈念sama閱讀 48,308評論 3 372
  • 正文 我出身青樓崔步,卻偏偏與公主長得像,于是被迫代替她去往敵國和親肆捕。 傳聞我的和親對象是個殘疾皇子刷晋,可洞房花燭夜當(dāng)晚...
    茶點故事閱讀 45,037評論 2 355

推薦閱讀更多精彩內(nèi)容