Class AgilentScanDateExtractor

java.lang.Object
ubic.gemma.core.analysis.preprocess.batcheffects.BaseScanDateExtractor
ubic.gemma.core.analysis.preprocess.batcheffects.AgilentScanDateExtractor
All Implemented Interfaces:
ScanDateExtractor

public class AgilentScanDateExtractor extends BaseScanDateExtractor
Because agilent makes slides that work with any scanner, the formats are not that predictable. I've seen these so far:
  • GPR format format.
  • Agilent scanner files. These start with "TYPE" Example: GSE14466. The second line is "FEPARAMS", the fourth column is "Scan_date". The data are in the third line.
Author:
paul
  • Field Details

  • Constructor Details

    • AgilentScanDateExtractor

      public AgilentScanDateExtractor()
  • Method Details

    • newAgilentDateFormat

      public static DateFormat newAgilentDateFormat()
      Each call returns a fresh SimpleDateFormat: SDF is not thread-safe and was previously a shared mutable static field (with per-call setLenient(true)) — a latent race when multiple platform loads ran concurrently. Allocation cost is negligible compared with the surrounding I/O.
    • extract

      public Date extract(InputStream is) throws IOException, ParseException
      Throws:
      IOException
      ParseException