PyRosetta Packer Task Operations

PyRosetta Packer Task Operations

1
from pyrosetta.rosetta.core.pack.task.operation import *

Prevent residues from repacking/designing

1
2
# PreventRepackingRLT()
my_task_factory.push_back(PreventRepackingRLT())

Allowing repacking, but disallowing designing

1
2
# RestrictToRepackingRLT()
my_task_factory.push_back(RestrictToRepackingRLT())

Operate on selected residues

See PyRosetta Selectors

Note | PyRosetta Selectors

1
2
3
no_packing_non_interface = OperateOnResidueSubset(PreventRepackingRLT(), not_interface_selector)
# Push it back to a TaskFactory object just like any other operations
my_task_factory.push_back( no_packing_non_interface )

Restrict design to user-specified residue

Restrict design to user-specified residues. If resnum is left as 0, the restriction will apply throughout the pose.

1
2
3
4
5
# Enable design on chain_A
aa_to_design = pyrosetta.rosetta.core.pack.task.operation.RestrictAbsentCanonicalAASRLT()
aa_to_design.aas_to_keep("ACDEFGHIKLMNPQRSTVWY")
tf.push_back(pyrosetta.rosetta.core.pack.task.operation.OperateOnResidueSubset(
aa_to_design, chain_A))
  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
  • Copyrights © 2024-2025 Michael Lau
  • Visitors: | Views:

请我喝杯咖啡吧~

支付宝
微信