Package org.metagene.genestrip.goals
Class FastqMapGoal<P extends GSProject>
java.lang.Object
org.metagene.genestrip.make.Goal<P>
org.metagene.genestrip.make.ObjectGoal<Map<String,StreamingResourceStream>,P>
org.metagene.genestrip.goals.FastqMapGoal<P>
- Type Parameters:
P- the project type
public class FastqMapGoal<P extends GSProject>
extends ObjectGoal<Map<String,StreamingResourceStream>,P>
Produces the mapping from key to fastq (or fasta) streaming resources, assembled from the project's configured
input paths/URLs, an optional map CSV file, and any extra resources.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.metagene.genestrip.make.Goal
Goal.LogHeapInfo -
Constructor Summary
ConstructorsConstructorDescriptionFastqMapGoal(P project, boolean fastqType, Goal<P>... deps) Creates the goal that derives the fastq/fasta resource map for the project. -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<String,StreamingResourceStream> createFastqMap(String key, String[] fastqs, String orKey, StreamingResourceStream otherResources, String mapFilePath) Assembles the key-to-resources map from the given input paths/URLs, the optional map CSV file and the extra resources, preserving insertion order of keys.protected voidPerforms the actual work of producing this goal's output; empty by default and overridden by subclasses.protected List<StreamingResource>getResources(String pathOrURL) Resolves a path or URL string to the corresponding streaming resources, ornullif none exist.Methods inherited from class org.metagene.genestrip.make.ObjectGoal
allDependentsMade, doCleanThis, dump, get, isMade, logSetObject, set, toStringMethods inherited from class org.metagene.genestrip.make.Goal
alreadyMade, append, booleanConfigValue, clean, clean, cleanThis, configValue, dependentMade, detachFromDependencies, doubleConfigValue, endMake, getDependencies, getKey, getLogger, getProject, hasTransDependencyFor, initKey, intConfigValue, isAllowTransitiveClean, isCleaned, isPotentiallyRequired, isWeakDependency, logHeapInfo, logHeapInfo, longConfigValue, make, makeThis, markPotentiallyRequired, startMake, stringConfigValue, transitiveClean
-
Constructor Details
-
FastqMapGoal
Creates the goal that derives the fastq/fasta resource map for the project.- Parameters:
project- the projectfastqType- whether the goal handles fastq (true) or fasta (false) filesdeps- the goals this goal depends on
-
-
Method Details
-
doMakeThis
protected void doMakeThis()Description copied from class:GoalPerforms the actual work of producing this goal's output; empty by default and overridden by subclasses.- Overrides:
doMakeThisin classGoal<P extends GSProject>
-
createFastqMap
protected Map<String,StreamingResourceStream> createFastqMap(String key, String[] fastqs, String orKey, StreamingResourceStream otherResources, String mapFilePath) Assembles the key-to-resources map from the given input paths/URLs, the optional map CSV file and the extra resources, preserving insertion order of keys.- Parameters:
key- the key for the input files, ornullto derive it from the first filefastqs- the input fastq/fasta paths or URLs, ornullorKey- the key under which the extra resources are added, ornullotherResources- the extra streaming resources to add, ornullmapFilePath- the path to the mapping CSV file, ornull- Returns:
- the assembled key-to-resources map
-
getResources
Resolves a path or URL string to the corresponding streaming resources, ornullif none exist.- Parameters:
pathOrURL- the path or URL to resolve- Returns:
- the matching streaming resources, or
nullif none exist
-