Includes the beta version function to compute the mapping quality for single-end