hiv_workflow.lib.analysis.download_analyzer_by_experiment module

class hiv_workflow.lib.analysis.download_analyzer_by_experiment.DownloadAnalyzerByExperiment(filenames, output_path, use_run_number=True, use_sample_index=True)

Bases: idmtools.entities.ianalyzer.IAnalyzer

This analyzer is based on the DownloadAnalyzer and allows the download of files based on a Index and Repetition tags

run_number = 'Run_Number'
sample_tag = '__sample_index__'
directory_for_experiment_and_file(experiment_id, filename)
per_group(items)

Call once before running the apply on the items.

Parameters

items – Objects with attributes of type ItemId. IDs of one or more higher-level hierarchical objects can be obtained from these IDs in order to perform tasks with them.

Returns

None

map(data, item)

In parallel for each simulation/work item, consume raw data from filenames and emit selected data.

Parameters
  • data – A dictionary associating filename with content for simulation data.

  • itemIItem object that the passed data is associated with.

Returns

Selected data for the given simulation/work item.

reduce(all_data)

Combine the map() data for a set of items into an aggregate result.

Parameters

all_data – A dictionary with entries for the item ID and selected data.