consolidated repetitive code into parse_aln_into_genes.