fastdfe
is a package for fast, flexible, and hierarchical inference of the distribution of fitness effects (DFE) from site frequency spectra (SFS). It also contains a versatile VCF-to-SFS parser with support for ancestral allele and site-degeneracy annotation.
Please see the documentation for all the details.