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.9.tar.gz (30.1 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.9-py3-none-any.whl (34.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: provis-0.0.9.tar.gz
  • Upload date:
  • Size: 30.1 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.9.tar.gz
Algorithm Hash digest
SHA256 b282652b683ac170ca4057156213d73084dc0bf2c3bca4f865bc755b2ceb8bec
MD5 8fc10b2b0a0439b67b6950911298207c
BLAKE2b-256 a601268e6d6b6a9e781f8510ec7f82989c071ac2f11555ab412e6a1abbfcb40a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: provis-0.0.9-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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 fb15d14511abe4f4fd55614379c81d0e146b2348e82a55ac46e59dfb5506b6c1
MD5 b15e1bfe779b3eb42e9c75f535d9fa66
BLAKE2b-256 aa1b65927dd9546c6d2cfb06f54d09571ab14ddbe4d052e775a240a4396b53b4

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