added ploidy argument [ci skip]