checkPathogen function

Check pathogen