Install the old version of seurat under Ubuntu

Demonstrate how to configure a single-cell data processing environment.

First prepare the Ubuntu system

Here is the first Huawei Cloud: https://www.huaweicloud.com/pricing.html#/ecs

It can be compared with other cloud services purchased on demand:

Install R language

If the system R version is not enough, you need to upgrade

# First delete the old version of R that comes with the system
sudo apt-get--purge remove r-base  r-base-core r-base-dev
sudo apt-get--purge remove r-base-core
sudo apt-get--purge remove r-base-dev
# sudo apt-get remove -y 'r-cran-*'
# apt-get remove will delete the software package and retain the software configuration file r
# apt-get purge will clear the software package and software configuration files at the same time

# Then update the Ubuntu source files
## Here, different Ubuntu systems are a bit different:
cat /etc/issue
# 18.04
# Use VIM to add the following code to/etc/apt/sources.list file
# deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
sudo apt-get update
sudo apt-get install -y  r-base r-base-core  r-base-dev

Install shiny-server and Rstudio-server

https://www.rstudio.com/products/shiny/shiny-server/

https://www.rstudio.com/products/rstudio/download-server/

sudo su - \
- c "R -e \"install.packages('shiny', repos='https://mirrors.tuna.tsinghua.edu.cn/CRAN/')\""
sudo apt-get install gdebi-core
wget https://download3.rstudio.org/ubuntu-14.04/x86_64/shiny-server-1.5.9.923-amd64.deb
sudo gdebi shiny-server-1.5.9.923-amd64.deb 

wget  https://download2.rstudio.org/server/trusty/amd64/rstudio-server-1.2.1335-amd64.deb
sudo gdebi  rstudio-server-1.2.1335-amd64.deb

In this case, http://139.9.249.168:3838/ and http://139.9.249.168:8787 are accessible, but the designated ports need to be opened on Huawei Cloud.

Install the dependency package of the old version of seurat

How to know the dependency package of the old version of seurat? Run first:

packageurl <-"https://cran.r-project.org/src/contrib/Archive/Seurat/Seurat_2.3.4.tar.gz"
packageurl
install.packages(packageurl, repos=NULL, type="source")

Look at the error report and find the dependent package:

options()$repos 
options()$BioC_mirror
options(BioC_mirror="https://mirrors.ustc.edu.cn/bioc/")options("repos"=c(CRAN="https://mirrors.tuna.tsinghua.edu.cn/CRAN/"))options()$repos 
options()$BioC_mirror

# https://bioconductor.org/packages/release/bioc/html/GEOquery.html
if(!requireNamespace("BiocManager", quietly = TRUE))
 install.packages("BiocManager")

pkgs=c("ggplot2","cowplot","ROCR","mixtools","lars","ica","tsne","Rtsne","fpc","ape","pbapply","igraph","RANN","dplyr","RColorBrewer","irlba","reshape2","gplots","dtw","SDMTools","plotly","Hmisc","httr","tidyr","ggridges","metap","lmtest","fitdistrplus","png","doSNOW","reticulate","foreach","hdf5r","RcppEigen","RcppProgress") 
BiocManager::install(pkgs,ask = F,update = F)

Dependent packages are not all smooth sailing, because the Ubuntu system lacks libraries:

sudo apt-get-y install libcurl4-gnutls-dev  libxml2-dev libssl-dev subversion scons libfuse-dev gcc
sudo apt-get-y install  libmariadb-client-lgpl-dev libcurl4-openssl-dev libudunits2-dev

After installing the necessary libraries, install the R package:

pkgs=c('curl','openssl','hdf5r','httr','plotly')
BiocManager::install(pkgs,ask = F,update = F)

About the failure of hdf5r

Google didn't find the answer. Looking at the log again, the library is also missing:

 sudo apt-get install libhdf5-dev

Install hdf5r again to succeed.

pkgs='hdf5r'
BiocManager::install(pkgs,ask = F,update = F)

Finally successfully installed the old version of seurat

packageurl <-"https://cran.r-project.org/src/contrib/Archive/Seurat/Seurat_2.3.4.tar.gz"
packageurl
install.packages(packageurl, repos=NULL, type="source")

Recommended Posts

Install the old version of seurat under Ubuntu
Install the latest version of Thunderbird and exchange plugins under ubuntu
Install the CPU version of Caffe on Ubuntu
Install the latest Python 3.6 version on Ubuntu
Centos install the latest version of cmake
Install node.js under Ubuntu
Expand the disk size of Ubuntu under VMware
Install mysql under Ubuntu 16.04
Install Thrift under ubuntu 14.10
Install OpenJDK10 under Ubuntu
Install Caffe under Ubuntu 14.04
The solution to the failure to install .deb under Ubuntu 16.04
2018-09-11 Install arduino under Ubuntu
Install ROS under ROS Ubuntu 18.04[2]
Install MySQL under Ubuntu
Install Yarm-PM2 under Ubuntu
The default installation path of apt-get install of ubuntu (transfer)
How to install two versions of OpenCV under ubuntu?
Use of mediawiki under ubuntu
Install server-side Shadowsocks under Ubuntu 16.04
Install rgl package under Ubuntu
[Video] Teach you how to install the latest Linux version of QQ under Centos 8
Install and configure the latest version of RabbitMQ-3.8.5 (with video)
The screen is blank after upgrading the new version of ubuntu
Deploy the mail system under Ubuntu 19.10
Install 3 single-cell R packages under Ubuntu
Overview of the Ubuntu file system
Install and deploy Gerrit under Ubuntu
Install MySQL under Ubuntu 18.04 (graphic tutorial)
Install JDK1.8 original under Ubuntu Kylin
Small tool: install screenshot tool under ubuntu
Install nodejs and npm under Ubuntu 16.04
Install the latest OpenCV4.3 under Centos8
Install TensorFlow (python2.7 version) on Ubuntu
Installation of Docker CE under Ubuntu
Coexistence of CUDA8.0 and CUDA9.0 under Ubuntu 16.04
How to install Audacious under Ubuntu
How to install Tensorflow under ubuntu 16.04
Compile and install QEMU under Ubuntu
How to extend the root directory of LVM under Ubuntu system
Install linux (ubuntu) dual system under windows system
Install mysql8.0.13 version under Linux CentOS7 system
Installation and uninstallation of CUDA under Ubuntu 16.04
Build the C++ compilation environment under ubuntu
The apt-get command of Ubuntu basic tutorial
The implementation of the Ubuntu18.04 installation Pycharm tutorial
Install Ubuntu 18.04 in the virtual machine VMware
Install YouCompleteMe plugin for vim under Ubuntu
Install the flat theme latabulous on Ubuntu 16.04
Install NeoVim on Ubuntu: the easiest way
Install PyTesser under ubuntu 14.04 for OCR recognition
The fourth installment of Zabbix under CentOs7
The relationship between Open3D version and Ubuntu
Install Ubuntu with Parallels Desktop under Mac
Install jetty in Ubuntu 18.04 Server, non-apt version
Three ways to install software under Ubuntu
Install utility software collection under Ubuntu system
How to install vim editor under Linux (Ubuntu 18.04)
Solve the problem of installing VMwareTools on Ubuntu 18.04
ubuntu adjusts the priority of swap swap space usage
Installation of pulseaudio and API usage under Ubuntu 12.04