Stream support for exporting pdbs
See original GitHub issueDescribe the workflow you want to enable
I’d like to be able to export a pdb to a stream instead of to disk. In particular the reason why I’d like to do so is so that I can pass the stream directly to wandb.Molecule
Describe your proposed solution
The PandasPdb.to_pdb
method could accept a path_or_stream: typing.Union[io.StringIO, str]
instead of just a path: str
argument. Internally, if path_or_stream
happens to be a io.StringIO
object, we don’t need an openf
function and instread can just execute the internal loops seen here, where f
is now the io.StringIO
object.
Making this change would enable inplace filling the stream with the pdb text.
Describe alternatives you’ve considered, if relevant
Currently I am needlessly writing to disk temporarily, reopening the file, and passing its contents to the wandb.Molecule
object.
Additional context
Issue Analytics
- State:
- Created a year ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Using Data Pump to Move PDBs Within Or Between CDBs
Using Data Pump to Move PDBs Within Or Between CDBs. Data Pump export and import operations on PDBs are identical to those on...
Read more >PDB Export & Import - Pluggable Database - YouTube
PDB Export & Import:Steps:1. Create DUMP directory:2. Table export and import at PDB :3. Schema export and import at PDB :4. PDB export...
Read more >Export from pdb and import into pdb - ORACLE-HELP
In this post, we will see how we can take an export from one pdb and import into another pdb. ... Step 2:...
Read more >PDB support (including export of types) - Cerbero Blog
All the types contained in the PDB can be exported to a Profiler header by pressing Ctrl+R and executing the 'Dump types to...
Read more >Yes, you can export to a series of PDB files as follows
Yes, you can export to a series of PDB files as follows: 1. Select all of the entries you would like to export...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @djberenberg I’ve actually done this already. Code to follow once I find it 😃 I agree this would be a nice feature for biopandas
Here you go: