Skip to content

mutationsOverTime/queriesOverTime: supply overall mutation data #1349

@fhennig

Description

@fhennig

In the frontend we need total proportion for a mutation, so we can apply the proportion filter. We now need the same thing for the new queries.

For mutations, this is currently solved with the FetchSubstitutionsOrDeletionsOperator which calls the nucleotideMutations endpoint (and similarly for AAs). But for the new queries, we don't have an equivalent endpoint.

Something like this would be needed (property name can be different):

  {
    queries: [...],
    dateRanges: [...],
    data: [...],           // existing time-series
    totalCountsByDateRange: [...],
    overallStatisticsByQuery: [ // NEW
      { count: 100, coverage: 150, proportion: 0.67 },
      ...
    ]
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions