Package org.metagene.genestrip.goals
Class DB2FastqGoal<P extends GSProject>
java.lang.Object
org.metagene.genestrip.make.Goal<P>
org.metagene.genestrip.make.FileGoal<P>
org.metagene.genestrip.make.FileListGoal<P>
org.metagene.genestrip.goals.DB2FastqGoal<P>
- Type Parameters:
P- the project type
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.-
Nested Class Summary
Nested classes/interfaces inherited from class org.metagene.genestrip.make.Goal
Goal.LogHeapInfo -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDB2FastqGoal(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. -
Method Summary
Modifier and TypeMethodDescriptionprotected FilegetOutputFile(String taxid) Returns the output FASTQ file for the given tax id.protected voidProduces the given output file.protected voidHook to lazily add output files the first timeFileListGoal.getFiles()is called; empty by default.Methods inherited from class org.metagene.genestrip.make.FileListGoal
addFile, getFilesMethods inherited from class org.metagene.genestrip.make.FileGoal
alreadyMade, createProgressBar, deleteFile, doCleanThis, doMakeThis, getFile, getFilesToClean, isAllowEmptyFiles, isBadEmpty, isCleaned, isMade, isMade, toStringMethods inherited from class org.metagene.genestrip.make.Goal
allDependentsMade, append, booleanConfigValue, clean, clean, cleanThis, configValue, dependentMade, detachFromDependencies, doubleConfigValue, dump, endMake, getDependencies, getKey, getLogger, getProject, hasTransDependencyFor, initKey, intConfigValue, isAllowTransitiveClean, isPotentiallyRequired, isWeakDependency, logHeapInfo, logHeapInfo, longConfigValue, make, makeThis, markPotentiallyRequired, startMake, stringConfigValue, transitiveClean
-
Field Details
-
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 tokey- the goal key identifying this goaltaxNodesGoal- the goal supplying the set of taxonomy nodesstoreGoal- the goal supplying the database to read k-mers fromdeps- additional goals this goal depends on
-
-
Method Details
-
provideFiles
protected void provideFiles()Description copied from class:FileListGoalHook to lazily add output files the first timeFileListGoal.getFiles()is called; empty by default.- Overrides:
provideFilesin classFileListGoal<P extends GSProject>
-
getOutputFile
Returns the output FASTQ file for the given tax id.- Parameters:
taxid- the tax id (orTOTAL) the file is generated for- Returns:
- the output FASTQ file for the given tax id
-
makeFile
Description copied from class:FileGoalProduces the given output file.- Specified by:
makeFilein classFileGoal<P extends GSProject>- Parameters:
file- the output file to produce- Throws:
IOException- if the file cannot be written
-