PyRosetta (14) Keep Region Mover

PyRosetta (14): Keep Region Mover

Introduction

Keep the residues in the selected range.

Initiation

1
from pyrosetta.rosetta.protocols.grafting.simple_movers import KeepRegionMover

Instantiation & Configuration of KeepRegionMover

1
keep_ch2 = KeepRegionMover(res_start=str(my_pose.chain_begin(2)), res_end=str(my_pose.chain_end(2)-1))

Apply the mover to the Pose object

1
keep_ch2.apply(my_pose)

Note: concatenation

On the contrary, we can concatenate 2 poses into 1 pose:

1
>pyrosetta.rosetta.core.pose.append_pose_to_pose(pose1=pose_A, pose2=pose_BC, new_chain=True)
  • 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:

请我喝杯咖啡吧~

支付宝
微信