Internal function for correctDosages
function
calcPotShifts(segtypes, ploidy)
Vector of segregation types
The ploidy of the species
Data.frame with columns:
The segtype code before the underscore i.e. without the first dosage class
The first dosage class
-1, 0 or 1: potental shifts to try out for each segtype whether a shift of +/- 1 should be tried or not (0) (only when number of dosages in segtype in <= ploidy-2 and min.dosage==1 or max.dosage==ploidy-1)