-
Notifications
You must be signed in to change notification settings - Fork 2
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
create selected data table #30
Conversation
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.
Added :)
Done. I first tried to directly edit the first column name of the DataTable, but that was not doable since the "selection" column is not an easily accessible one (it's created by setting |
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.
Nice changes, I like it.
It looks the filter of BGC class
does not work properly. For GCFs that do not have a BGC class should have a label Unknown
, but if you check your test data mock_obj_data.pkl
, Unknown
gives nothing. Or you can try selecting all labels in BGC class
, which does not give all data available.
The issue is fixed now—thanks for pointing it out, @CunliangGeng! It was caused by a mix-up between capitalized and non-capitalized class names. |
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.
It works!
One thought about plotting: currently we provide one plot for #BGC -> #GCF
, users may also want other plots such as BGC class -> #GCF
.
I'm thinking, instead of providing one or two plots beforehand, we leave it for users to do it:
- we provide the options for x and y, e.g. #GCF, #BGC, BGC class, for users to choose
- we provide different plot styles for users to choose, e.g. histogram, box plot
- users choose those and click plot, then get whatever plots they want
We don't have to implement it now, and could ask for feedbacks on this idea on the community meeting.
I found a bug: if we filter a GCF ID, then we select it from the table, and then we cancel it from the filter to insert other ids, and we place another id/ids, then the first one will result selected in the table, even though we didn't select it. Other useful genomics filters to add: BGC ID, strain |
We have now some nice ideas to further improve the plot functionality. Which ones to we want to pick up in the current PR? @CunliangGeng To recap, the following are the "mandatory" todos:
And the following are nice additions to decide priority on:
I will then open new issues, if needed, accordingly. |
Thanks for the recap @gcroci2. It's good to merge the current PR and open new ones for the rest issues. As for the priority, I think it's better to finish the whole page before adding new features like custom plot:
What do you think? |
I created a new view for the webapp, see here. I labeled there as priorities the issues for finishing the genomics -> metabolomics tab. Then the other issues in "Todo" can be picked up, and the ones with "ehnancement" label (such as the plotting customization) will be the latter to be picked up. Everything is in order of priority, from top to bottom. So next week I will wrap up this PR, in particular by adding the hyperlinks to the table's elements (with at least some basic info displayed), and by fixing the filtering/selection bug I mentioned above. |
We decided to add a filter button to display the filtered data on the DataTable instead of allowing the user to go back and forth between the filter and the DataTable. Every time that the button is clicked, the selection gets cleaned. |
Almost done! @CunliangGeng
|
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.
Looks good to me!
We could keep the current tooltips, but it's better to
- display the text in a table format for strain IDs and BGC IDs (a one column table, later we can add more columns)?
- the tooltips can be displayed but will disappear when I try to select and copy text from it. Is there a way to do that?
I did it using a markdown type of text, since the
I am aware of this issue, but I did't find anything to handle it using such tooltips. Both 1. and 2. kind of enhancements were among the reasons why I wanted to use a |
Cool! Could you change the font or the background to make the tooltip box more visible/highlighted? Maybe make the font smaller or using a colourful background? For the column Strains, better to directly display the strain names (ordered) instead of a StrainCollection.
OK, let's record it as an issue and improve it later. |
Quality Gate passedIssues Measures |
Done :)
Opened in #35 |
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.
I noticed that and I've just tried to play around with the css properties, but with no improvements. I've added a bullet point about it in #35 |
With this PR, an interactive DataTable displaying the data filtered via the genomics filter is added.
The hyperlinks we designed (see #21) are still missing, but I think that this PR can already be reviewed before going on and finalizing it.