No atom within a given radius. #241
Replies: 1 comment 8 replies
-
Did you get an error? |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
May you please help me,
I have a PDB format of crystal structure file( LiV3(TeO6)2. I want to find the no of atoms around each Li within a 4 A radius in the unit cell. I try to replicate the same as following,
st = gemmi.read_structure('/Users/rahul/Downloads/structure.pdb')
ns = gemmi.NeighborSearch(st[0],st.cell,4).populate(include_h=False)
ref_atom = st[0].sole_residue('',gemmi.SeqId('1')).sole_atom('Li')
marks = ns.find_neighbors('Li',min_dist=0.1,max_dist=4)
len(marks)
Beta Was this translation helpful? Give feedback.
All reactions