Closed fengelniederhammer closed 6 months ago
Currently, prevalence over time accepts it's filters as type NamedLapisFilter = LapisFilter & { displayName: string }.
type NamedLapisFilter = LapisFilter & { displayName: string }
The mutation comparison component has a similar concept (variants with names), but it uses
interface MutationComparisonVariant { lapisFilter: LapisFilter; displayName: string; }
The interfaces should be unified for simplicity. I prefer the MutationComparisonVariant. The NamedLapisFilter has the disadvantage, that we need to take care to filter out the displayName from the object before sending the filter to LAPIS.
MutationComparisonVariant
NamedLapisFilter
displayName
This will be a breaking change.
Also from a quick look at the code I have the impression that the displayName of the denominator is actually unused.
denominator
Currently, prevalence over time accepts it's filters as
type NamedLapisFilter = LapisFilter & { displayName: string }
.The mutation comparison component has a similar concept (variants with names), but it uses
The interfaces should be unified for simplicity. I prefer the
MutationComparisonVariant
. TheNamedLapisFilter
has the disadvantage, that we need to take care to filter out thedisplayName
from the object before sending the filter to LAPIS.This will be a breaking change.