gpt4 book ai didi

python - Pymol:使用 cmd.color 命令查看特定链上的残基

转载 作者:行者123 更新时间:2023-12-01 07:37:44 33 4
gpt4 key购买 nike

我无法仅对 Pymol 中特定链的残基进行着色。抱歉,这似乎是一个明确的初学者问题。

到目前为止,我只能对所有链上具有特定值(例如 141)的所有残基进行着色。

#I want to colour residue 141 on chain D blue.
first_res = 141
color("blue", 'resi ' + first_res)

最佳答案

要从特定链中选择残基,只需添加“and chain ...”,如下所示:

cmd.color("blue", 'resi ' + first_res + ' and chain ' + first_chain))

关于python - Pymol:使用 cmd.color 命令查看特定链上的残基,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56900861/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com