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

All Samples(10)  |  Call(10)  |  Derive(0)  |  Import(0)

src/b/i/biopython-HEAD/Tests/test_SCOP_Raf.py   biopython(Download)
    def testSeqMapIndex(self):
        filename = ("./SCOP/raftest.txt")
 
        index = Raf.SeqMapIndex(filename)
        r = index.getSeqMap("103m")
        self.assertEqual(r.flags, "111011")
 
        r = index.getSeqMap("103m 1-10")
        self.assertEqual(r.pdbid, "103m",)
        self.assertEqual(len(r.res), 10)
        self.assertEqual(r.pdb_datestamp, "010301")
        self.assertEqual(r.flags, "111011")
 
        r = index.getSeqMap("104l A:")
        self.assertEqual(r.pdbid, "104l")
 
        r = index.getSeqMap("104l A:112-113")
        self.assertEqual(r.pdbid, "104l")
        self.assertEqual(len(r.res), 2)
 
        r = index.getSeqMap("104l A:112-113,B:146-148")

src/b/i/biopython-1.63/Tests/test_SCOP_Raf.py   biopython(Download)
    def testSeqMapIndex(self):
        filename = ("./SCOP/raftest.txt")
 
        index = Raf.SeqMapIndex(filename)
        r = index.getSeqMap("103m")
        self.assertEqual(r.flags, "111011")
 
        r = index.getSeqMap("103m 1-10")
        self.assertEqual(r.pdbid, "103m",)
        self.assertEqual(len(r.res), 10)
        self.assertEqual(r.pdb_datestamp, "010301")
        self.assertEqual(r.flags, "111011")
 
        r = index.getSeqMap("104l A:")
        self.assertEqual(r.pdbid, "104l")
 
        r = index.getSeqMap("104l A:112-113")
        self.assertEqual(r.pdbid, "104l")
        self.assertEqual(len(r.res), 2)
 
        r = index.getSeqMap("104l A:112-113,B:146-148")