首先安装必要的c/cpp/fortran底层库
代码语言:javascript复制yum -y install pcre2-devel.x86_64 pcre2.x86_64 numactl-devel.x86_64 numactl.x86_64 qconf.x86_64 qt5-qtbase-devel.x86_64 qt5-qtxmlpatterns-devel.x86_64 qt5-qtbase-mysql.x86_64 mesa-libGLES-devel.x86_64 mesa-libGLU-devel.x86_64 freeglut-devel.x86_64 freealut-devel.x86_64 libvorbis-devel.x86_64 sqlite-devel.x86_64 opencv-core.x86_64 opencv-devel.x86_64 opencv.x86_64 rust.x86_64 cargo.x86_64 rust-analysis.x86_64 rust-std-static.x86_64 rust-gdb.noarch wine.x86_64 libgdiplus.x86_64 libgdiplus-devel.x86_64 libexif-devel.x86_64 libexif.x86_64 hdf5-devel.x86_64 CUnit-devel.x86_64 openblas-devel.x86_64 gtk3-devel.x86_64 gtk2-devel.x86_64 pixman-devel.x86_64 pango-devel.x86_64 freetype-devel.x86_64 openmpi-devel.x86_64 dstat libffi-devel libpcap-devel librsvg2-devel.x86_64 poppler-devel.x86_64 poppler-glib.x86_6 fftw-devel avahi-compat-libdns_sd-devel mesa-libGL-devel glew-devel ftgl-devel e2fsprogs-devel uuid uuid-devel libuuid-devel patch ncurses-devel openssl-devel libcurl-devel gnutls-devel libtasn1-devel p11-kit-devel gmp-devel nettle-devel libbz2-devel liblzma-devel python-sphinx.noarch libdb-devel gsl.x86_64 gsl-devel.x86_64 valgrind.x86_64 valgrind-devel.x86_64 tcl-devel.x86_64 tcl.x86_64 tk.x86_64 tk-devel.x86_64 gsl.x86_64 gsl-devel.x86_64 ocaml.x86_64 ocaml-compiler-libs.x86_64 ocaml-curses-devel.x86_64 sqlite-devel lzo-devel lzo cyrus-sasl-devel lftp screen patch ncurses-devel libcurl-devel gnutls-devel libtasn1-devel p11-kit-devel gmp-devel nettle-devel libbz2-devel liblzma-devel libxml2-devel.x86_64 ghostscript.x86_64 graphviz-devel.x86_64 graphviz.x86_64 gd.x86_64 gd-devel.x86_64 ImageMagick.x86_64 glibc-headers gcc-c gcc-gfortran libcurl-devel.x86_64 ncurses-devel.x86_64 libxml2-devel.x86_64 xz-devel.x86_64 tree nginx readline-devel libXt-devel bzip2-devel cairo-devel.x86_64 lapack lapack-devel.x86_64 pcre-devel.x86_64 graphviz-devel.x86_64 libpng-devel.x86_64 git perl-App-cpanminus.noarch perl-CPAN.noarch build-essential rpcbind nfs-uitls gd.x86_64 libtiff-devel.x86_64 gnuplot.x86_64 lftp.x86_64 mariadb-devel mariadb.x86_64 mono-basic-devel.x86_64 mono-devel.x86_64 mesa-libGLU-devel.x86_64 freeglut-devel.x86_64 pixman-devel.x86_64 xorg-x11-server-Xvfb.x86_64 blas64-devel.x86_64 blas64.x86_64 lapack64-devel.x86_64 lapack64.x86_64 atlas-devel.x86_64 atlas.x86_64
安装R语言,此处安装的目录为/installed_path/R-4.0.2
代码语言:javascript复制wget -c https://mirrors.tuna.tsinghua.edu.cn/CRAN/src/base/R-4/R-4.0.2.tar.gz;
tar -zxvf R-4.0.2.tar.gz;
mv R-4.0.2/ R-4.0.2-src;
mkdir R-4.0.2;
./configure --prefix=/installed_path/R-4.0.2 --with-libpng --with-jpeglib --with-libtiff --with-blas --with-x --with-lapack --enable-R-shlib --enable-R-static-lib --enable-BLAS-shlib;
make -j 12 && make install ;
安装必要的R语言包,如果下载速度比较慢,可选国内清华的R语言镜像,速度extremely fast
代码语言:javascript复制Rscript -e "install.packages(c('PSCBS','writexl','readxl','vcfR','dtw','dtwclust','HMM','dendroextras','doMC','BiocManager','outliers','FField','VennDiagram','argparse','ROCR','cowplot','gplots','randomForest','RColorBrewer','mixtools','mongolite','readxl','digest','gridBase','colorspace','RColorBrewer', 'foreach', 'doParallel','fastICA', 'bigmemory','synchronicity', 'corpcor', 'xtable', 'devtools', 'knitr', 'bibtex', 'RUnit', 'mail','data.table','plyr','ggplot2','sets','MASS','Rcpp','stringr','gtable','scales','reshape2','reshape','lattice','argparser','futile.logger','tidyr','plotrix','maptools','readr','dplyr','Cairo','FactoMineR'), repos = 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/')"
如果从Bioconductor安装,可用BiocManager安装,注意BiocManager的版本与R语言版本的对应。
代码语言:javascript复制Rscript -e "BiocManager::install(c('systemPipeR','ppso','RUVSeq','sesame','signeR','biovizBase','ensemblVEP','TVTB','Gviz','ggbio','ReportingTools','BSgenome','VariantAnnotation','GenomicScores','enrichplot','clusterProfiler','TVTB','DECIPHER','kinship2','circlize','copynumber','BSgenome.Dmelanogaster.UCSC.dm6','VGAM','ballgown','aod','ExomeDepth','sva','sangerseqR','gage','GSVA','GSEABase','EDASeq','ReportingTools','biocGraph','geneplotter','Rgraphviz','ComplexHeatmap','DESeq2','ReportingTools','SPIA','safe','qvalue','png', 'KEGGgraph', 'org.Hs.eg.db','pathview','GOplot','BiocGenerics','Biostrings','BSgenome','class','GenomicRanges','nloptr','NMF','PMCMR','rtracklayer','signeR','Biobase','Rsamtools','ballgown','edgeR','topGO','VariantAnnotation','BSgenome.Hsapiens.UCSC.hg19','TxDb.Hsapiens.UCSC.hg19.knownGene','Gviz','VariantFiltering','fgsea','ParDNAcopy', 'quantsmooth'), version = '3.11')"