code for analyzing loss and gain of a gene among many genomes