说明设计停止条件和容器资源配置
This commit is contained in:
parent
30cdd05914
commit
eb7033c496
4 changed files with 85 additions and 26 deletions
|
|
@ -1687,6 +1687,7 @@ A+B</textarea>
|
|||
<label>
|
||||
<span data-i18n="design_stop_condition"></span>
|
||||
<input id="designStopCondition" type="number" value="0.02" min="0.001" max="0.99" step="0.01" />
|
||||
<small class="minor-note" data-i18n="design_stop_condition_hint"></small>
|
||||
</label>
|
||||
<label>
|
||||
<span data-i18n="design_max_time_hours"></span>
|
||||
|
|
@ -1706,8 +1707,8 @@ A+B</textarea>
|
|||
<label>
|
||||
<span data-i18n="design_fixed_target_policy"></span>
|
||||
<select id="designFixedTargetPolicy">
|
||||
<option value="exclude_from_optimization" data-i18n="design_fixed_target_exclude"></option>
|
||||
<option value="include" data-i18n="design_fixed_target_include"></option>
|
||||
<option value="exclude_from_optimization" data-i18n="design_fixed_target_exclude"></option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
|
|
@ -2223,14 +2224,15 @@ A+B</textarea>
|
|||
design_help: "Design 按 NUPACK 的 `Domain -> TargetStrand -> TargetComplex/TargetTube` 关系组织。可先定义 domain 约束,再在链输入中用空格分隔的 domain composition 组装链;也可让某条链继续直接使用整链 IUPAC 约束。",
|
||||
design_guide_btn: "打开 Design 教学",
|
||||
design_stop_condition: "停止条件 f_stop",
|
||||
design_stop_condition_hint: "f_stop 越小越严格,可能极慢;若长时间无法达到该缺陷阈值,设计会持续搜索。",
|
||||
design_max_time_hours: "最大设计时间 (小时)",
|
||||
design_seed_label: "随机种子",
|
||||
design_wobble_label: "Wobble mutations",
|
||||
design_wobble_allow: "允许",
|
||||
design_wobble_prohibit: "禁止",
|
||||
design_fixed_target_policy: "固定目标策略",
|
||||
design_fixed_target_exclude: "剥离出优化",
|
||||
design_fixed_target_include: "参与优化",
|
||||
design_fixed_target_exclude: "剥离固定目标以提速",
|
||||
design_fixed_target_include: "参与优化(官方默认)",
|
||||
design_tab_targets: "Target Tubes",
|
||||
design_tab_hard: "Hard Constraints",
|
||||
design_tab_soft: "Soft Constraints",
|
||||
|
|
@ -2574,14 +2576,15 @@ A+B</textarea>
|
|||
design_help: "Design follows the NUPACK `Domain -> TargetStrand -> TargetComplex/TargetTube` hierarchy. You can define domains first and then compose strands from domain tokens, while still allowing any strand to stay as a whole-strand IUPAC constraint when needed.",
|
||||
design_guide_btn: "Open Design Guide",
|
||||
design_stop_condition: "Stop Condition f_stop",
|
||||
design_stop_condition_hint: "Smaller f_stop values are stricter and can be extremely slow; design keeps searching until this defect threshold is reached.",
|
||||
design_max_time_hours: "Max Design Time (hours)",
|
||||
design_seed_label: "Random Seed",
|
||||
design_wobble_label: "Wobble Mutations",
|
||||
design_wobble_allow: "Allow",
|
||||
design_wobble_prohibit: "Prohibit",
|
||||
design_fixed_target_policy: "Fixed Target Policy",
|
||||
design_fixed_target_exclude: "Exclude from Optimization",
|
||||
design_fixed_target_include: "Include in Optimization",
|
||||
design_fixed_target_exclude: "Exclude Fixed Targets for Speed",
|
||||
design_fixed_target_include: "Include in Optimization (Official Default)",
|
||||
design_tab_targets: "Target Tubes",
|
||||
design_tab_hard: "Hard Constraints",
|
||||
design_tab_soft: "Soft Constraints",
|
||||
|
|
@ -4070,7 +4073,7 @@ A+B</textarea>
|
|||
document.getElementById("designSeed").value = payload.design?.seed ?? 0;
|
||||
document.getElementById("designWobble").value = String(payload.design?.wobble_mutations ?? false);
|
||||
document.getElementById("designMaxTimeHours").value = ((payload.design?.max_time_seconds ?? 0) / 3600);
|
||||
document.getElementById("designFixedTargetPolicy").value = payload.design?.fixed_target_policy ?? "exclude_from_optimization";
|
||||
document.getElementById("designFixedTargetPolicy").value = payload.design?.fixed_target_policy ?? "include";
|
||||
const payloadCompute = Array.isArray(payload.compute) ? payload.compute : [];
|
||||
document.querySelectorAll(".check input").forEach((input) => {
|
||||
input.checked = payloadCompute.includes(input.value);
|
||||
|
|
@ -6176,7 +6179,7 @@ A+B</textarea>
|
|||
document.getElementById("designSeed").value = example.design?.seed ?? 0;
|
||||
document.getElementById("designWobble").value = String(example.design?.wobble_mutations ?? false);
|
||||
document.getElementById("designMaxTimeHours").value = ((example.design?.max_time_seconds ?? 0) / 3600);
|
||||
document.getElementById("designFixedTargetPolicy").value = example.design?.fixed_target_policy ?? "exclude_from_optimization";
|
||||
document.getElementById("designFixedTargetPolicy").value = example.design?.fixed_target_policy ?? "include";
|
||||
document.getElementById("complexesText").value = example.complexes_text;
|
||||
const exampleCompute = Array.isArray(example.compute) ? example.compute : [];
|
||||
document.querySelectorAll(".check input").forEach((input) => {
|
||||
|
|
|
|||
|
|
@ -371,7 +371,7 @@ def parse_design_options(payload):
|
|||
"seed": int(raw.get("seed", 0)),
|
||||
"wobble_mutations": bool(raw.get("wobble_mutations", False)),
|
||||
"max_time_seconds": int(raw.get("max_time_seconds", 0)),
|
||||
"fixed_target_policy": str(raw.get("fixed_target_policy", "exclude_from_optimization")).strip().lower(),
|
||||
"fixed_target_policy": str(raw.get("fixed_target_policy", "include")).strip().lower(),
|
||||
}
|
||||
if options["trials"] < 1 or options["trials"] > 8:
|
||||
raise ValueError("design trials must be between 1 and 8.")
|
||||
|
|
@ -2245,7 +2245,7 @@ EXAMPLE_PAYLOAD = {
|
|||
"seed": 0,
|
||||
"wobble_mutations": False,
|
||||
"max_time_seconds": 0,
|
||||
"fixed_target_policy": "exclude_from_optimization",
|
||||
"fixed_target_policy": "include",
|
||||
},
|
||||
"design_domains": [
|
||||
{"name": "a", "sequence": "N10"},
|
||||
|
|
@ -2307,7 +2307,7 @@ DESIGN_TUBE_EXAMPLE_PAYLOAD = {
|
|||
"seed": 1,
|
||||
"wobble_mutations": False,
|
||||
"max_time_seconds": 0,
|
||||
"fixed_target_policy": "exclude_from_optimization",
|
||||
"fixed_target_policy": "include",
|
||||
},
|
||||
"design_domains": [
|
||||
{"name": "a", "sequence": "N10"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue