Chain
1. Distance calculation¶
We calculate the distance between residues from two given chains. The pp.dist.one_vs_one
makes a one-against-one comparison between residues.
Python
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
|
Output
res_fas_id1 res1 res_pdb_id1 res_fas_id2 res2 res_pdb_id2 dist
0 1 A 1 1 A 1 33.363850
1 1 A 1 2 E 2 27.019474
2 1 A 1 3 Y 3 29.652020
3 1 A 1 4 Q 4 28.374273
4 1 A 1 5 N 5 29.460558
... ... ... ... ... ... ... ...
84576 281 G 281 -27423 W 297 41.042576
84577 281 G 281 -27422 G 298 42.089241
84578 281 G 281 -27421 Q 299 43.358837
84579 281 G 281 -27420 N 300 44.846886
84580 281 G 281 -27419 H 301 46.933315
[84581 rows x 7 columns]
2. Check interaction¶
Each residue in the chain 1 has a minimum distance against all of residues in the chain 2. It stops the calculations of the minimum distance of each residue to each residue in the chain 2 when it detects a minimum distance of less than thres
, 6 by default. pp.dist.check_chain_complex
checks two chains given.
Python
1 2 3 4 5 6 7 8 9 10 11 12 |
|
Output
D:\Programming\anaconda3\envs\prot\Lib\site-packages\Bio\PDB\PDBParser.py:395: PDBConstructionWarning: Ignoring unrecognized record 'END' at line 2234
warnings.warn(
28/07/2024 20:02:04 logger: =========>Protein PDB code 1: 1aij
28/07/2024 20:02:04 logger: =========>Protein PDB chain 1: L
28/07/2024 20:02:04 logger: =========>Protein PDB code 2: 1aij
28/07/2024 20:02:04 logger: =========>Protein PDB chain 2: M
28/07/2024 20:02:04 logger: ==================>residue 1 ID: 0
D:\Programming\anaconda3\envs\prot\Lib\site-packages\Bio\PDB\PDBParser.py:395: PDBConstructionWarning: Ignoring unrecognized record 'END' at line 2406
warnings.warn(
28/07/2024 20:02:04 logger: ==================>residue 0 and residue 252 in interaction
The results are saved to the 1aijL_1aijM.pcheck
file. It has the following content.
1aij L
1aij M