use of io.swagger.model.Genotype in project ImmunogeneticDataTools by nmdp-bioinformatics.
the class GenotypesApiController method submitGenotypes.
@Override
public ResponseEntity<Samples> submitGenotypes(@ApiParam(value = "Genotypes", required = true) @Valid @RequestBody Genotypes genotypes) {
List<Genotype> genotypeList = genotypes.getGenotype();
Samples samples = new Samples();
SampleData sampleData = null;
for (Genotype genotype : genotypeList) {
LinkageDisequilibriumGenotypeList linkedGLString = GLStringUtilities.inflateGenotypeList(genotype.getId(), genotype.getGlString(), null);
Sample sample = LinkageDisequilibriumAnalyzer.detectLinkages(linkedGLString);
sampleData = populateSwaggerObject(sample);
samples.addSampleItem(sampleData);
}
return ResponseEntity.ok(samples);
}
Aggregations