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

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

src/b/i/biopython-1.63/Bio/SeqIO/SffIO.py   biopython(Download)
    w = SffWriter(handle, xml=metadata)
    w.write_file(sff)  # list
    data = handle.getvalue()
    print("And again with an iterator...")
    handle = StringIO()
    w = SffWriter(handle, xml=metadata)
    w.write_file(iter(sff))
    assert data == handle.getvalue()

src/b/i/biopython-1.63/Bio/Graphics/GenomeDiagram/_Diagram.py   biopython(Download)
        handle = StringIO()
        self.write(handle, output, dpi)
        return handle.getvalue()
 
    def add_track(self, track, track_level):

src/b/i/biopython-1.63/Bio/Phylo/BaseTree.py   biopython(Download)
            handle = StringIO()
            _io.write([self], handle, format_spec)
            return handle.getvalue()
        else:
            # Follow python convention and default to using __str__

src/b/i/biopython-1.63/Bio/Align/Generic.py   biopython(Download)
            handle = StringIO()
            AlignIO.write([self], handle, format_spec)
            return handle.getvalue()
        else:
            #Follow python convention and default to using __str__

src/b/i/biopython-HEAD/Bio/Phylo/BaseTree.py   biopython(Download)
            handle = StringIO()
            _io.write([self], handle, format_spec)
            return handle.getvalue()
        else:
            # Follow python convention and default to using __str__

src/b/i/biopython-HEAD/Bio/Align/Generic.py   biopython(Download)
            handle = StringIO()
            AlignIO.write([self], handle, format_spec)
            return handle.getvalue()
        else:
            #Follow python convention and default to using __str__

src/b/i/biopython-1.63/Bio/SeqRecord.py   biopython(Download)
            handle = StringIO()
        SeqIO.write(self, handle, format_spec)
        return handle.getvalue()
 
    def __len__(self):

src/b/i/biopython-HEAD/Bio/SeqRecord.py   biopython(Download)
            handle = StringIO()
        SeqIO.write(self, handle, format_spec)
        return handle.getvalue()
 
    def __len__(self):

src/b/i/biopython-HEAD/Tests/test_SeqIO_SeqXML.py   biopython(Download)
        SeqIO.write(record, handle, "seqxml")
        handle.seek(0)
        output = handle.getvalue()
        self.assertTrue("Homo sapiens (Human)" in output)
        self.assertTrue("9606" in output)

src/b/i/biopython-HEAD/Tests/test_SeqIO_convert.py   biopython(Download)
        SeqIO.convert(in_filename, in_format, handle2, out_format, alphabet)
    #We could re-parse this, but it is simpler and stricter:
    assert handle.getvalue() == handle2.getvalue()
 
 

  1 | 2  Next