group by maf bin and run leave-one-out pca's by group
other refactorings