Ecoimmunology assays