changed the function BEAGLE_divide not to divide the reference panel
The BEAGLE manual reads:
Divide longer chromosomes into two parts or more parts, and infer haplotype phase and perform genotype imputation on each part separately.
If you are imputing ungenotyped markers, you can divide the sample into subsamples, and perform imputation on each subsample separately (but do not divide the reference panel).