Last change
on this file since 187 was
187,
checked in by keesvb, 13 years ago
|
changed definition of clean data layer, implemented it for the clinical data module, added demonstration to the sandbox
|
File size:
521 bytes
|
Rev | Line | |
---|
[106] | 1 | package dbnp.clinicaldata |
---|
| 2 | |
---|
| 3 | class ClinicalDataLayerService implements dbnp.data.CleanDataLayer { |
---|
| 4 | |
---|
| 5 | boolean transactional = false |
---|
| 6 | |
---|
[187] | 7 | Map getDataQuantitative(String feature, long assayID, String[] sampleIDs) { |
---|
| 8 | def measurement = ClinicalMeasurement.findByName(feature) |
---|
| 9 | if (!measurement) throw new NoSuchFieldException("Feature ${feature} not found") |
---|
| 10 | measurement.getValues(assayID,sampleIDs) |
---|
[106] | 11 | } |
---|
| 12 | |
---|
[187] | 13 | String[] getFeaturesQuantitative(long assayID) { |
---|
| 14 | return ClinicalAssayInstance.get(assayID).assay.measurements*.name; |
---|
[106] | 15 | } |
---|
| 16 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.