Skip to main content

Protein structure Fetcher from online databases

Project description

profet

A Python 3 protein structure fetcher. Retrieves the cif or pdb files from either the RCSB Protein Data Bank (PDB, using pypdb) or Alphafold using the Uniprot ID.

Installation

Install using pip:

$ pip install profet

To install the development version, which contains the latest features and fixes, install directly from GitHub using

$ pip install git+git://github.com/alan-turing-institute/profet

Test the installation, navigate to the root directory and run

$ pytest

This code has been designed and tested for Python 3.

Usage

This package can be used to retrieve the available protein structure from any Uniprot ID.

The Fetcher class can search the IDs in both PDB and Alphafold, and saves the search results in a dictionary.

get_file returns the structure corresponding to uniprot_id in the defined filetype: (default as 'pdb', option as 'cif'), searching first in the defaulted database db (default as 'pdb', option as 'alphafold'). The files can be saved to a local file with filesave.

set_default_db changes the default database into the given one between 'pdb' and 'alphafold'.

Run search_history() to see the search history of the fetcher.

Issues and Feature Requests

If you run into an issue, or if you find a workaround for an existing issue, we would very much appreciate it if you could post your question or code as a GitHub issue.

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

profet-0.0.1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

profet-0.0.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file profet-0.0.1.tar.gz.

File metadata

  • Download URL: profet-0.0.1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.5

File hashes

Hashes for profet-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f6c69539cf35c1c2fac74d3dc58571b72368b721b17f22ea4a3f45ebd7053875
MD5 a5ba61b41d51d6bc3c9a2b9f25df0aa9
BLAKE2b-256 f15032868f43c199f444786ce7a12f0c47c8429b70584000f0fc66f31faa830d

See more details on using hashes here.

File details

Details for the file profet-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: profet-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.5

File hashes

Hashes for profet-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3e7c664d60b3a2523c35c66949a9685800dc6f335246ab95c0ec8dbcc9c9fdc1
MD5 df35ba246e59ccec2052b3814641aeb4
BLAKE2b-256 9a04448791cb0edfce665977980c9b52fd784bee6da18b076ca4856a6ca53810

See more details on using hashes here.

Supported by

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