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-207 Add info_csv file for metadata #54

Merged
merged 24 commits into from
Jan 16, 2025

Conversation

absternator
Copy link
Contributor

@absternator absternator commented Jan 7, 2025

This PR adds a new metadata csv file that is passed into microreact (info_csv).. This data will now show up when visiting microeact (have to toggle columns)... Also if there is latitude, longitude in csv it will plot map, and if year info then plot timeline.
Also this PR changes the title of the microreact page to "Cluster {cluster_num} - {datetime}"

This is deployed to dev and can be seen when running project and visiting microreact.

Note: current metadata file is only gpsc 1-30 and not complete... thus there will be lots of empty fields.

Testing:

  1. test on beebop dev to see metadata info shows (toggle cols), map and timeline info shows ==> https://beebop-dev.dide.ic.ac.uk/

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.

Looks good - couple of tiny questions.

beebop/app.py Outdated
@@ -325,7 +327,7 @@ def run_poppunk_internal(sketches: dict,


def setup_db_file_stores(
species_args: dict,
species_args: Any,
Copy link
Contributor

Choose a reason for hiding this comment

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

You've made this change because species_args isn't a dict but an object with attributes? Is it worth making a class for this rather than generic Any?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good idea have done

@@ -45,6 +45,7 @@
"fulldb": "GPS_v9",
"external_cluster_prefix": "GPSC",
"external_clusters_file": "GPS_v9_external_clusters.csv",
"db_metadata_file": "GPS_metadata.csv",
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if this filename should be tagged to the db version..? Or is the idea that this will contain metadata for all samples in all versions of the db?

Copy link
Contributor Author

@absternator absternator Jan 14, 2025

Choose a reason for hiding this comment

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

yeah its not really db version-specific

Base automatically changed from bacpop-205-fix-network to bacpop-186-v9-db-support January 14, 2025 12:15
@absternator absternator merged commit 556eb27 into bacpop-186-v9-db-support Jan 16, 2025
4 checks passed
@absternator absternator deleted the bacpop-207-csv-branched branch January 16, 2025 10:41
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