Spaces:
Sleeping
Sleeping
Commit
·
5a1ea29
1
Parent(s):
96c038c
Update code/pdb_featureVector.py
Browse files
code/pdb_featureVector.py
CHANGED
@@ -305,6 +305,8 @@ def pdb(input_set, mode, impute):
|
|
305 |
resolution_method = parser.get_structure(search, file)
|
306 |
for record in SeqIO.parse(file, "pdb-seqres"):
|
307 |
if record.dbxrefs[0].split(':')[0] == 'UNP':
|
|
|
|
|
308 |
pdb_fasta.at[index, 'pdbID'] = record.id.split(':')[0]
|
309 |
pdb_fasta.at[index, 'chain'] = record.id.split(':')[1]
|
310 |
pdb_fasta.at[index, 'pdbSequence'] = str(record.seq)
|
|
|
305 |
resolution_method = parser.get_structure(search, file)
|
306 |
for record in SeqIO.parse(file, "pdb-seqres"):
|
307 |
if record.dbxrefs[0].split(':')[0] == 'UNP':
|
308 |
+
st.write(record.id.split(':')[0])
|
309 |
+
st.write(record.id.split(':')[1])
|
310 |
pdb_fasta.at[index, 'pdbID'] = record.id.split(':')[0]
|
311 |
pdb_fasta.at[index, 'chain'] = record.id.split(':')[1]
|
312 |
pdb_fasta.at[index, 'pdbSequence'] = str(record.seq)
|