-
Notifications
You must be signed in to change notification settings - Fork 1
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
color selection for enrichment analysis bar plot #556
Open
noLeonardo
wants to merge
11
commits into
dev
Choose a base branch
from
color-selection-data-integration-bar-plot
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
c91a2c7
reduce color selection
noLeonardo d518327
color Selection for GO enrichment analysis
noLeonardo e44e366
Merge branch 'dev' into color-selection-data-integration-bar-plot
noLeonardo 0a1e836
updated custom color field
noLeonardo 37bdd44
Merge remote-tracking branch 'origin/dev' into color-selection-data-i…
noLeonardo bce8482
fixed color data collection
noLeonardo 8852b60
optimised color selection
noLeonardo 3861cd8
added old selection and updated tests
noLeonardo 4a8c210
fix reformat value for old selection
noLeonardo 6b4b2f2
implement choice feedback
noLeonardo 4d04989
implement TODO-Feedback
noLeonardo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
ui/runs/templates/runs/field_component_color_selection.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<div class="checkbox-container border p-3 rounded"> | ||
{% for option_value, option_label in choices %} | ||
<div class="d-flex" style="align-items: center"> | ||
<div class="checkbox-item px-2 w-50"> | ||
<input type="checkbox" id="{{ name }}_{{ option_label}}_checkbox" name="{{ name }}" value="{{ option_value }}" {% if option_value in values %}checked{% endif %}> | ||
<label for="{{ name }}_{{ option_label}}_checkbox">{{ option_label }}</label> | ||
</div> | ||
<div class="ms-auto px-2 w-50"> | ||
<select class="form-select" name="{{ name }}"> | ||
{% for color, color_label in colors %} | ||
{% with color_value="color_"|add:option_value|add:"_"|add:color %} | ||
<option value={{ color_value }} | ||
{% if values %} | ||
{% if color_value in values %}selected{% endif %} | ||
{% else %} | ||
{% if forloop.parentloop.counter0 == forloop.counter0 %}selected{% endif %} | ||
{% endif %} | ||
> | ||
{{ color_label }} | ||
</option> | ||
{% endwith %} | ||
{% endfor %} | ||
</select> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Die ganzen Hex-Strings gerne als Variable zusammengefasst, sodass man die mit einem Mal alle ändern kann.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vielen Dank für die Idee, aber diese wäre an dieser Stelle nicht passend, da es sich um eine Test-Datei handelt. Die erstellten Plots werden nicht visuell betrachtet. An dieser Stelle ist viel mehr wichtig, dass sich der Dateityp von List zu Dict geändert hat und direkt ersichtlich werden soll, dass es sich um einen HEX-Farbwert handelt. Bei einem fehlgeschlagenen Test ist somit direkt klar, welche Parameter zu einem Fail geführt haben.