- Installing the
pyprotpackage - Using the command line scripts
- Optional: Adding the scripts to your PATH
**Note that PyProt was only tested to work with Python 3.x.**
If you have pip installed on your system, pyprot can be installed via the command
pip install pyprot
- Download pyprot from this GitHub repository at https://github.com/rasbt/pyprot/archive/master.zip.
- After unzipping the archive,
cdinto thepyprotdirectory. - Install
pyprotit via the commandpython setup.py install,
Python scripts based on the pyprot classes for common protein file operations is provided in the subdirectory ./scripts and can be directly be executed via Python from this directory once pyprot is installed.
If you installed pyprot via pip, you can download the the scripts bundle separately (pyprot-scripts.zip).
The scripts can be executed via
python path-to-script/script-name.py
or
./path-to-script/script-name.py
Since the usage of those provided scripts is optional, they will not be automatically installed if you install pyprot. I recommend you to copy them to a different directory on your drive, e.g., ~/home/username/pyprot-scripts/ and add the script directory to your PATH.
#### Appending the script directory to PATH
E.g., if you are using a bash shell, you can add the line
export PATH=$PATH:/home/username/pyprot_scripts/
to your ~/.bash_profile or ~/.bashrc file.
You can do this directly from the command line via
echo "export PATH=$PATH:/home/username/pyprot_scripts/" >> .bash_profile