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

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

src/c/o/cogent-1.5.3/tests/test_parse/test_flowgram.py   cogent(Download)
                                    'Flow Indexes': "1\t2\t3\t3\t3\t3\t6\t8\t8\t8"})
 
        trimmed = f.getPrimerTrimmedFlowgram(primerseq="TA")
        #test primer trimming
        self.assertEqual(trimmed.toSeq(), "CCCCAGGG")
        self.assertEqual(str(trimmed), "0.00\t0.00\t4.10\t0.00\t0.00\t1.23\t0.00\t3.10")
        for (a,b) in zip(trimmed.flowgram, [0.0,0.0,4.1,0.0,0.0,1.23,0.0,3.1]):
            self.assertFloatEqual(a,b)
 
        trimmed = f.getPrimerTrimmedFlowgram(primerseq="TACC")
 
        # test that primer trimming does not leave ambig flow at begin
        trimmed = f.getPrimerTrimmedFlowgram(primerseq="TACCCC")
        for (a,b) in zip(trimmed.flowgram, [0.0,1.23,0.0,3.1]):
            self.assertFloatEqual(a,b)

src/p/y/pycogent-HEAD/tests/test_parse/test_flowgram.py   pycogent(Download)
                                    'Flow Indexes': "1\t2\t3\t3\t3\t3\t6\t8\t8\t8"})
 
        trimmed = f.getPrimerTrimmedFlowgram(primerseq="TA")
        #test primer trimming
        self.assertEqual(trimmed.toSeq(), "CCCCAGGG")
        self.assertEqual(str(trimmed), "0.00\t0.00\t4.10\t0.00\t0.00\t1.23\t0.00\t3.10")
        for (a,b) in zip(trimmed.flowgram, [0.0,0.0,4.1,0.0,0.0,1.23,0.0,3.1]):
            self.assertFloatEqual(a,b)
 
        trimmed = f.getPrimerTrimmedFlowgram(primerseq="TACC")
 
        # test that primer trimming does not leave ambig flow at begin
        trimmed = f.getPrimerTrimmedFlowgram(primerseq="TACCCC")
        for (a,b) in zip(trimmed.flowgram, [0.0,1.23,0.0,3.1]):
            self.assertFloatEqual(a,b)