Spaces:
Sleeping
Sleeping
Commit
·
42b9925
1
Parent(s):
3fc8ecf
Update code/pdb_featureVector.py
Browse files- code/pdb_featureVector.py +16 -16
code/pdb_featureVector.py
CHANGED
|
@@ -257,22 +257,22 @@ def pdb(input_set, mode, impute):
|
|
| 257 |
header = structure.header
|
| 258 |
resolution = header.get('resolution', 'N/A')
|
| 259 |
# Print UniProt IDs, chain ID, and resolution for the current model
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
|
| 277 |
print()
|
| 278 |
st.write()
|
|
|
|
| 257 |
header = structure.header
|
| 258 |
resolution = header.get('resolution', 'N/A')
|
| 259 |
# Print UniProt IDs, chain ID, and resolution for the current model
|
| 260 |
+
for i, chain in enumerate(model, start=1):
|
| 261 |
+
chain_id = chain.get_id()
|
| 262 |
+
st.write(f"---- Information for Chain {chain_id} in Model {i} ----")
|
| 263 |
+
st.write(f"UniProt IDs: {', '.join(uniprot_ids)}")
|
| 264 |
+
st.write(f"Chain ID: {chain_id}")
|
| 265 |
+
st.write(f"PDB ID: {search.upper()}")
|
| 266 |
+
st.write(f"Resolution: {resolution}")
|
| 267 |
+
st.write(f"Sequence: {sequence}")
|
| 268 |
+
pdb_fasta.at[index, 'pdbID'] = search
|
| 269 |
+
pdb_fasta.at[index, 'chain'] = chain_id
|
| 270 |
+
pdb_fasta.at[index, 'pdbSequence'] = str(sequence)
|
| 271 |
+
pdb_info.at[index, 'uniprotID'] = ', '.join(uniprot_ids)
|
| 272 |
+
pdb_info.at[index, 'pdbID'] = search
|
| 273 |
+
pdb_info.at[index, 'chain'] = chain_id
|
| 274 |
+
pdb_info.at[index, 'resolution'] = resolution
|
| 275 |
+
index += 1
|
| 276 |
|
| 277 |
print()
|
| 278 |
st.write()
|