biopython--PDB.polypepide

Bio.PDB.Polypeptide.index_to_one(index):

已知氨基酸索引,获得索引对应的氨基酸简写

>>> index_to_one(0)
'A'
>>> index_to_one(19)
'Y'

Bio.PDB.Polypeptide.one_to_index(s):

已知氨基酸简写,获得氨基酸的索引

>>> one_to_index('A')
0
>>> one_to_index('Y')
19


Bio.PDB.Polypeptide.index_to_three(i)

索引对应的三个字母的氨基酸名称。

>>> index_to_three(0)
'ALA'
>>> index_to_three(19)
'TYR'

Bio.PDB.Polypeptide.three_to_index(s)

索引的三个字母代码。

>>> three_to_index('ALA')
0
>>> three_to_index('TYR')
19


 Bio.PDB.Polypeptide.three_to_one(s)

三个字母代码对应一个字母代码。

>>> three_to_one('ALA')
'A'
>>> three_to_one('TYR')
'Y'

对于非标准氨基酸,您会得到一个KeyError:

>>> three_to_one('MSE')
Traceback (most recent call last):
   ...
KeyError: 'MSE'

Bio.PDB.Polypeptide.one_to_three(s)

一个字母代码到三个字母代码。

>>> one_to_three('A')
'ALA'
>>> one_to_three('Y')
'TYR'


Bio.PDB.Polypeptide.is_aa(residuestandard=False)

如果残基对象/字符串是氨基酸,则返回True。

参数:

  • residue (L{Residue} or string) -- L{残基}对象或三个字母的氨基酸编码

  • standard (boolean) -- 检查20个AA的标志(默认值为FALSE)

>>> is_aa('ALA')
True

支持已知的用于修饰氨基酸的三个字母代码,

>>> is_aa('FME')
True
>>> is_aa('FME', standard=True)
False


简单处理蛋白质的所用到的就是这些!!!

日后有用到别的继续补充!!:):)

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值