Skip to content

Accessing volumetric data as numpy arrays #16

Open
@OleinikovasV

Description

@OleinikovasV

Dear developers!
I got interested in using this module to employ VMD's volmap functionality to calculate density grids and do comparisons while in python environment. While I am successful in making the calculations (after loading vmd and a trajectory) via evaltcl:
vmd.evaltcl('volmap density [atomselect 0 "name CA"] -res 1.0 -allframes -mol 0')
However, I am only able to save the files as ".dx" via tcleval and no direct access to the grid data that could be further manipulated.
Some manipulation is available through volutil package but it also just reads/writes ".dx" files and does not keep them as referable objects. It also is just passable through tcleval. (so hardly any upgrade from using a .tcl scripts).

Would it be possible to interface the volumetric data as 3D numpy arrays via vmd.vmdnumpy* ? That would be fantastic!

Many thanks for your comments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions