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/b/i/biopython-1.63/Tests/test_motifs.py   biopython(Download)
    def test_pfm_parsing(self):
        """Test if Bio.motifs can parse JASPAR-style pfm files.
        """
        m = motifs.read(self.PFMin, "pfm")
        self.assertEqual(m.length, 12)
 
    def test_sites_parsing(self):
        """Test if Bio.motifs can parse JASPAR-style sites files.
        """
        m = motifs.read(self.SITESin, "sites")
    def setUp(self):
        handle = open("motifs/SRF.pfm")
        self.m = motifs.read(handle, "pfm")
        handle.close()
        self.s = Seq("ACGTGTGCGTAGTGCGT", self.m.alphabet)

src/b/i/biopython-HEAD/Tests/test_motifs.py   biopython(Download)
    def test_pfm_parsing(self):
        """Test if Bio.motifs can parse JASPAR-style pfm files.
        """
        m = motifs.read(self.PFMin, "pfm")
        self.assertEqual(m.length, 12)
 
    def test_sites_parsing(self):
        """Test if Bio.motifs can parse JASPAR-style sites files.
        """
        m = motifs.read(self.SITESin, "sites")
    def setUp(self):
        handle = open("motifs/SRF.pfm")
        self.m = motifs.read(handle, "pfm")
        handle.close()
        self.s = Seq("ACGTGTGCGTAGTGCGT", self.m.alphabet)