Class FastqMapGoal<P extends GSProject>

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.
  • Constructor Details

    • FastqMapGoal

      @SafeVarargs public FastqMapGoal(P project, boolean fastqType, Goal<P>... deps)
      Creates the goal that derives the fastq/fasta resource map for the project.
      Parameters:
      project - the project
      fastqType - whether the goal handles fastq (true) or fasta (false) files
      deps - the goals this goal depends on
  • Method Details

    • doMakeThis

      protected void doMakeThis()
      Description copied from class: Goal
      Performs the actual work of producing this goal's output; empty by default and overridden by subclasses.
      Overrides:
      doMakeThis in class Goal<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, or null to derive it from the first file
      fastqs - the input fastq/fasta paths or URLs, or null
      orKey - the key under which the extra resources are added, or null
      otherResources - the extra streaming resources to add, or null
      mapFilePath - the path to the mapping CSV file, or null
      Returns:
      the assembled key-to-resources map
    • getResources

      protected List<StreamingResource> getResources(String pathOrURL)
      Resolves a path or URL string to the corresponding streaming resources, or null if none exist.
      Parameters:
      pathOrURL - the path or URL to resolve
      Returns:
      the matching streaming resources, or null if none exist