better name
typo
group input by population
use shell variables to keep tmp filenames
segments are the same for all individuals

Better if we output a json file that preserves that structure.
will merge segment ancestry ratio as covariate
step 3 create segment cov file