Exemplo n.º 1
0
def get_postprocess_op_set(task_config):
    exp_config = task_config.exp_config
    return op.CytokitOpSet(
        illumination_op=illumination_correction.IlluminationCorrection(
            exp_config)
        if task_config.op_flags.run_illumination_correction else None,
        unmixing_op=spectral_unmixing.SpectralUnmixing(exp_config)
        if task_config.op_flags.run_spectral_unmixing else None,
        cytometry_op=cytometry.get_op(exp_config)
        if task_config.op_flags.postprocessing_enabled() else None)
Exemplo n.º 2
0
def get_preprocess_op_set(task_config):
    exp_config = task_config.exp_config
    return op.CytokitOpSet(
        align_op=drift_compensation.CytokitDriftCompensator(exp_config)
        if task_config.op_flags.run_drift_comp else None,
        focus_op=best_focus.CytokitFocalPlaneSelector(exp_config)
        if task_config.op_flags.run_best_focus else None,
        decon_op=deconvolution.CytokitDeconvolution(exp_config)
        if task_config.op_flags.run_deconvolution else None,
        summary_op=tile_summary.CytokitTileSummary(exp_config)
        if task_config.op_flags.run_summary else None,
        crop_op=tile_crop.CytokitTileCrop(exp_config)
        if task_config.op_flags.run_crop else None,
        cytometry_op=cytometry.get_op(exp_config)
        if task_config.op_flags.run_cytometry else None)