Skip to main content

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}
}

Metadata

Release files for pyfaspr 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyfaspr 0.3.1
File Size Uploaded
pyfaspr-0.3.1.tar.gz 9.5 MB Details

Release files / pyfaspr-0.3.1.tar.gz

Download URL pyfaspr-0.3.1.tar.gz
Size 9.5 MB
Tags Source
SHA-256 checksum
How to use checksums
5908e84546f8b33cd6a7b65093092b1edca9197c9ba0ac0d103ca0c132d771b4
BLAKE2b-256 checksum
How to use checksums
5493a68e2bb3cc9d9c6d12e3925c17df447ac9c5fc0a80aa2ded14d4cc78b8ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.3.1 This release

1 release file

0.3.0

1 release file

0.2.1

1 release file

0.2.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page