Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我无法仅对 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))