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

Updating Phenotype DB with updated SQL tables #484

Merged
merged 53 commits into from
May 31, 2024
Merged

Conversation

orzut
Copy link
Collaborator

@orzut orzut commented May 14, 2024

No description provided.

Fixes rendering error if tags list is shorter than other columns (height-wise)
Replaces ad-hoc object construction with a structured query.  This is the same query we run to fill out the offcanvas sidebar.

Removes `data-description` and `data-species` fields from table rows, since we're now looking this information up in the database directly.
Store as Jinja dict linked to tool bp name. Rendered with macros.
Adds new class method for `PhenotypeReport` to recompute all cached names.
- Replace `trait_{n}_name` with `trait_{n}_name_caendr`
- Compute display name(s) when creating new report & in the recompute function
- Now use `trait_{n}_name_display` directly to render report page
This matches the intended CSV/TSV format, where the strain name is the first column, and the phenotype trait measurements are subsequent columns
@orzut orzut requested a review from r-vieira May 14, 2024 20:02
Copy link
Collaborator

@r-vieira r-vieira left a comment

Choose a reason for hiding this comment

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

approved

@r-vieira r-vieira merged commit e39ec56 into development May 31, 2024
2 checks passed
@r-vieira r-vieira deleted the fix/phenotype-db branch May 31, 2024 15:26
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.

4 participants