VMD-L Mailing List
From: Bennion, Brian (bennion1_at_llnl.gov)
Date: Fri Jun 15 2018 - 10:08:50 CDT
- Next message: Peter Freddolino: "Re: Easy way to add hydrogens and get their internal coordinates?"
- Previous message: Vermaas, Joshua: "RE: Easy way to add hydrogens and get their internal coordinates?"
- Next in thread: John Stone: "Re: tcl script to pull pdb file from tgz"
- Reply: John Stone: "Re: tcl script to pull pdb file from tgz"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Hello,
I have a couple thousand pdb files that I need to analyze with a script that VMD calls.
These files are however, bundled in a tar zip archive file.
I may have missed something but tcl has a package tar that allows one to
package require tar
set chan [open myfile.tar.gz]
zlib push gunzip $chan
set data [::tar::get $chan Com_min.pdb -chan]
now the pdb file is in a the data variable and not a file pointer if I am correct.
Can vmd "stream" pdb file data this way?
Thanks for your thoughts.
Brian Bennion
- Next message: Peter Freddolino: "Re: Easy way to add hydrogens and get their internal coordinates?"
- Previous message: Vermaas, Joshua: "RE: Easy way to add hydrogens and get their internal coordinates?"
- Next in thread: John Stone: "Re: tcl script to pull pdb file from tgz"
- Reply: John Stone: "Re: tcl script to pull pdb file from tgz"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]