Ignore:
Timestamp:
Apr 21, 2011, 12:44:44 PM (9 years ago)
Author:
robert@…
Message:
  • Improved export to include run information
  • .oligos and .tab files now contain sample names without whitespace
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/services/nl/tno/massSequencing/FastaService.groovy

    r52 r54  
    743743
    744744                tags.each {
    745                         zipWriter.write( "barcode\t" + it.tag + "\t" + it.uniqueName + "\n" );
     745                        // Samples names are not allowed to contain spaces
     746                        def name = it.uniqueName.replaceAll( /\s+/, '-' );
     747                        zipWriter.write( "barcode\t" + it.tag + "\t" + name + "\n" );
    746748                }
    747749        }
     
    769771
    770772                tags.each {
    771                         zipWriter.write( it.tag + "\t" + it.uniqueName + "\n" );
     773                        def name = it.uniqueName.replaceAll( /\s+/, '-' );
     774                        zipWriter.write( it.tag + "\t" + name + "\n" );
    772775                }
    773776        }
Note: See TracChangeset for help on using the changeset viewer.