예제 #1
0
    def test_minor_pair(self):
        seg1 = self.universe.residues[3].atoms.segids[0]
        seg2 = self.universe.residues[19].atoms.segids[0]

        minor = nuclinfo.minor_pair(self.universe, 4, 20, seg1, seg2)
        assert_almost_equal(
            minor,
            3.7739358,
            err_msg="Watson-Crick distance does not match expected value.")
예제 #2
0
 def test_minor_pair_2(self):
     val = nuclinfo.minor_pair(self.u, 20, 5, seg1='RNAA', seg2='RNAA')
     assert_almost_equal(val, 4.356, decimal=3)
예제 #3
0
 def test_minor_pair_1(self):
     val = nuclinfo.minor_pair(self.u, 3, 17, seg1='RNAA', seg2='RNAA')
     assert_almost_equal(val, 16.649, decimal=3)
예제 #4
0
def test_minor_pair(universe):
    seg1 = universe.residues[3].atoms.segids[0]
    seg2 = universe.residues[19].atoms.segids[0]

    minor = nuclinfo.minor_pair(universe, 4, 20, seg1, seg2)
    assert_almost_equal(minor, 3.7739358, err_msg="Watson-Crick distance does not match expected value.")
예제 #5
0
def test_minor_pair(u, i, bp, seg1, seg2, expected_value):
    val = nuclinfo.minor_pair(u, i, bp, seg1=seg1, seg2=seg2)
    assert_almost_equal(val, expected_value, decimal=3)
예제 #6
0
def test_minor_pair(u, i, bp, seg1, seg2, expected_value):
    val = nuclinfo.minor_pair(u, i, bp, seg1=seg1, seg2=seg2)
    assert_almost_equal(val, expected_value, decimal=3)
예제 #7
0
    def test_minor_pair(self):
        seg1 = self.universe.residues[3].segids()[0]
        seg2 = self.universe.residues[19].segids()[0]

        minor = numpy.array(nuclinfo.minor_pair(self.universe, 4, 20, seg1, seg2), dtype=numpy.float32)
        assert_almost_equal(minor, 3.7739358, err_msg="Watson-Crick distance does not match expected value.")