Re: [PyMOL] Load mmtf data

2017-07-26 Thread Thomas Holder
Hi Gianluca, This is a good find, thanks a lot for the bug report. It took me quite a white to understand what's going wrong here. The solution is: use the "load_raw" function instead of "load". cmd.load_raw(b, "mmtf", "str") Cheers, Thomas > On Jul 25, 2017, at 8:17 AM, Gianluca Tomasello

Re: [PyMOL] Load mmtf data

2017-07-25 Thread Gianluca Tomasello
Hi Thomas, something strange happen when I try to load 4v99.mmtf using this procedure (other PDB files works proprely as far as I know): download the file from https://mmtf.rcsb.org/v1.0/full/4V99 then in script: with open(file_path,"rb") as binary: b = binary.read() cmd.load(b, "str", 0, cmd.loa

Re: [PyMOL] Load mmtf data

2017-06-22 Thread Thomas Holder
Hi Gianluca, Yes this is possible, assuming you're using PyMOL 1.8.6. Use something like this: def read_mmtfstr(contents, oname, state=0): return cmd.load(contents, oname, state, cmd.loadable.mmtfstr) Cheers, Thomas > On Jun 21, 2017, at 12:07 PM, Gianluca Tomasello wrote: > > Hi, I am

[PyMOL] Load mmtf data

2017-06-22 Thread Gianluca Tomasello
Hi, I am using read_pdbstr function to load a strucutres into pymol. Is there a way to do the same for mmtf file formats? (I mean without using temporary files) -- Check out the vibrant tech community on one of the world's