def test_major_pair(self): seg1 = self.universe.residues[3].atoms.segids[0] seg2 = self.universe.residues[19].atoms.segids[0] maj = nuclinfo.major_pair(self.universe, 4, 20, seg1, seg2) assert_almost_equal( maj, 2.9400151, err_msg="Watson-Crick distance does not match expected value.")
def test_major_pair_2(self): val = nuclinfo.major_pair(self.u, 5, 9, seg1='RNAA', seg2='RNAA') assert_almost_equal(val, 12.581, decimal=3)
def test_major_pair_1(self): val = nuclinfo.major_pair(self.u, 2, 12, seg1='RNAA', seg2='RNAA') assert_almost_equal(val, 30.001, decimal=3)
def test_major_pair(universe): seg1 = universe.residues[3].atoms.segids[0] seg2 = universe.residues[19].atoms.segids[0] maj = nuclinfo.major_pair(universe, 4, 20, seg1, seg2) assert_almost_equal(maj, 2.9400151, err_msg="Watson-Crick distance does not match expected value.")
def test_major_pair(u, i, bp, seg1, seg2, expected_value): val = nuclinfo.major_pair(u, i, bp, seg1=seg1, seg2=seg2) assert_almost_equal(val, expected_value, decimal=3)
def test_major_pair(self): seg1 = self.universe.residues[3].segids()[0] seg2 = self.universe.residues[19].segids()[0] maj = numpy.array(nuclinfo.major_pair(self.universe, 4, 20, seg1, seg2), dtype=numpy.float32) assert_almost_equal(maj, 2.9400151, err_msg="Watson-Crick distance does not match expected value.")