How To Install r-bioc-snpstats on Ubuntu 20.04
Introduction
In this tutorial we learn how to install r-bioc-snpstats
on Ubuntu 20.04.
What is r-bioc-snpstats
r-bioc-snpstats is:
This BioConductor package provides R functions to work with SnpMatrix and XSnpMatrix classes and methods.
SnpStats arose out of the need to store, and analyse, SNP genotype data in which subjects cannot be assigned to the three possible genotypes with certainty. This necessitated a change in the way in which data are stored internally, although snpStats can still handle conventionally called genotype data stored in the original snpMatrix storage mode. snpStats currently lacks some facilities which were present in snpMatrix (although, hopefully, the important gaps will soon be filled) but it also includes several important new facilities.
There are three methods to install r-bioc-snpstats
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install r-bioc-snpstats Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install r-bioc-snpstats
using apt-get
by running the following command:
sudo apt-get -y install r-bioc-snpstats
Install r-bioc-snpstats Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install r-bioc-snpstats
using apt
by running the following command:
sudo apt -y install r-bioc-snpstats
Install r-bioc-snpstats Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install r-bioc-snpstats
using aptitude
by running the following command:
sudo aptitude -y install r-bioc-snpstats
How To Uninstall r-bioc-snpstats on Ubuntu 20.04
To uninstall only the r-bioc-snpstats
package we can use the following command:
sudo apt-get remove r-bioc-snpstats
Uninstall r-bioc-snpstats And Its Dependencies
To uninstall r-bioc-snpstats
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove r-bioc-snpstats
Remove r-bioc-snpstats Configurations and Data
To remove r-bioc-snpstats
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge r-bioc-snpstats
Remove r-bioc-snpstats configuration, data, and all of its dependencies
We can use the following command to remove r-bioc-snpstats
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge r-bioc-snpstats
References
Summary
In this tutorial we learn how to install r-bioc-snpstats
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.