Dear Python forum members,
The script I have written below (the_script.py) works fine with this terminal command at MAC OS Mojave Python 2.7:
And not involve < or > and return the output to ABC.txt. The .pdb file is a text file as well.
Sincerely,
Aurimas
The script I have written below (the_script.py) works fine with this terminal command at MAC OS Mojave Python 2.7:
Quote:python the_script.py < ABC.pdb > ABC.txt! However I want my script (the_script.py below) written through terminal to be like this:
Quote:python the_script.py ABC.pdb!
And not involve < or > and return the output to ABC.txt. The .pdb file is a text file as well.
#!/usr/bin/python2 import sys import subprocess process = subprocess.Popen( ["voronota","get-balls-from-atoms-file","--annotated"],stdin=subprocess.PIPE, stdout=subprocess.PIPE) output=process.communicate(sys.stdin.read())[0]; print outputI will look forward to all the replies.
Sincerely,
Aurimas