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.15.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.15-py3-none-any.whl (34.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: provis-0.0.15.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.15.tar.gz
Algorithm Hash digest
SHA256 7740fc82bab04cf69fb68ad6c85f7a85e3bc24e0fb3f02e1cf4d38692ee1230e
MD5 8811def4b4d4a248e147de8a9a68c414
BLAKE2b-256 9931b553b45a001a818f3e39e565ab40fbce95136c471793472e5261f94b60aa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: provis-0.0.15-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.15-py3-none-any.whl
Algorithm Hash digest
SHA256 ea65889cdd732ea064656d8e920393efcd00e410ee7e1201fa2a5c8715013004
MD5 9e08cd7835681429cc8838ba0021498b
BLAKE2b-256 d78a5ad9e2b49bb5026aedec7a499f705390703e7de0915163b9a36be9fbe5e5

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