Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network-based Data Validation Checks #27

Open
2 tasks
smasongarrison opened this issue May 8, 2024 · 2 comments
Open
2 tasks

Network-based Data Validation Checks #27

smasongarrison opened this issue May 8, 2024 · 2 comments
Assignees

Comments

@smasongarrison
Copy link
Member

Additional data checks we can implement include,

  • checking if child has more than 2 parents in their network
  • and checking if there are cycles in the data (aka is a parent's child the parent's parent? aka is it recurvise)
@smasongarrison smasongarrison changed the title Future Data Validation Checks Network-based Data Validation Checks May 8, 2024
@mhunter1
Copy link
Collaborator

mhunter1 commented May 11, 2024

checking if child has more than 2 parents in their network

Find in-degree and out-degree of a graph: igraph::degree(..., mode='in') In-degree should be at most two. Out-degree is the number of children born to an individual.

checking if there are cycles in the data (aka is a parent's child the parent's parent? aka is it recurvise)

Detect cycles: igraph::is_dag() function? These are cases when e.g. a parent is the child of a child. Maybe igraph::is_acyclic() would be better? Either of these returns a logical TRUE/FALSE. A subsequent step is to find the paths that are creating the cycles. See igraph::feedback_arc_set() for finding the edges that -- if pruned -- would kill the cycles.

Duplicate edges could be found with igraph::which_multiple().

The igraph::topo_sort() function might be a quick alternative for generation number. See #28 .

@smasongarrison
Copy link
Member Author

Well, I found us a cycle in the mitochondrial line .... in the Families of England data set.

image

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

No branches or pull requests

2 participants