opencloning 0.2.7.1__py3-none-any.whl → 0.2.7.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,11 +32,16 @@ def homologous_recombination_primers(
32
32
  target_tm: float,
33
33
  spacers: list[str] | None = None,
34
34
  tm_func: Callable[[str], float] = primer3_calc_tm,
35
+ estimate_function: Callable[[str], float] | None = None,
35
36
  ) -> tuple[str, str]:
36
37
 
37
38
  fragment2amplify = pcr_loc.extract(pcr_seq)
38
39
  amplicon = primer_design(
39
- fragment2amplify, limit=minimal_hybridization_length, target_tm=target_tm, tm_func=tm_func
40
+ fragment2amplify,
41
+ limit=minimal_hybridization_length,
42
+ target_tm=target_tm,
43
+ tm_func=tm_func,
44
+ estimate_function=estimate_function,
40
45
  )
41
46
 
42
47
  if insert_forward:
@@ -87,10 +92,17 @@ def gibson_assembly_primers(
87
92
  circular: bool,
88
93
  spacers: list[str] | None = None,
89
94
  tm_func: Callable[[str], float] = primer3_calc_tm,
95
+ estimate_function: Callable[[str], float] | None = None,
90
96
  ) -> list[PrimerModel]:
91
97
 
92
98
  initial_amplicons = [
93
- primer_design(template, limit=minimal_hybridization_length, target_tm=target_tm, tm_func=tm_func)
99
+ primer_design(
100
+ template,
101
+ limit=minimal_hybridization_length,
102
+ target_tm=target_tm,
103
+ tm_func=tm_func,
104
+ estimate_function=estimate_function,
105
+ )
94
106
  for template in templates
95
107
  ]
96
108
 
@@ -146,6 +158,7 @@ def simple_pair_primers(
146
158
  left_enzyme_inverted: bool = False,
147
159
  right_enzyme_inverted: bool = False,
148
160
  tm_func: Callable[[str], float] = primer3_calc_tm,
161
+ estimate_function: Callable[[str], float] | None = None,
149
162
  ) -> tuple[PrimerModel, PrimerModel]:
150
163
  """
151
164
  Design primers to amplify a DNA fragment, if left_enzyme or right_enzyme are set, the primers will be designed
@@ -158,7 +171,13 @@ def simple_pair_primers(
158
171
  if len(spacers) != 2:
159
172
  raise ValueError("The 'spacers' list must contain exactly two elements.")
160
173
 
161
- amplicon = primer_design(template, limit=minimal_hybridization_length, target_tm=target_tm, tm_func=tm_func)
174
+ amplicon = primer_design(
175
+ template,
176
+ limit=minimal_hybridization_length,
177
+ target_tm=target_tm,
178
+ tm_func=tm_func,
179
+ estimate_function=estimate_function,
180
+ )
162
181
  fwd_primer, rvs_primer = amplicon.primers()
163
182
 
164
183
  if fwd_primer is None or rvs_primer is None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: opencloning
3
- Version: 0.2.7.1
3
+ Version: 0.2.7.2
4
4
  Summary: Backend of OpenCloning, a web application to generate molecular cloning strategies in json format, and share them with others.
5
5
  License: MIT
6
6
  Author: Manuel Lera-Ramirez
@@ -35,11 +35,11 @@ opencloning/gateway.py,sha256=qaefWKjfASuVU_nXnCCoDepQq1jhNINNW0VifkCLVC0,9123
35
35
  opencloning/get_router.py,sha256=l2DXaTbeL2tDqlnVMlcewutzt1sjaHlxku1X9HVUwJk,252
36
36
  opencloning/main.py,sha256=l9PrPBMtGMEWxAPiPWR15Qv2oDNnRoNd8H8E3bZW6Do,3750
37
37
  opencloning/ncbi_requests.py,sha256=9dWkJL98ZUzxr3K6_R7MWjMEAX1DvkK8n_XrvFcz9fo,5388
38
- opencloning/primer_design.py,sha256=oNKTBVsF0FBNV2zOTApJewrTlLRlURg-LVq_tO5kHp4,8730
38
+ opencloning/primer_design.py,sha256=nqCmYIZ7UvU4CQwVGJwX7T5LTHwt3-51_ZcTZZAgT_Y,9175
39
39
  opencloning/pydantic_models.py,sha256=S3ehXeynVlYJQK-G96D0jApMp7dn-eRg1di9d0DbsEc,15045
40
40
  opencloning/request_examples.py,sha256=QAsJxVaq5tHwlPB404IiJ9WC6SA7iNY7XnJm63BWT_E,2944
41
41
  opencloning/utils.py,sha256=wsdTJYliap-t3oa7yQE3pWDa1CR19mr5lUQfocp4hoM,1875
42
- opencloning-0.2.7.1.dist-info/LICENSE,sha256=VSdVE1f8axjIh6gvo9ZZygJdTVkRFMcwCW_hvjOHC_w,1058
43
- opencloning-0.2.7.1.dist-info/METADATA,sha256=A6hyx9dHl2ygBtp0zHNQUH4HzKcdxZ3klDSxqsxcKVw,8429
44
- opencloning-0.2.7.1.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
45
- opencloning-0.2.7.1.dist-info/RECORD,,
42
+ opencloning-0.2.7.2.dist-info/LICENSE,sha256=VSdVE1f8axjIh6gvo9ZZygJdTVkRFMcwCW_hvjOHC_w,1058
43
+ opencloning-0.2.7.2.dist-info/METADATA,sha256=wiwBqTVMSOMVGGTUOlC3KRpvbxECHDc3cavN3ZmtxDU,8429
44
+ opencloning-0.2.7.2.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
45
+ opencloning-0.2.7.2.dist-info/RECORD,,