gwf icon indicating copy to clipboard operation
gwf copied to clipboard

Added target group

Open jakobjn opened this issue 10 months ago • 0 comments

Added group attribute to Target and AnonymousTarget classes. The group attribute of AnonymousTarget defaults to the template function name.

The feature is useful for visualizing compact dependency graphs and has been tested on the example workflows in addition to an in-house workflow under development.

The post initiation assignment of the group attribute could potentially be removed or enhanced.

Tests on example workflows

  1. examples/minimal-workflow
{
  'SayHello': {'group': None},
  'World': {'group': None},
  'Universe': {'group': None},
  'All': {'group': None}
}
  1. examples/minimal-workflow-explicit-options
{
  'SayHello': {'group': None},
  'World': {'group': None},
  'Universe': {'group': None},
  'All': {'group': None}
}
  1. examples/named-inputs-outputs
{
  'Producer': {'group': None},
  'Consumer1': {'group': None},
  'Consumer2': {'group': None}
}
  1. examples/readmapping
{
  'UnzipGenome': {'group': 'unzip'},
  'IndexGenome': {'group': 'bwa_index'},
  'MapReads': {'group': 'bwa_map'}
}
  1. examples/simple-workflow
{
  'Target1': {'group': None},
  'Target2': {'group': None}
}
  1. examples/using-map
{
  'filter_chromosomes_0': {'group': 'filter_chromosomes'},
  'filter_chromosomes_1': {'group': 'filter_chromosomes'},
  'filter_chromosomes_2': {'group': 'filter_chromosomes'},
  'compute_stats_0': {'group': 'compute_stats'},
  'compute_stats_1': {'group': 'compute_stats'},
  'compute_stats_2': {'group': 'compute_stats'},
  'sum_counts': {'group': 'sum_ts'},
  'compute_avg_len_0': {'group': 'compute_avg_len'},
  'compute_avg_len_1': {'group': 'compute_avg_len'},
  'compute_avg_len_2': {'group': 'compute_avg_len'}
}

jakobjn avatar Apr 25 '24 17:04 jakobjn