In Biopython-PDB, please teach me about all atoms distance
1
0
Entering edit mode
7.6 years ago
hwendiv • 0

Hello, Nice people.

I want to get all atoms distance in a PDB file by biopython

especially,

all atoms in all protein residue - all atoms in all water(HOH)

And, I want to take <2.5A

But, I don't know these methods

Please teach me.

p=PDBParser() s=p.get_structure('ID','file')

next.....?

need all atoms in all residue

need all atoms in all HOH

Assembly • 3.7k views
ADD COMMENT
0
Entering edit mode
ADD REPLY
0
Entering edit mode
4.8 years ago
M.O.L.S ▴ 100

In order to get all atoms in a residue, you can either:

use the unfold_entities function inside of the Selection module in Bio.PDB. If you want all of the atoms in a residue, this means that you use the target level "A" and the entity list is the the name of your residue.

or

Use the .get_list() instance method on your residue.

Hope this helps !

ADD COMMENT

Login before adding your answer.

Traffic: 2018 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6