private Document convertPopulationFrequencyToStorage(PopulationFrequency populationFrequency) { Document dbObject = new Document(POPULATION_FREQUENCY_STUDY_FIELD, populationFrequency.getStudy()); putNotNull(dbObject, POPULATION_FREQUENCY_POP_FIELD, populationFrequency.getPopulation()); putNotNull(dbObject, POPULATION_FREQUENCY_REFERENCE_FREQUENCY_FIELD, populationFrequency.getRefAlleleFreq()); putNotNull(dbObject, POPULATION_FREQUENCY_ALTERNATE_FREQUENCY_FIELD, populationFrequency.getAltAlleleFreq()); putNotNull(dbObject, POPULATION_FREQUENCY_REF_HOM_GT_FIELD, populationFrequency.getRefHomGenotypeFreq()); putNotNull(dbObject, POPULATION_FREQUENCY_HET_GT_FIELD, populationFrequency.getHetGenotypeFreq()); putNotNull(dbObject, POPULATION_FREQUENCY_ALT_HOM_GT_FIELD, populationFrequency.getAltHomGenotypeFreq()); return dbObject; }
.setRefAlleleFreq(pf.getRefAlleleFreq()) .setAltAlleleFreq(pf.getAltAlleleFreq()) .setRefHomGenotypeFreq(pf.getRefHomGenotypeFreq()) .setHetGenotypeFreq(pf.getHetGenotypeFreq()) .setAltHomGenotypeFreq(pf.getAltHomGenotypeFreq());