|
open("d:/secondary.txt","w").writelines( ["Residue %s: %s\n"%(a.resi,a.ss) for a in cmd.get_model("protein-name" +" and n. ca").atom] )
其中protein-name需要替换成序列名称,结果会保存到d:/secondary.txt
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-11-23 09:06
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社