Class DB2FastqGoal<P extends GSProject>

Type Parameters:
P - the project type

public class DB2FastqGoal<P extends GSProject> extends FileListGoal<P>
Generates FASTQ files from the k-mers stored in the database, writing one output file per configured tax id (or a single total file when none are given). A trailing + on a tax id enables read descriptions.
  • Field Details

    • TOTAL

      public static final String TOTAL
      The output name used when no specific tax ids are configured.
      See Also:
  • Constructor Details

    • DB2FastqGoal

      @SafeVarargs public DB2FastqGoal(P project, GoalKey key, ObjectGoal<Set<SmallTaxTree.SmallTaxIdNode>,P> taxNodesGoal, ObjectGoal<Database,P> storeGoal, Goal<P>... deps)
      Creates the goal for generating FASTQ files from the database's stored k-mers.
      Parameters:
      project - the project this goal belongs to
      key - the goal key identifying this goal
      taxNodesGoal - the goal supplying the set of taxonomy nodes
      storeGoal - the goal supplying the database to read k-mers from
      deps - additional goals this goal depends on
  • Method Details

    • provideFiles

      protected void provideFiles()
      Description copied from class: FileListGoal
      Hook to lazily add output files the first time FileListGoal.getFiles() is called; empty by default.
      Overrides:
      provideFiles in class FileListGoal<P extends GSProject>
    • getOutputFile

      protected File getOutputFile(String taxid)
      Returns the output FASTQ file for the given tax id.
      Parameters:
      taxid - the tax id (or TOTAL) the file is generated for
      Returns:
      the output FASTQ file for the given tax id
    • makeFile

      protected void makeFile(File file) throws IOException
      Description copied from class: FileGoal
      Produces the given output file.
      Specified by:
      makeFile in class FileGoal<P extends GSProject>
      Parameters:
      file - the output file to produce
      Throws:
      IOException - if the file cannot be written