def make_operational_tx_spec(self, asset):
        if not self.is_monocolor():
            raise InvalidTransformationError('Tx spec type not supported!')
        op_tx_spec = SimpleOperationalTxSpec(self.model, asset)
        color_id = list(asset.get_color_set().color_id_set)[0]
        color_def = self.model.get_color_def(color_id)
        for target in self.targets:
            colorvalue = SimpleColorValue(colordef=color_def,
                                          value=target.get_value())
            colortarget = ColorTarget(target.get_address(), colorvalue)
            op_tx_spec.add_target(colortarget)
        return op_tx_spec
%prog build input.bed scaffolds.fasta
dataset/ETHPy150Open chromaway/ngcccbase/ngcccbase/txcons.py/BasicTxSpec.make_operational_tx_spec--crossover with--dataset/ETHPy150Open tanghaibao/jcvi/assembly/allmaps.py/build