Grails code for the phenotator application