Quantcast
Channel: Active questions tagged vmd - Stack Overflow
Viewing all articles
Browse latest Browse all 33

Controlling external program with python

$
0
0

for my studies I need to process a lot of data. The data needs to be analyzed by a program called VMD and should finally be stored in an excel sheet. My aim is to automate the whole process instead of copy pasting all the different files.

I am a complete beginner with python and at the very start of writing my own program. I managed to open VMD with a python script with:

import subprocessresult = subprocess.run(['C:Program Files (x86)\\University of Illinois\\VMD\\vmd.exe', "-c", "C:\\Users\\MrTemper\\Documents\\HiWi\\Trajektorien\\Traj_2_5_to_10ps_IFR_MD_298K_1.pdb"], shell=True)

but now I want the program to load the .pdb file into the VMD program. If I run the program an error occurs: "The system could not find the given path".

How do I solve this problem? And what is the general way to control the GUI VMD program with a python script?

Answers in german language are also possible. Thanks.


Viewing all articles
Browse latest Browse all 33

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>