Text this: Factor analysis of ancient population genomic samples