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

pyani classifyImplement graph theory classifier (cliques) #150

Open
widdowquinn opened this issue Oct 2, 2019 · 0 comments
Open

pyani classifyImplement graph theory classifier (cliques) #150

widdowquinn opened this issue Oct 2, 2019 · 0 comments
Assignees
Labels
enhancement something we'd like pyani to do that it doesn't already method the issue relates to how results are calculated
Milestone

Comments

@widdowquinn
Copy link
Owner

Summary:

The pyani classify command can be sped up using the following method:

  1. Create a complete graph from all comparisons
  2. Apply initial threshold (e.g. 50% coverage) for removing edges
  3. Identify graph components and, for each new component of size $n$:
  • identify minimum number of node edges (if not $n - 1$, then this cannot be a clique)
  • identify maximum number of node edges (if not $n - 1$ then this cannot be a clique)
  • if component could be a clique, test for this property
    • if component is a clique, record it
  • when all components are tested, apply the next threshold (e.g. delete edge(s) with lowest score) and repeat [END when all nodes are singletons]

This reduces the number of costly clique calculations

@widdowquinn widdowquinn self-assigned this Oct 2, 2019
@widdowquinn widdowquinn added the enhancement something we'd like pyani to do that it doesn't already label Oct 2, 2019
@widdowquinn widdowquinn added this to the 0.3.0 milestone May 28, 2020
@widdowquinn widdowquinn added the method the issue relates to how results are calculated label May 29, 2020
@baileythegreen baileythegreen changed the title Implement graph theory classifier Implement graph theory classifier (cliques) Jun 22, 2021
@baileythegreen baileythegreen changed the title Implement graph theory classifier (cliques) pyani classifyImplement graph theory classifier (cliques) May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement something we'd like pyani to do that it doesn't already method the issue relates to how results are calculated
Projects
None yet
Development

No branches or pull requests

1 participant