diff --git a/client/termsetting/handlers/snplst.ts b/client/termsetting/handlers/snplst.ts index 4870b97da9..e8660d9b2f 100755 --- a/client/termsetting/handlers/snplst.ts +++ b/client/termsetting/handlers/snplst.ts @@ -554,7 +554,7 @@ function validateQ(data: any) { if (data.q.AFcutoff < 0 || data.q.AFcutoff > 100) throw 'AFcutoff is not within 0 to 100' if (![0, 1, 2].includes(data.q.alleleType)) throw 'alleleType value is not one of 0/1' if (![0, 1, 2, 3].includes(data.q.geneticModel)) throw 'geneticModel value is not one of 0/1' - if (![0, 1, 2].includes(data.q.missingGenotype)) throw 'missingGenotype value is not one of 0/1' + if (![0, 1].includes(data.q.missingGenotype)) throw 'missingGenotype value is not one of 0/1' } export async function fillTW(tw: SnpsTermWrapper, vocabApi: SnpsVocabApi) { diff --git a/server/src/termdb.regression.js b/server/src/termdb.regression.js index 790403a094..1b03e7ed5e 100644 --- a/server/src/termdb.regression.js +++ b/server/src/termdb.regression.js @@ -1276,7 +1276,7 @@ tw{} cacheid alleleType: 0/1 geneticModel: 0/1/2/3 - missingGenotype: 0/1/2 + missingGenotype: 0/1 snp2effAle{} snp2refGrp{} samples {Map} @@ -1459,10 +1459,6 @@ function doImputation(snp2sample, tw, cachesampleheader, sampleinfilter) { return } if (tw.q.missingGenotype == 1) { - // numerically as average value - throw 'not done' - } - if (tw.q.missingGenotype == 2) { // drop sample const incompleteSamples = new Set() // any samples with missing gt for (const { samples } of snp2sample.values()) {