Skip to content

Filter lineage_mutations densely #90

@mindoftea

Description

@mindoftea

In the lineage_mutations API handler (see /web/handlers/v2/genomics/lineage_mutations.py#L124), the response currently includes "None" values for all lineage/mutation pairs that occur at less than the cutoff frequency (a sparse response). It would be more useful to users of the Python package if instead the response was dense, containing as few "None"s as possible. This could be achieved by changing the frequency cutoff filter so that instead it removes only the mutations (columns) where no lineage matching the query is above the cutoff. Then the data which are "None" in the current response would be replaced by numeric values below the cutoff; remaining non-numeric values could be set to zero.

This should be a small change to one file, however we need to test whether it could potentially cause any issues for the front end before deploying to prod, particularly the lineage comparison tool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions