infection_types.Rd
Creates infection types from infection compositions
infection_types(nms, perms)
nms | Names of the species we are looking at. |
---|---|
perms | List of outputs of |
Returns a list of vectors that correspond to the infection types of the infection compostions given within `perms`
For each matrix of moi permutations within `perms`, each row is used to work out the infection type from the infection composition. E.g. if the row of the matrix is [2, 1, 0] and our `nms` are [a, b, c] then the infeciton composition is "a/a/b" but the observed infection type will be "a/b"