Skip to content

Latest commit

 

History

History
87 lines (45 loc) · 2.45 KB

File metadata and controls

87 lines (45 loc) · 2.45 KB

PyProt Installation



**Note that PyProt was only tested to work with Python 3.x.**

Installing the pyprot package

[back to top]

a) Installing pyprot via pip

If you have pip installed on your system, pyprot can be installed via the command

pip install pyprot

b) Downloading and installing pyprot from GitHub

  1. Download pyprot from this GitHub repository at https://github.com/rasbt/pyprot/archive/master.zip.
  2. After unzipping the archive, cd into the pyprot directory.
  3. Install pyprot it via the command python setup.py install,


Using the command line scripts

[back to top]

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


[Optional] Adding the scripts to your PATH

[back to top]

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