Skip to content

Coping with non-clustered cases in contacts dataframe#121

Open
isaac-florence wants to merge 3 commits intoreconhub:masterfrom
isaac-florence:master
Open

Coping with non-clustered cases in contacts dataframe#121
isaac-florence wants to merge 3 commits intoreconhub:masterfrom
isaac-florence:master

Conversation

@isaac-florence
Copy link

Because cases in the linelist who do not appear in the contacts dataframe with from as NA do not have their node attributes displayed, just their ID, it is necessary to include them in the contacts. However, {igraph} in the get_clusters function turns NA to 'NA' and so falsely considers non-connected cases as one cluster.

Although this does not change default behaviour it does allow for users to have a linelist returned which does not assign clusters to non-clustered cases.

The minor fix was required due to an issue in copying an epicontacts object but has now been tested and works as expected

Isaac.Florence added 3 commits December 28, 2020 10:35
No change to default behaviour. Fixes issue with igraph turning NA to 'NA' and assigning non-clustered cases to same cluster (only issue where "from" col in contacts is NA)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant