Immune repertoire sequencing with application to infectious disease