pyrosetta-basic icon indicating copy to clipboard operation
pyrosetta-basic copied to clipboard

FastRelax 可以只优化局部的侧链么

Open WindCanDie opened this issue 2 years ago • 3 comments

复合物的时候FastRelax 可以只优化其中一条的侧链么

WindCanDie avatar Aug 02 '23 05:08 WindCanDie

可以,把movemap设置一下就行

2023年8月2日 13:54,langjingxiang @.***> 写道:

复合物的时候FastRelax 可以只优化其中一条的侧链么

— Reply to this email directly, view it on GitHub https://github.com/guyujun/pyrosetta-basic/issues/11, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACNOERV2R5BPCFZQORW6ZVTXTHTPRANCNFSM6AAAAAA3AXVY2Q. You are receiving this because you are subscribed to this thread.

guyujun avatar Aug 02 '23 06:08 guyujun

fastrelax = FastRelax()
mmap = pyrosetta.rosetta.core.kinematics.MoveMap()
mutation_position = 180
mmap.set_jump(True)
for i in range(10):
    mmap.set_bb_true_range(mutation_position, mutation_position + 10)
    mmap.set_chi_true_range(mutation_position, mutation_position + 10)
fastrelax.set_scorefxn(scorefxn)
fastrelax.set_movemap(mmap)
fastrelax.max_iter(3)
fastrelax.apply(pose)

这样子写是不是就可以了

WindCanDie avatar Aug 02 '23 06:08 WindCanDie

可以的

2023年8月2日 14:57,langjingxiang @.***> 写道:

fastrelax = FastRelax() mmap = pyrosetta.rosetta.core.kinematics.MoveMap() mutation_position = 180 mmap.set_jump(True) for i in range(10): mmap.set_bb_true_range(mutation_position, mutation_position + 10) mmap.set_chi_true_range(mutation_position, mutation_position + 10) fastrelax.set_scorefxn(scorefxn) fastrelax.set_movemap(mmap) fastrelax.max_iter(3) fastrelax.apply(pose) 这样子写是不是就可以了

— Reply to this email directly, view it on GitHub https://github.com/guyujun/pyrosetta-basic/issues/11#issuecomment-1661609063, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACNOERTDIXW3LUTWOJ6T2PDXTH24XANCNFSM6AAAAAA3AXVY2Q. You are receiving this because you commented.

guyujun avatar Aug 02 '23 07:08 guyujun