Add an ortholog guides view
Comparing ortholog guides, or at least listing them is necessary. Add a tab in the Graphics panel (maybe rename it ?) of the guide details view to list guides across all organisms which share at least a modification w/ the current guide.
This would take the form of a table, listing all the concerned guides, the modification(s) they share w/ the current guide. A MultiSelect
listing all the modifications of the current guide is available, to filter the guides in the list by the modification they share w/ the current guide (only guides which share the selected modification(s) w/ the current guide are listed).
Limitation:
For now, there is no link between modification which align between organism (e.g. Sc's ⇒ DoneAm807_25S
, Hs's Am1511_28S
and At's Am816_25S
align, but the only way to have this information is to observe it visually on the alignment), so it is impossible to retrieve the guides which share a modification across organism, as this modification will actually be multiple completely distinct objects in the kb, one for each organism.
It is so necessary first to set up a connection in the kb between those modifications which align, to then be able to retrieve the guides guiding them.
The guideByIdQuery
query should be completed with the following to be able to retrieve ortholog guides:
query guideByIdQuery($id: ID) {
guides(where: { id: $id }) {
id
# [...]
modifications(options: { sort: [{ position: ASC }] }) {
id
# [...]
align_groups {
id
alignedModifications: modifications {
id
orthologs: guides {
id
# [...]
}
}
}
}
}
}