vcf-stats command not found

In this troubleshooting guide we learn how to fix vcf-stats command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

vcf-stats: command not found

or when using sudo you get the following error message

sudo: vcf-stats: command not found

Solutions to vcf-stats: command not found

How To Fix vcf-stats: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu vcf-stats is provided by vcftools package.

vcftools is:

VCFtools is a program package designed for working with VCF files, such as those generated by the 1000 Genomes Project. The aim of VCFtools is to provide methods for working with VCF files: validating, merging, comparing and calculate some basic population genetic statistics.

To fix this problem, we can install more using the command below.

sudo apt-get -y install vcftools

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install vcftools.

sudo apt -y install vcftools

Or if you have aptitude installed you can use the following command.

sudo aptitude install vcftools

Summary

In this tutorial we learn how to fix vcf-stats command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.