# pyFASPR
A python wrapper of FASPR, a fast and accurate protein sidechain builder
## Install
#### via PyPI
``` bash
pip install pyfaspr
```
#### via GitHub
``` bash
pip install git+https://github.com/ShintaroMinami/pyFASPR.git
```
## Usage as python module
``` python
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
``` bash
# 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
``` bash
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](https://github.com/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
``` bibtex
@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}
}
```
Raw data
{
"_id": null,
"home_page": "https://github.com/ShintaroMinami/pyfaspr",
"name": "pyfaspr",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "Shintaro Minami",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/54/93/a68e2bb3cc9d9c6d12e3925c17df447ac9c5fc0a80aa2ded14d4cc78b8ed/pyfaspr-0.3.1.tar.gz",
"platform": null,
"description": "# pyFASPR\nA python wrapper of FASPR, a fast and accurate protein sidechain builder\n\n## Install\n#### via PyPI\n``` bash\npip install pyfaspr\n```\n\n#### via GitHub\n``` bash\npip install git+https://github.com/ShintaroMinami/pyFASPR.git\n```\n\n## Usage as python module\n``` python\nfrom pyfaspr import run_FASPR\n\n# PDB file input\npdb_text_out = run_FASPR(pdb=\"pdb/file/path.pdb\")\n\n# PDB string input\npdb_text_in = \"\nATOM 1 N GLY A 1 -12.034 2.689 10.030 1.00 0.00\nATOM 2 CA GLY A 1 -11.462 3.121 8.735 1.00 0.00\nATOM 3 C GLY A 1 -10.273 2.258 8.357 1.00 0.00\n....\n\"\npdb_text_out = run_FASPR(pdb=pdb_text_in)\n\n# Override sequence\nseq_update = \"GTILIFLDKNKEQAEKLAKEVGVTEIYESDN...\"\npdb_text_out = run_FASPR(pdb=pdb_in, sequence=seq_update)\n\n```\n\n## Usage of pyfaspr script\n``` bash\n# To build sidechains\npyfaspr input.pdb\n\n# Build sidechains with overriding new sequence\npyfaspr input.pdb -s GTILIFLDKNKEQAEKLAKEVGVTEIYESDN...\n\n# To build sidechains and save a new PDB file\npyfaspr input.pdb -o output.pdb\n```\n\n### Option details\n``` bash\nusage: pyfaspr [-h] [--sequence SEQUENCE] [--output_pdb OUTPUT_PDB] [--verbose] pdb\n\nRun FASPR to build sidechains for a PDB file.\n\npositional arguments:\n pdb Input PDB file path\n\noptions:\n -h, --help show this help message and exit\n --sequence SEQUENCE, -s SEQUENCE\n Amino acid sequence to be overridden (optional) (default: None)\n --output_pdb OUTPUT_PDB, -o OUTPUT_PDB\n Output PDB file path (optional) (default: None)\n --verbose, -v Enable verbose output (default: False)\n```\n\n\n## Original GitHub reopository\nThis code includes [tommyhuangthu](https://github.com/tommyhuangthu)'s excellent open source software, FASPR. The original repository is available on MIT license here, https://github.com/tommyhuangthu/FASPR.git.\n\nThe author of this repo appreciate to the FASPR team for making such great methods and software available!\n\n## Citations\n``` bibtex\n@article{huang2020faspr,\n title={FASPR: an open-source tool for fast and accurate protein side-chain packing},\n author={Huang, Xiaoqiang and Pearce, Robin and Zhang, Yang},\n journal={Bioinformatics},\n volume={36},\n number={12},\n pages={3758--3765},\n year={2020},\n publisher={Oxford University Press}\n}\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "A python wrapper of FASPR, a fast and accurate protein sidechain builder",
"version": "0.3.1",
"project_urls": {
"Homepage": "https://github.com/ShintaroMinami/pyfaspr"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "5493a68e2bb3cc9d9c6d12e3925c17df447ac9c5fc0a80aa2ded14d4cc78b8ed",
"md5": "89506f9c8ab58a48ebe4b075ee82535f",
"sha256": "5908e84546f8b33cd6a7b65093092b1edca9197c9ba0ac0d103ca0c132d771b4"
},
"downloads": -1,
"filename": "pyfaspr-0.3.1.tar.gz",
"has_sig": false,
"md5_digest": "89506f9c8ab58a48ebe4b075ee82535f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 9503214,
"upload_time": "2025-07-14T02:14:18",
"upload_time_iso_8601": "2025-07-14T02:14:18.807417Z",
"url": "https://files.pythonhosted.org/packages/54/93/a68e2bb3cc9d9c6d12e3925c17df447ac9c5fc0a80aa2ded14d4cc78b8ed/pyfaspr-0.3.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-14 02:14:18",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ShintaroMinami",
"github_project": "pyfaspr",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pyfaspr"
}