Changeset 8027


Ignore:
Timestamp:
Jan 13, 2022, 7:45:03 AM (7 months ago)
Author:
Nicklas Nordborg
Message:

Fixes #2276: The raw bioassay batch importer should be able to set the "file spots" value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.19-stable/src/plugins/core/net/sf/basedb/plugins/batchimport/RawBioAssayImporter.java

    r7667 r8027  
    162162    );
    163163
    164  
     164  protected static final PluginParameter<String> fileSpotsMapping =
     165    new PluginParameter<String>(
     166        "fileSpotsMapping",
     167        "File spots",
     168        "Mapping that picks the number of spots of the bioassay that are stored in files. The " +
     169        "values must be in the numeric format specified by the 'Number format' parameter." +
     170        "Example: \\Spots\\",
     171        optionalColumnMapping
     172    );
     173
    165174  public RawBioAssayImporter()
    166175  {}
     
    198207  private Mapper fileTypeMapper;
    199208  private Mapper fileMapper;
     209  private Mapper fileSpotsMapper;
    200210  private String dataDirectory;
    201211 
     
    264274    parameters.add(fileTypeColumnMapping);
    265275    parameters.add(fileColumnMapping);
     276    parameters.add(fileSpotsMapping);
    266277    parameters.add(permissionTemplateColumnMapping);
    267278  }
     
    297308    fileTypeMapper = getMapper(ffp, (String)job.getValue("fileTypeColumnMapping"), null, null);
    298309    fileMapper = getMapper(ffp, (String)job.getValue("fileColumnMapping"), null, null);
     310    fileSpotsMapper = getMapper(ffp, (String)job.getValue("fileSpotsMapping"), null, null);
    299311    dataDirectory = (String)job.getValue("dataDirectory");
    300312    if (dataDirectory != null && !dataDirectory.endsWith("/"))
     
    390402      rba.setParentExtract(extractFromBioAssay);
    391403    }
    392    
     404    if (fileSpotsMapper != null) rba.setNumFileSpots(fileSpotsMapper.getInt(data));
    393405    if (!rba.hasData())
    394406    {
Note: See TracChangeset for help on using the changeset viewer.