The easiest way to install MethBat is through conda:
# create a brand new conda environment and install latest MethBat
conda create -n methbat -c bioconda methbat
# OR install latest into current conda environment
conda install methbat
# OR install a specific version into current conda environment
conda install methbat=0.13.0
Conda updates usually lag the GitHub release by a couple days. Use the following instructions to get the most recent version directly from GitHub:
- Navigate to the latest release and download the tarball file (e.g.
methbat-{version}-x86_64-unknown-linux-gnu.tar.gz
). - Decompress the tar file.
- (Optional) Verify the md5 checksum.
- Test the binary file by running it with the help option (
-h
). - Visit the User guide for details on running MethBat.
# modify this to update the version
VERSION="v0.8.3"
# get the release file
wget https://github.com/PacificBiosciences/MethBat/releases/download/${VERSION}/methbat-${VERSION}-x86_64-unknown-linux-gnu.tar.gz
# decompress the file into folder ${VERSION}
tar -xzvf methbat-${VERSION}-x86_64-unknown-linux-gnu.tar.gz
cd methbat-${VERSION}-x86_64-unknown-linux-gnu
# optional, check the md5 sum
md5sum -c methbat.md5
# execute help instructions
./methbat -h