Class AbstractSampleSheetConverter

    • Field Detail

      • inputFile

        protected final File inputFile
      • outputDir

        protected final File outputDir
      • outputFile

        protected final File outputFile
      • errorFile

        protected final File errorFile
      • warningFile

        protected final File warningFile
    • Method Detail

      • convert

        public void convert()
                     throws Aozan3Exception
        Convert the samplesheet.
        Throws:
        Aozan3Exception - if an error occurs while converting the samplesheet
      • loadSampleSheet

        protected abstract void loadSampleSheet()
                                         throws Aozan3Exception
        Load the samplesheet.
        Throws:
        Aozan3Exception - if an error occurs while loading the samplesheet
      • fixSampleSheet

        protected abstract void fixSampleSheet​(List<String> warnings)
                                        throws Aozan3Exception
        Fix the samplesheet.
        Throws:
        Aozan3Exception - if an error occurs while fixing the samplesheet
      • checkSampleSheet

        protected abstract void checkSampleSheet​(List<String> warnings)
                                          throws Aozan3Exception
        Check the samplesheet.
        Throws:
        Aozan3Exception - if an error occurs while checking the samplesheet
      • saveSampleSheet

        protected abstract void saveSampleSheet()
                                         throws Aozan3Exception
        Save the samplesheet.
        Throws:
        Aozan3Exception - if an error occurs while saving the samplesheet
      • defineOutputFile

        public File defineOutputFile​(File inputFile,
                                     File destDir)
      • defineErrorFile

        public File defineErrorFile​(File inputFile,
                                    File destDir)
      • defineWarningFile

        public File defineWarningFile​(File inputFile,
                                      File destDir)
      • saveError

        public void saveError​(Aozan3Exception e)
        Save error message.
        Parameters:
        e - exception
      • saveWarnings

        protected static void saveWarnings​(List<String> warnings,
                                           File inputFile,
                                           File warningFile)
        Save warning message.
        Parameters:
        warnings - warnings
        inputFile - input file
        warningFile - warning file
      • saveFile

        protected static void saveFile​(String text,
                                       File inputFile,
                                       File outputFile)
        Save file.
        Parameters:
        inputFile - input file
        outputFile - output file