#NEWLINE# def runGetVariant( self , id_ ) : #NEWLINE# #INDENT# '\n        Returns a variant with the given id\n        ' #NEWLINE# compoundId = datamodel . VariantCompoundId . parse ( id_ ) #NEWLINE# dataset = self . getDataRepository ( ) . getDataset ( compoundId . datasetId ) #NEWLINE# variantSet = dataset . getVariantSet ( gaVariant . variantSetId ) #NEWLINE# gaVariant = variantSet . getVariant ( compoundId ) #NEWLINE# jsonString = gaVariant . toJsonString ( ) #NEWLINE# return jsonString