Skip to content

Suggestion crashes with OOM from around ~3k HA seqs (6MB) #1647

@corneliusroemer

Description

@corneliusroemer

While it's fine to run the suggestion algorithm on around a thousand sequences, it seems to become unusable for only around ~3000 short flu HA sequences.

Repro:

  1. Download these sequences: https://api.loculus.genspectrum.org/influenza-a/sample/unalignedNucleotideSequences/seg1?downloadAsFile=true&downloadFileBasename=influenza-a_nuc-seg1_2025-06-07T1034&dataFormat=fasta&versionStatus=LATEST_VERSION&isRevocation=false&country=Australia&length_seg1From=2000
  2. Drop them into Nextclade and run suggest (take the time it takes)
  3. Drop the file a second time into Nextclade (to double the number of sequences). Click re-suggest.

For flu on my machine, 500 seqs take around 2 seconds to suggest (with all wasm/minimizer cached). 1000 seqs take 4 seconds. 2000 seqs around 8 seconds. But from around 3k I get OOM crashes (after around 40 seconds).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions