revised code to filter isoforms when only genes are sought; prevents
duplicate entries for the same gene.