How To Install mmmulti on Ubuntu 22.04
Introduction
In this tutorial we learn how to install mmmulti
on Ubuntu 22.04.
What is mmmulti
mmmulti is:
This implements a memory backed multimap intended for use where:
- your keys are integers, or can be mapped to dense range of integers,
- the memory mapped file is on fast storage, like an SSD (although this is not a requirement),
- you have arbitrary values of fixed size (e.g. structs, other POD types) that can be sorted,
- you don’t need dynamic updates of the table,
- and you are likely to run out of memory of you use a traditional map or hash table,
- but you can handle approximately 1 bit per record in RAM.
These may seem to be very specific, but many problems can be mapped into a dense integer set. mmmulti::map developed first as a data structure to support seqwish, which uses it to generate precise variation graphs from pairwise alignments between collections of sequences. As this multimap forms a key data processing kernel in the algorithm, it can scale to extremely large problem sizes, limited only by available disk space. Although performance is much slower than an in-memory structure, it is virtually guaranteed to be able to complete the compute.
There are three methods to install mmmulti
on Ubuntu 22.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 mmmulti Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install mmmulti
using apt-get
by running the following command:
sudo apt-get -y install mmmulti
Install mmmulti Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install mmmulti
using apt
by running the following command:
sudo apt -y install mmmulti
Install mmmulti 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 mmmulti
using aptitude
by running the following command:
sudo aptitude -y install mmmulti
How To Uninstall mmmulti on Ubuntu 22.04
To uninstall only the mmmulti
package we can use the following command:
sudo apt-get remove mmmulti
Uninstall mmmulti And Its Dependencies
To uninstall mmmulti
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove mmmulti
Remove mmmulti Configurations and Data
To remove mmmulti
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge mmmulti
Remove mmmulti configuration, data, and all of its dependencies
We can use the following command to remove mmmulti
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge mmmulti
References
Summary
In this tutorial we learn how to install mmmulti
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.