Ignore:
Timestamp:
Jan 28, 2011, 12:30:39 PM (8 years ago)
Author:
robert@…
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/services/nl/tno/metagenomics/SampleExcelService.groovy

    r7 r9  
    1010        def sampleNameName = "Sample name"
    1111        def runName = "Run"
     12        def tagNameName = "Tag name"
    1213        def tagSequenceName = "Tag sequence"
    1314        def oligoNumberName = "Oligo number"
    14         def possibleFields = [sampleNameName, runName, tagSequenceName, oligoNumberName]
     15        def possibleFields = [sampleNameName, runName, tagNameName, tagSequenceName, oligoNumberName]
    1516       
    1617    def downloadSampleExcel( def assaySamples, boolean includeRun = true ) {
     
    3940                                rowData << assaySample.run?.name
    4041                       
     42                        rowData << assaySample.tagName
    4143                        rowData << assaySample.tagSequence
    4244                        rowData << assaySample.oligoNumber
     
    156158                                if( it.value > -1 ) {
    157159                                        switch( it.key ) {
     160                                                case tagNameName:               assaySample.tagName = rowData[ it.value ]; break
    158161                                                case tagSequenceName:   assaySample.tagSequence = rowData[ it.value ]; break
    159162                                                case oligoNumberName:   assaySample.oligoNumber = rowData[ it.value ]; break
Note: See TracChangeset for help on using the changeset viewer.