Skip to main content

Protein Visualization Library in Python

Project description

provis - A python based PROtein VISualization toolkit

Welcome to the repository of Provis - a python based protein visualization library.

The easiest way to install is with pip install provis, but the library has a few dependencies that have to be installed seperately. Please visit the documentation for installation instructions or continue reading below.

Requirements for Provis

Provis is based on the idea of not to reinvent the wheel, so it requires quite a few third party packages and binaries.

Binaries

OpenBabel

Easiest to install on Linux is by calling:

sudo apt install openbabel

Alterantively: http://openbabel.org/wiki/Main_Page

PDB2PQR and APBS

These binaries are required, as they are used to extract surface inforamtion.

Download from: https://www.poissonboltzmann.org/

MSMS

MSMS is optional. It is used to compute the surface, but a native method for the surface computation also exists in provis.

Download MSMS form: https://ccsb.scripps.edu/mgltools/downloads/

This tutorial might help: http://biskit.pasteur.fr/install/applications/deprecated/msms

Pip

All of the following can be dowloaded using pip and should be automatically installed when installing pip with provis:

  • BioPython
  • Trimesh
  • PyVista
  • Biopandas
  • Torch
  • Pyvtk
  • Open3d

Jupyter Notebook

If you want to run a fully interactive provis in the Jupyter Notebook environment you will have to install the following additional packages. Failing to do so will simply produce snapshot images instead of 3D plots.

pip install ipyvtklink

Setting up Provis

Once you have every library installed, binary downloaded and of course provis installed (either pip or with the setup.py in the root directory) you will need to create a directory structure where provis feels at home. When this is set up you are ready to use provis and run it from anywhere.

Directory structure

You will need a directory with a specific folder structure. This way your directories will remain uncluttered and it makes it easy to create a pipline around provis.

The directories are needed as some parts of file loading is hard coded in provis and if the directory structure is not present errors will occur.

Easy option

The easiest is if you clone provis from github and simply use this github directory as your base directory.

More versitile option

You will need a data/ and (potentially) a binaries/ directory as well.

-- If you set the environment variables for the binaries (provis will then use these to find the binaries) then the binaries/ directory is not needed, but otherwise it is and the binaries from the Requirements section will all have to be copied into there. --

The data/ directory needs the following subdirectiories:

data
├── data
├── pdb
├── img        
└── tmp

The pdb directory is the location to store the pdb files to convert, as if a pdb file is stored here then it is enough to pass the pdb id (filename without extension) to provis and you do not have to pass a full path to the pdb file.

The img directory stores all the screenshots of the outputted plots.

The tmp directory stores all temporary files created by provis, such as the .face and .vert files of MSMS or the .mol2 files needed for the bonds.

The binaries/ directory needs the following executables and subdirectiories:

data
├── apbs
├── msms       
└── pdb2pqr

Where apbs and msms are executables/binaries and the pdb2pqr is the directory downloaded from the official website, containing the pdb2pqr binary.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

provis-0.0.14.tar.gz (30.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

provis-0.0.14-py3-none-any.whl (34.2 kB view details)

Uploaded Python 3

File details

Details for the file provis-0.0.14.tar.gz.

File metadata

  • Download URL: provis-0.0.14.tar.gz
  • Upload date:
  • Size: 30.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for provis-0.0.14.tar.gz
Algorithm Hash digest
SHA256 2350efb1a4ba059478a1116a249448d20629e3e644b82ad28a24a3c4ea8c699e
MD5 666948eaf48e6953f82c1201b5157de4
BLAKE2b-256 b5fc5ae138315b310bac3b3b805c46d90693a5824dffe568cac7220125cf2746

See more details on using hashes here.

File details

Details for the file provis-0.0.14-py3-none-any.whl.

File metadata

  • Download URL: provis-0.0.14-py3-none-any.whl
  • Upload date:
  • Size: 34.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for provis-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 4d004d81f80cf5e33955c5e32b83a27f27aaa395eab7da83a0be9725640e94fb
MD5 9dcbecad80306db52002ea9a4dd8bcd4
BLAKE2b-256 e3ef9c094afc2be3e06ef0200c212deadc310d5fee2d6c538e97b0bfac1309c1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page