write_as_plink function

function to write simulation output as PLINK style data