use of org.nmdp.gl.client.GlClientException in project ImmunogeneticDataTools by nmdp-bioinformatics.
the class GLStringUtilities method convertToMug.
public static MultilocusUnphasedGenotype convertToMug(String glString) {
MultilocusUnphasedGenotype mug = null;
try {
// TODO: should use strict but example GL Strings are missing intron
// variants in some cases (HLA-DQB1*02:02)
// GlClient glClient = LocalGlClient.createStrict();
GlClient glClient = LocalGlClient.create();
mug = glClient.createMultilocusUnphasedGenotype(glString);
} catch (GlClientException e) {
LOGGER.severe("Couldn't convert GLString to MultiLocusUnphasedGenotype");
e.printStackTrace();
}
return mug;
}
Aggregations