Class CombineCSV

Object
org.anchoranalysis.bean.AnchorBean<org.anchoranalysis.experiment.bean.task.Task<T,​S>>
org.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.io.input.file.FileInput,​org.anchoranalysis.io.generator.tabular.CSVWriter>
org.anchoranalysis.plugin.io.bean.task.CombineCSV

public class CombineCSV
extends org.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.io.input.file.FileInput,​org.anchoranalysis.io.generator.tabular.CSVWriter>
Combines multiple CSV files into a single CSV file.

No check occurs that the same number of rows/columns exist in the files being combined.

The following outputs are produced:

Output NameDefault?Description
"combined"yesA CSV combining the input CSV files.
inherited from Task
Author:
Owen Feehan
  • Constructor Summary

    Constructors 
    Constructor Description
    CombineCSV()  
  • Method Summary

    Modifier and Type Method Description
    void afterAllJobsAreExecuted​(org.anchoranalysis.io.generator.tabular.CSVWriter writer, org.anchoranalysis.io.output.outputter.InputOutputContext context)  
    org.anchoranalysis.io.generator.tabular.CSVWriter beforeAnyJobIsExecuted​(org.anchoranalysis.io.output.outputter.Outputter outputter, org.anchoranalysis.inference.concurrency.ConcurrencyPlan concurrencyPlan, List<org.anchoranalysis.io.input.file.FileInput> inputs, org.anchoranalysis.experiment.task.ParametersExperiment parameters)  
    org.anchoranalysis.io.output.enabled.OutputEnabledMutable defaultOutputs()  
    void doJobOnInput​(org.anchoranalysis.experiment.task.InputBound<org.anchoranalysis.io.input.file.FileInput,​org.anchoranalysis.io.generator.tabular.CSVWriter> parameters)  
    String getSeperator()  
    boolean hasVeryQuickPerInputExecution()  
    org.anchoranalysis.experiment.task.InputTypesExpected inputTypesExpected()  
    boolean isAddName()  
    boolean isFirstLineHeaders()  
    boolean isTransposed()  
    void setAddName​(boolean addName)  
    void setFirstLineHeaders​(boolean firstLineHeaders)  
    void setSeperator​(String seperator)  
    void setTransposed​(boolean transposed)  

    Methods inherited from class org.anchoranalysis.experiment.bean.task.Task

    executeJob, isInputCompatibleWith

    Methods inherited from class org.anchoranalysis.bean.AnchorBean

    checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • beforeAnyJobIsExecuted

      public org.anchoranalysis.io.generator.tabular.CSVWriter beforeAnyJobIsExecuted​(org.anchoranalysis.io.output.outputter.Outputter outputter, org.anchoranalysis.inference.concurrency.ConcurrencyPlan concurrencyPlan, List<org.anchoranalysis.io.input.file.FileInput> inputs, org.anchoranalysis.experiment.task.ParametersExperiment parameters) throws org.anchoranalysis.experiment.ExperimentExecutionException
      Specified by:
      beforeAnyJobIsExecuted in class org.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.io.input.file.FileInput,​org.anchoranalysis.io.generator.tabular.CSVWriter>
      Throws:
      org.anchoranalysis.experiment.ExperimentExecutionException
    • hasVeryQuickPerInputExecution

      public boolean hasVeryQuickPerInputExecution()
      Specified by:
      hasVeryQuickPerInputExecution in class org.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.io.input.file.FileInput,​org.anchoranalysis.io.generator.tabular.CSVWriter>
    • inputTypesExpected

      public org.anchoranalysis.experiment.task.InputTypesExpected inputTypesExpected()
      Specified by:
      inputTypesExpected in class org.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.io.input.file.FileInput,​org.anchoranalysis.io.generator.tabular.CSVWriter>
    • doJobOnInput

      public void doJobOnInput​(org.anchoranalysis.experiment.task.InputBound<org.anchoranalysis.io.input.file.FileInput,​org.anchoranalysis.io.generator.tabular.CSVWriter> parameters) throws org.anchoranalysis.experiment.JobExecutionException
      Specified by:
      doJobOnInput in class org.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.io.input.file.FileInput,​org.anchoranalysis.io.generator.tabular.CSVWriter>
      Throws:
      org.anchoranalysis.experiment.JobExecutionException
    • afterAllJobsAreExecuted

      public void afterAllJobsAreExecuted​(org.anchoranalysis.io.generator.tabular.CSVWriter writer, org.anchoranalysis.io.output.outputter.InputOutputContext context) throws org.anchoranalysis.experiment.ExperimentExecutionException
      Specified by:
      afterAllJobsAreExecuted in class org.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.io.input.file.FileInput,​org.anchoranalysis.io.generator.tabular.CSVWriter>
      Throws:
      org.anchoranalysis.experiment.ExperimentExecutionException
    • defaultOutputs

      public org.anchoranalysis.io.output.enabled.OutputEnabledMutable defaultOutputs()
      Overrides:
      defaultOutputs in class org.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.io.input.file.FileInput,​org.anchoranalysis.io.generator.tabular.CSVWriter>
    • getSeperator

      public String getSeperator()
    • setSeperator

      public void setSeperator​(String seperator)
    • isFirstLineHeaders

      public boolean isFirstLineHeaders()
    • setFirstLineHeaders

      public void setFirstLineHeaders​(boolean firstLineHeaders)
    • isTransposed

      public boolean isTransposed()
    • setTransposed

      public void setTransposed​(boolean transposed)
    • isAddName

      public boolean isAddName()
    • setAddName

      public void setAddName​(boolean addName)