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

Bacpop-186 v9 db support #48

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Open

Conversation

absternator
Copy link
Contributor

This PR updates poppunk to version 2.7.1, which now supports full v9 database. The updates in beebop_py is to account for these changes.

Testing:
The best way to test this is to use the branch in bacpop/beebop#83 (bacpop-201-stream-microreact) and then run this branch locally (ensure you install poppunk version 2.7.1) and then change dbname field for pnuemo in args.json to GPS_v9. You can now run an analysis from beebop and it should all work..

Side note: I will also put this up on https://beebop-dev.dide.ic.ac.uk/ so you can test their if it is easier.

Copy link
Contributor

@EmmaLRussell EmmaLRussell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, but I'm a bit unsure about what some of the changes are - I expect they're mostly just new requirements of the poppunk version? Maybe we could have a quick call tomorrow to go over them?

Looks good on beebop-dev - network task seems to be working (for strep)..?

@@ -118,6 +118,13 @@ def output_network(self, p_hash) -> str:
"""
return str(PurePath(self.output(p_hash), "network"))

def parital_query_graph(self, p_hash) -> str:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def parital_query_graph(self, p_hash) -> str:
def partial_query_graph(self, p_hash) -> str:

@@ -118,6 +118,13 @@ def output_network(self, p_hash) -> str:
"""
return str(PurePath(self.output(p_hash), "network"))

def parital_query_graph(self, p_hash) -> str:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this addition related to the new DB?

Comment on lines +114 to +116
recalculate_distances=self.args.visualise.recalculate_distances,
use_partial_query_graph=self.fs.parital_query_graph(self.p_hash),
tmp=self.fs.tmp(self.p_hash)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are all new parameters required by latest poppunk version?

)

# try to do in 1 call just add --cytoscape
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this comment obsolete?

Comment on lines +20 to +21
"stable": null,
"use_full_network": false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these new properties required by poppunk, or just related to this particular version?

@@ -31,116 +31,6 @@ def get_args() -> SimpleNamespace:
NODE_SCHEMA = ".//{http://graphml.graphdrawing.org/xmlns}node/"


def generate_mapping(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we not need this any more?

@absternator
Copy link
Contributor Author

DO NOT MERGE UNTIL POPUNK fix for network is up In Poppunk v2.7.3

Base automatically changed from bacpop-201-microract-stream to main November 19, 2024 10:20
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.

2 participants