genomic-medicine-sweden / docker-sc2reporter

Dockerized version of the sc2reporter program.
GNU General Public License v2.0
0 stars 1 forks source link

Generalize backend handling of genome types #163

Open Fattigman opened 9 months ago

Fattigman commented 9 months ago

Background

One of the goals of this application was to be able to adapt to different genome types other than sars, which is linear single stranded RNA.

Can be closed when

Implementation details

Distance Matrix

Population scripts needs to be expanded to handle different genomes. Different assumptions are made when calculating genetic distance. As to what assumptions need to be made needs to be discussed and documented here. The python application shouldn't need any major change.

Generalize type annotations

Populations scripts need to be expanded to handle other outputs from typing packages. Database structure will get a revision of how it stores typing of viruses. A proposal is to create a type structure like following.

[
  {
    "sample_id" : "test_name",
    "type": [
      {
        "pangolin" : "B.1.1.7"
      },
      {
        "nextclade" : "23B"
      },
    ]
  }
]
talnor commented 9 months ago

Structure looks good! So one column/field per type in the all the frontend views to make the frontend generalized as well.