Skip to main content

Python Package for residue mapping between UniProt and PDB entries.

Project description

UniPDB Residue Mapper

PyPI PyPI - Downloads pylint

This package maps residue numbering from UniProt/PDB to PDB/UniProt.

Install

pip install unipdb_mapper

Usage

This package can be used either in any of the Python scripts or via the terminal.

Usage via Python Script

  1. Importing within a Python script
from unipdb_mapper import ResiduesMapper
  1. Residue Mapping from UniProt to PDB
M = ResiduesMapper('P19339', [122, 145], 'UniProt')
MAP = M.resmapper_unp2pdb()
print(MAP)
  1. Residue Mapping from PDB to UniProt
M = ResiduesMapper('1b7f', [123, 145], 'PDB')
MAP = M.resmapper_pdb2unp()
print(MAP)
  1. Save results to a file
OUTFILE = M.output_writer('output.csv', MAP)

Usage via Terminal

  1. Getting help
$ unipdb -h
  1. Residue Mapping from UniProt to PDB
$ unipdb -u P19339 -n 122 123 156 -o output.csv
  1. Residue Mapping from PDB to UniProt
$ unipdb -p 1b7f -n 122 123 156 -o abc.csv

News

If you like/use this repository, don't forget to give a star 🌟.

Some exciting updates including examples are planned so stay tuned!!

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

unipdb_mapper-0.0.1.tar.gz (48.3 kB view details)

Uploaded Source

Built Distribution

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

unipdb_mapper-0.0.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: unipdb_mapper-0.0.1.tar.gz
  • Upload date:
  • Size: 48.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for unipdb_mapper-0.0.1.tar.gz
Algorithm Hash digest
SHA256 379802b1afeac02a342cb0e300101dd2446c236877b7c89d0356d874145ce4fb
MD5 cde25e98ef9831f5903d63744258c276
BLAKE2b-256 aaae5a3b50d7df23587a4983e44a51e4edc1c2a6cb27133c0f3f8e0f0bc84234

See more details on using hashes here.

File details

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

File metadata

  • Download URL: unipdb_mapper-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for unipdb_mapper-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3a9dab72732151e2cd0eed9c49576daeaa5aca43f8221b981a74003fb7b577c1
MD5 876a6ff154b7a10792382724f4f4d0a6
BLAKE2b-256 63524253fd44627d132da0d7e3dcae1db289f9f3594e43cf0707353f7eec01e4

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