Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(7)  |  Derive(0)  |  Import(1)

src/m/d/MDAnalysis-0.8.1/MDAnalysis/analysis/hbonds.py   MDAnalysis(Download)
from MDAnalysis.core.AtomGroup import AtomGroup
import MDAnalysis.KDTree.NeighborSearch as NS
from MDAnalysis.core.util import norm, angle, parse_residue
from MDAnalysis.core.log import ProgressMeter
 
                r = self.table[cursor]
                r.donor_idx = donor_idx
                r.donor_resnm, r.donor_resid, r.donor_atom = parse_residue(donor)
                r.acceptor_idx = acceptor_idx
                r.acceptor_resnm, r.acceptor_resid, r.acceptor_atom = parse_residue(acceptor)
        for hframe in self.timeseries:
            for donor_idx, acceptor_idx, donor, acceptor, distance, angle in hframe:
                donor_resnm, donor_resid, donor_atom = parse_residue(donor)
                acceptor_resnm, acceptor_resid, acceptor_atom = parse_residue(acceptor)
                # generate unambigous key for current hbond

src/m/d/MDAnalysisTests-0.8.1/MDAnalysisTests/test_util.py   MDAnalysisTests(Download)
def check_parse_residue(rstring, residue):
    assert_equal(util.parse_residue(rstring), residue)
 
def check_convert_aa_3to1(resname3, resname1):
    assert_equal(util.convert_aa_code(resname3), resname1)