Using multitype branching models to analyze bacterial pathogenicity