Skip to main content

A python wrapper of FASPR, a fast and accurate protein sidechain builder

Project description

pyFASPR

A python wrapper of FASPR, a fast and accurate protein sidechain builder

Install

via PyPI

pip install pyfaspr

via GitHub

pip install git+https://github.com/ShintaroMinami/pyFASPR.git

Usage as python module

from pyfaspr import run_FASPR

# PDB file input
pdb_text_out = run_FASPR(pdb="pdb/file/path.pdb")

# PDB string input
pdb_text_in = "
ATOM      1  N   GLY A   1     -12.034   2.689  10.030  1.00  0.00
ATOM      2  CA  GLY A   1     -11.462   3.121   8.735  1.00  0.00
ATOM      3  C   GLY A   1     -10.273   2.258   8.357  1.00  0.00
....
"
pdb_text_out = run_FASPR(pdb=pdb_text_in)

# Override sequence
seq_update = "GTILIFLDKNKEQAEKLAKEVGVTEIYESDN..."
pdb_text_out = run_FASPR(pdb=pdb_in, sequence=seq_update)

Usage of pyfaspr script

# To build sidechains
pyfaspr input.pdb

# Build sidechains with overriding new sequence
pyfaspr input.pdb -s GTILIFLDKNKEQAEKLAKEVGVTEIYESDN...

# To build sidechains and save a new PDB file
pyfaspr input.pdb -o output.pdb

Option details

usage: pyfaspr [-h] [--sequence SEQUENCE] [--output_pdb OUTPUT_PDB] [--verbose] pdb

Run FASPR to build sidechains for a PDB file.

positional arguments:
  pdb                   Input PDB file path

options:
  -h, --help            show this help message and exit
  --sequence SEQUENCE, -s SEQUENCE
                        Amino acid sequence to be overridden (optional) (default: None)
  --output_pdb OUTPUT_PDB, -o OUTPUT_PDB
                        Output PDB file path (optional) (default: None)
  --verbose, -v         Enable verbose output (default: False)

Original GitHub reopository

This code includes tommyhuangthu's excellent open source software, FASPR. The original repository is available on MIT license here, https://github.com/tommyhuangthu/FASPR.git.

The author of this repo appreciate to the FASPR team for making such great methods and software available!

Citations

@article{huang2020faspr,
  title={FASPR: an open-source tool for fast and accurate protein side-chain packing},
  author={Huang, Xiaoqiang and Pearce, Robin and Zhang, Yang},
  journal={Bioinformatics},
  volume={36},
  number={12},
  pages={3758--3765},
  year={2020},
  publisher={Oxford University Press}
}

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

pyfaspr-0.2.0.tar.gz (9.4 MB view details)

Uploaded Source

File details

Details for the file pyfaspr-0.2.0.tar.gz.

File metadata

  • Download URL: pyfaspr-0.2.0.tar.gz
  • Upload date:
  • Size: 9.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyfaspr-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0ae53ce16fde65f959eb48e06dba01fcf6badb9d33ffca375a1dd949c806d7b0
MD5 de42e4e5b8622f668e88e98f4d515bb2
BLAKE2b-256 4251a900b06c1450c3863033e30716c82c2076c928198e90b22c22f57a741fd9

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