Process of determining and distinguishing species of bacteria or viruses based on antigens they share.