Ignore:
Timestamp:
Feb 10, 2010, 4:09:52 PM (13 years ago)
Author:
keesvb
Message:

changed definition of clean data layer, implemented it for the clinical data module, added demonstration to the sandbox

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/services/dbnp/clinicaldata/ClinicalDataLayerService.groovy

    r106 r187  
    55        boolean transactional = false
    66
    7         String getAssayDescription(long assayID) {
    8                 return "";
     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)
    911        }
    1012
    11         String[] getFeatureNames(long assayID) {
    12                 return new String[0];
    13         }
    14 
    15         Map getFeatureData(long assayID, long[] sampleIDs) {
    16                 return null;
    17         }
    18 
    19         Map getFeatureDataDifferential(long assayID, long[] sampleIDs1, long[] sampleIDs2) {
    20                 return null;
     13        String[] getFeaturesQuantitative(long assayID) {
     14                return ClinicalAssayInstance.get(assayID).assay.measurements*.name;
    2115        }
    2216}
Note: See TracChangeset for help on using the changeset viewer.