Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
G GLaDOS Frontend - ChEMBL Main Interface
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 0
    • Merge requests 0
  • Requirements
    • Requirements
    • List
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
  • Analytics
    • Analytics
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • ChEMBL
    • CChEMBL
  • Main Web Interface
  • GLaDOS Frontend - ChEMBL Main Interface
  • Issues
  • #1

Closed
Open
Created Oct 06, 2021 by Juan Felipe Mosquera Morales@jfmosqueraOwner

Update Mechanisms, Drug Warning, and Drug Indication logic

We need to fix the way Mechanisms of Action, Drug Warnings, and Drug Indications are displayed. It has been decided to follow the same logic for the 3 of them. Group them by parent, and then parents displays all the records in the family, while salts display only the ones that belong to themselves. Additionally, the reference column (blue square in the image) should display them in a similar fashion to the sources section, where if the current report card belongs to the parent, it displays its own first, and then displays additional sources from alternate forms. Also the button "Browse All" needs to be updated using the same filter that will be used for the list (red square in the image).

issue

Fields have been added to elastic search indexes for this purpose.

MECHANISMS:
chembl_mechanism_by_parent_target --> chembl_29_mechanism_by_parent_target
    mechanism_of_action._metadata.all_molecule_chembl_ids  <= if a chembl id is in this list this mechanism should appear on that compound report card
    mechanism_of_action.mechanism_refs_by_molecule         <= this field store the refs separating them by molecule to which they belong

WARNINGS:
chembl_drug_warning_by_parent     --> chembl_29_drug_warning_by_parent
    drug_warning._metadata.all_molecule_chembl_ids         <= if a chembl id is in this list this warning should appear on that compound report card
    drug_warning.warning_refs_by_molecule                  <= this field store the refs separating them by molecule to which they belong

INDICATIONS:
chembl_drug_indication_by_parent  --> chembl_29_drug_indication_by_parent
    drug_indication._metadata.all_molecule_chembl_ids      <= if a chembl id is in this list this indication should appear on that compound report card
    drug_indication.indication_refs_by_molecule            <= this field store the refs separating them  by molecule to which they belong

The queries that should be used, both for displaying in the report card, and in the browse all button are:

MECHANISMS:
  mechanism_of_action._metadata.all_molecule_chembl_ids:<CURRENT_REPORT_CARD_CHEMBL_ID>
WARNINGS:
  drug_warning._metadata.all_molecule_chembl_ids:<CURRENT_REPORT_CARD_CHEMBL_ID>
INDICATIONS:
  drug_indication._metadata.all_molecule_chembl_ids:<CURRENT_REPORT_CARD_CHEMBL_ID>
Edited Oct 06, 2021 by Juan Felipe Mosquera Morales
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking