# User interface
This documentation is a work in progress and is not currently up to date.
Please contact developers for more details.
# Pages / views
The views and corresponding routes are defined in
- Overview of analysis and samples
- Analysis interpretation
- Variant interpretation
There are two overview pages, one for analysis and one for alleles/variants. The categorization is mostly done in the backend.
# Analysis interpretation
Multiple alleles; details of the first is shown.
Apart from the allele sidebar, the rest of the page is very similar to allele interpretation.
Variants that are excluded can be manually included.
If there has been multiple interpretation rounds, each can be opened. The ones with status "Done" can only be imported read-only.
# Details on loading data
/analysis/:analysisId is rendered (mainly) by directives
- Load interpretations rounds
- Select a round (usually the latest)
- Load that round's alleles, ACMG criteria and references.
The directives chooses the last interpretation round as the "selected" one. If this round is "Done" we make a copy of it (to make sure we don't accidentally change it) and uses the copy as "selected".
A flag is set on the copy to indicate that we want the latest entities to be loaded for this allele (like annotations, assessments).
This allows us to choose a static interpretation page using the entities found in the snapshots or a "dynamic" interpretation using the latest entities (annotations, assessments etc). Both have the same state, showing the same classification, comments etc.
Code related to static/dynamic interpretations pages
# Allele interpretation
Only a single allele is displayed. The various interpretation rounds are not accessible in the UI.
Loading a single allele similar but simpler:
- Load allele data (variant, annotation):
/alleles/?q=[genepanel, chr, position, ..]
- Load gene panel (phenotypes, transcript, config):
- Find ACMG criteria:
- Load interpretation rounds:
- Find references
Note that interpretation rounds are not needed to load allele data.