please help to figure out why your code removing other values beside the duplicates.
Here are two outputs with the original code and the modified code:
My code:
AKT1 exon (3), ALK exon (21), ALK exon (22), ALK exon (23), ALK exon (24), ALK exon (25), AR exon (6), AR exon (8), BRAF exon (11)...