Exemple #1
0
                cell_concentration=cell_concentration,
                buffer_source=buffer_trough,
                cell_volume=cell_volume)
            # optimize the syringe_concentration using heuristic equations and known binding constants
            # TODO extract m, v and V0 from protocol somehow?

            # Warning, you're possibly not getting the setup you want. Consider not using the Heuristic Experiment
            experiment.heuristic_syringe(ligand_ka, 10, strict=False)
            # rescale if syringe > stock. Store factor.
            factors.append(experiment.rescale())
            ligand_protein_experiments.append(experiment)

    # Define corresponding ligand into buffer experiments
    for experiment in ligand_protein_experiments:
        experiment = copy.deepcopy(experiment)
        experiment.cell_source = buffer_trough
        experiment.cell_concentration *= 0
        ligand_buffer_experiments.append(experiment)

    # TODO, since we are changing ligands, we'd have to wash the syringe.
    # Add ligand to protein experiment(s) to set
    for ligand_protein_experiment in ligand_protein_experiments:
        itc_experiment_set.addExperiment(ligand_protein_experiment)
        # pprint.pprint(ligand_protein_experiment.__dict__)

    # Add ligand_to_buffer experiment(s) to set
    for ligand_buffer_experiment in ligand_buffer_experiments:
        itc_experiment_set.addExperiment(ligand_buffer_experiment)
        # pprint.pprint(ligand_buffer_experiment.__dict__)

# Add cleaning experiment.
                cell_concentration=cell_concentration,
                buffer_source=caii_buffer_trough,
                cell_volume=cell_volume)
            # optimize the syringe_concentration using heuristic equations and known binding constants
            # TODO extract m, v and V0 from protocol somehow?

            # Warning, you're possibly not getting the setup you want. Consider not using the Heuristic Experiment
            experiment.heuristic_syringe(ligand_ka, 10, strict=False)
            # rescale if syringe > stock. Store factor.
            factors.append(experiment.rescale())
            ligand_protein_experiments.append(experiment)

    # Define corresponding ligand into buffer experiments
    for experiment in ligand_protein_experiments:
        experiment = copy.deepcopy(experiment)
        experiment.cell_source = caii_buffer_trough
        experiment.cell_concentration *= 0
        ligand_buffer_experiments.append(experiment)

    # TODO, since we are changing ligands, we'd have to wash the syringe.
    # Add ligand to protein experiment(s) to set
    for ligand_protein_experiment in ligand_protein_experiments:
        itc_experiment_set.addExperiment(ligand_protein_experiment)
        # pprint.pprint(ligand_protein_experiment.__dict__)

    # Add ligand_to_buffer experiment(s) to set
    for ligand_buffer_experiment in ligand_buffer_experiments:
        itc_experiment_set.addExperiment(ligand_buffer_experiment)
        # pprint.pprint(ligand_buffer_experiment.__dict__)

# Add cleaning experiment.