From 0ec1f827755a0ff819aa138f15dc8de500bee8f6 Mon Sep 17 00:00:00 2001 From: Peter Kok Date: Fri, 2 May 2014 17:11:46 +0200 Subject: [PATCH] Add genomeBuildId to HighDim summary --- .../org/transmartproject/rest/HighDimController.groovy | 6 ++++-- .../transmartproject/rest/marshallers/HighDimSummary.groovy | 1 + .../org/transmartproject/rest/HighDimResourceTests.groovy | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/grails-app/controllers/org/transmartproject/rest/HighDimController.groovy b/grails-app/controllers/org/transmartproject/rest/HighDimController.groovy index 6f3b1aeb..a5859c0c 100644 --- a/grails-app/controllers/org/transmartproject/rest/HighDimController.groovy +++ b/grails-app/controllers/org/transmartproject/rest/HighDimController.groovy @@ -67,7 +67,9 @@ class HighDimController { conceptWrapper: new OntologyTermWrapper(concept), name: it.key.dataTypeName, assayCount: it.value.size(), - supportedProjections: it.key.supportedProjections) + supportedProjections: it.key.supportedProjections, + genomeBuildId: it.value[0].platform.genomeReleaseId + ) } } @@ -82,4 +84,4 @@ class HighDimController { ) } -} \ No newline at end of file +} diff --git a/src/groovy/org/transmartproject/rest/marshallers/HighDimSummary.groovy b/src/groovy/org/transmartproject/rest/marshallers/HighDimSummary.groovy index 4c336dd6..ed21193d 100644 --- a/src/groovy/org/transmartproject/rest/marshallers/HighDimSummary.groovy +++ b/src/groovy/org/transmartproject/rest/marshallers/HighDimSummary.groovy @@ -5,4 +5,5 @@ class HighDimSummary { String name int assayCount Set supportedProjections + String genomeBuildId } diff --git a/test/functional/org/transmartproject/rest/HighDimResourceTests.groovy b/test/functional/org/transmartproject/rest/HighDimResourceTests.groovy index cc15dba6..537dfd68 100644 --- a/test/functional/org/transmartproject/rest/HighDimResourceTests.groovy +++ b/test/functional/org/transmartproject/rest/HighDimResourceTests.groovy @@ -61,6 +61,7 @@ class HighDimResourceTests extends ResourceTestCase { assayCount: 2, name: 'mrna', supportedProjections: mrnaSupportedProjections, + genomeBuildId: 'hg19' ] }