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

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

src/m/g/mgtaxa-HEAD/MGT/Entrez.py   mgtaxa(Download)
                email=self.email,
                **kw)
        for rec in Entrez.parse(net_handle):
            yield rec
        net_handle.close()

src/p/u/pubmedpy-HEAD/author_networks/author_net_functions.py   pubmedpy(Download)
 
    in_handle = open(filename, "r")
    citations = Entrez.parse(in_handle)
 
    ids=[]

src/b/i/biopython-HEAD/Tests/test_Entrez_online.py   biopython(Download)
    def test_parse_from_url(self):
        """Test Entrez.parse from URL"""
        efetch = Entrez.efetch(db='protein', id='15718680,157427902,119703751',
                retmode='xml')
        recs = Entrez.parse(efetch)

src/b/i/biopython-HEAD/Tests/test_Entrez.py   biopython(Download)
        handle.close()
        handle = open('GenBank/NT_019265.gb', "rb")
        iterator = Entrez.parse(handle)
        self.assertRaises(Parser.NotXMLError, next, iterator)
        handle.close()
        handle.close()
        handle = open('Fasta/wisteria.nu', "rb")
        iterator = Entrez.parse(handle)
        self.assertRaises(Parser.NotXMLError, next, iterator)
        handle.close()
        # Test if the error is also raised with Entrez.parse
        handle = open('Entrez/pubmed3.html', "rb")
        records = Entrez.parse(handle)
        self.assertRaises(Parser.NotXMLError, next, records)
        handle.close()
        # Test if the error is also raised with Entrez.parse
        handle = open('Entrez/journals.xml', "rb")
        records = Entrez.parse(handle)
        self.assertRaises(Parser.NotXMLError, next, records)
        handle.close()

src/b/i/biopython-1.63/Tests/test_Entrez.py   biopython(Download)
        handle.close()
        handle = open('GenBank/NT_019265.gb', "rb")
        iterator = Entrez.parse(handle)
        self.assertRaises(Parser.NotXMLError, next, iterator)
        handle.close()
        handle.close()
        handle = open('Fasta/wisteria.nu', "rb")
        iterator = Entrez.parse(handle)
        self.assertRaises(Parser.NotXMLError, next, iterator)
        handle.close()
        # Test if the error is also raised with Entrez.parse
        handle = open('Entrez/pubmed3.html', "rb")
        records = Entrez.parse(handle)
        self.assertRaises(Parser.NotXMLError, next, records)
        handle.close()
        # Test if the error is also raised with Entrez.parse
        handle = open('Entrez/journals.xml', "rb")
        records = Entrez.parse(handle)
        self.assertRaises(Parser.NotXMLError, next, records)
        handle.close()

src/b/i/biopython-1.63/Tests/test_Entrez_online.py   biopython(Download)
    def test_parse_from_url(self):
        """Test Entrez.parse from URL"""
        efetch = Entrez.efetch(db='protein', id='15718680,157427902,119703751',
                retmode='xml')
        recs = Entrez.parse(efetch)