Rework marker input and chisq test, including sex markers