我想从任何蛋白质数据库中提取蛋白质序列和它们相应的二级结构,RCSB说。我只需要短序列和它们的二级结构。就像,
ATRWGUVT Helix即使序列很长,它也很好,但我希望在结尾处有一个标记来表示它的二级结构。是否有任何编程工具或任何可用于此的工具。
正如我上面所展示的,我只想要这么少的信息。我怎样才能做到这一点?
发布于 2017-04-04 10:34:54
您可以使用DSSP。
DSSP的输出在“解释”中得到了广泛的解释。产出的简短摘要如下:
H = α-helix
B = residue in isolated β-bridge
E = extended strand, participates in β ladder
G = 3-helix (310 helix)
I = 5 helix (π-helix)
T = hydrogen bonded turn
S = bend发布于 2017-07-08 09:24:17
from Bio.PDB import *
from distutils import spawn提取顺序:
def get_seq(pdbfile):
p = PDBParser(PERMISSIVE=0)
structure = p.get_structure('test', pdbfile)
ppb = PPBuilder()
seq = ''
for pp in ppb.build_peptides(structure):
seq += pp.get_sequence()
return seq如前面所解释的,用DSSP提取二级结构:
def get_secondary_struc(pdbfile):
# get secondary structure info for whole pdb.
if not spawn.find_executable("dssp"):
sys.stderr.write('dssp executable needs to be in folder')
sys.exit(1)
p = PDBParser(PERMISSIVE=0)
ppb = PPBuilder()
structure = p.get_structure('test', pdbfile)
model = structure[0]
dssp = DSSP(model, pdbfile)
count = 0
sec = ''
for residue in model.get_residues():
count = count + 1
# print residue,count
a_key = list(dssp.keys())[count - 1]
sec += dssp[a_key][2]
print sec
return sec这应该同时打印序列和二级结构。
https://stackoverflow.com/questions/43186771
复制相似问题