chembl / GLaDOS

Web Interface for ChEMBL @ EMBL-EBI
https://www.ebi.ac.uk/chembl/
Other
44 stars 5 forks source link

Things to amend - June 2023 #1323

Open nclopezo opened 1 year ago

nclopezo commented 1 year ago
nclopezo commented 1 year ago

@juanfmx2 I checked and regarding 2 it would be better if we had a text from elasticsearch without the time part ('T00:00:00'), because it will be fixed from the source, instead to having to apply the parsing everywhere it appears on the interface.

nclopezo commented 1 year ago

Regarding task 1, now we can set up a custom configuration for certain properties. For example, for ChEMBL Release in documents, now you can select up to 100 bars, this means that you can see all the releases in the histogram:

https://github.com/chembl/GLaDOS/assets/1944922/1864824b-7bf4-494c-95ec-c0faf4125b98

Now you can also sort by either key or count, this means that you can sort by the release name instead of the number of items of the bar:

https://github.com/chembl/GLaDOS/assets/1944922/24a51ce4-3c5d-416a-ac9e-6e48d04e772f

As it was expected, the order is lexicographic. I tried to add a custom script to sort it in a 'natural' way, but it was not possible, and we will have the same problem when sorting on the table. I think is better to make a field with a name like 'release_label' that has the number first, and the values are something like:

That way we can sort it in a natural way easily.

juanfmx2 commented 1 year ago

I think even if the number is leading it will not solve the sorting issue, because is will still be a string the only way to solve it is to add leading zeros to the the releases with a single digit (CHEMBL_01, CHEMBL_02, CHEMBL_03 . . . CHEMBL_09)

nclopezo commented 1 year ago

Yes, you are right, my bad, the way to fix it would be to add leading zeros.

nclopezo commented 8 months ago

There is a new custom sorting for the ChEMBL release filter:

Screenshot 2023-11-01 at 09 34 19

More releases appear as the number of bars is increased.

Screenshot 2023-11-01 at 09 35 34
BZdrazil commented 8 months ago

It looks great now, thank you!