Closed moonso closed 8 months ago
We have a problem that is fairly huge. The cancer view is now using the template that rare disease variants is using. So if we want to update and change many things we will need that these diverge, this has to be done in an intelligent way so we don't need to maintain duplicated code. There is already now a number of similar variant templates that do very similar things. What's your input on this @dnil , @hassanfa , @bjhall , @northwestwitch ?
My 5¢:
The the three obvious main routes are 1) keep running with "if cancer" clauses on the views, dropping away the domain specific parts into subroutines / macros as we go along 2) refactor or 3) split the views entirely, and similarly aim to wrap the common components in a central place
The advantage of (1) would be that we can keep going with small increments. I'd say this is the default state.
I'd advice against a refactor two days before midsummer, but we could plan it. If we think we will have sufficient time to do it, and have the opportunity to get @bjhall and @hassanfa directly involved, this could be the fastest and most productive approach.
I have not properly introduced Scout to myself, but these are my thoughts:
I'd be delighted to join, after midsommer though 😄
Ok nice thoughts, it seems like we go with the if cancer
stuff until it get's to much, we can deal with potential problems later. @hassanfa do you have a small VCF with non-sensitive data that includes the annotations described in these issues? The more the better, could you mail me that so I can start to work on it?
A VCF example of BALSAMIC's output can be found here https://github.com/hassanfa/VCFmerge/blob/master/tests/data_result/
The final file is: https://github.com/hassanfa/VCFmerge/blob/master/tests/data_result/mutect_vardict_strelka_concant.merged.sort.annotate.pair_orient.depth.vcf
I did some changes that ignores the genotype for cancer samples - managed to load a Strelka somatic snvs file with no genotypes, but I am not sure this is the way forward: https://github.com/Clinical-Genomics/scout/compare/master...szilvajuhos:ignore_genotype
Ok, as far as I know this is also not something we have issues with any longer, but feel very free to reopen if I am delusional here! 😸
It would be nice to get input from both @hassanfa and @bjhall on this one