Exemple #1
0
    def test_long_right_primer_default_behavior(self, gfp):

        design = Design()
        design.settings.template(gfp)
        design.settings.right_sequence(rc(gfp[-50:]))
        design.PRIMER_MAX_TM.value = 75.0
        design.PRIMER_MAX_SIZE = 35
        design.PRIMER_PICK_ANYWAY = 1
        with pytest.raises(Primer3PlusRunTimeError):
            design.run_and_optimize(10)
Exemple #2
0
    def test_long_right_primer(self, gfp):

        design = Design()
        design.settings.template(gfp)
        design.settings.right_sequence(rc(gfp[-50:]))
        design.PRIMER_MAX_TM.value = 75.0
        design.PRIMER_MAX_SIZE = 35
        design.PRIMER_PICK_ANYWAY = 1
        design.settings.long_ok()
        pairs, explain = design.run_and_optimize(10)
        print(explain)
        assert pairs
Exemple #3
0
    def test_set_long_overhang(self, gfp):
        design = Design()
        design.settings.template(gfp)
        design.settings.left_sequence(gfp[0:50])
        design.PRIMER_MAX_TM.value = 75.0
        design.PRIMER_MAX_SIZE = 35
        design.PRIMER_PICK_ANYWAY = 1
        design.settings.left_overhang("AAAAAAAAA")
        design.settings.long_ok()
        design.settings.use_overhangs()
        design.settings.pick_anyway()
        pairs, explain = design.run()

        print(explain)
        import json

        print(json.dumps(pairs[0]["LEFT"], indent=1))
        assert pairs