Skip to main content

A CLI tool and Python library to analyse protein structures from .cif and .pdb files

Project description

Proteinspy

This is a python package based on Poetry.

This repository can be used to find the Resolution, Missing residues, Ligands, and Chains in any Protein sample uploaded. The sample must be in a .cif file format for the package to run properly.

🔋 Installation

pip install proteinspy

Windows note

If proteinspy is not recognized after installation, add the Python Scripts folder to your PATH. Run this once in PowerShell:

$env:PATH += ";$env:APPDATA\Python\Python313\Scripts"
[System.Environment]::SetEnvironmentVariable("PATH", $env:PATH, "User")

Then restart PowerShell and run proteinspy again.

💡 Getting Started

After installation, run this first to see all available commands:

proteinspy

Or use the help flag:

proteinspy --help

📚 Data

A sample protein, has been given, and can also be accessed from the PDB, among many other samples.

🗒️ Requirements

  • python poetry and its pre-requisites (Python 3.9+ and pip).
  • Dependencies installed automatically: gemmi, rich, click

🚀 To run the pipeline,

Copy these and run them directly for quickest results.

1. For a mode based implementation

proteinspy analyze 10AJ.cif    #replace the protein input name with your own file if you're using a different input or a filename

2. For an argument based implementation

proteinspy resolution 10AJ.cif    #gives the resolution of the protein
proteinspy ligands 10AJ.cif       #gives the ligands in the protein
proteinspy missing 10AJ.cif       #gives the missing residues in the protein
proteinspy chains 10AJ.cif        #gives the chains in the protein

🟥 Note: swap the file name if you are using your own file

💻 Commands

Format: proteinspy <command> <file.cif>

Command Description
proteinspy analyze Run all analyses — resolution, chains, ligands, missing residues
proteinspy resolution Report crystallographic resolution only
proteinspy chains Report all polymer chains only
proteinspy ligands Report all ligand molecules only
proteinspy missing Report all missing residues only

📈 Future Enhancements

  • CLI UI/UX
  • Containerisation, using docker

⚠️ NOTE

This is an open-source project, and any contributions, even if not mentioned in the future enhancements section, are welcome.

📃 Documentation

Full documentation at https://akhilteja2209.github.io/Proteinspy/


Version: 1.0.2

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

proteinspy-1.1.0.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

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

proteinspy-1.1.0-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

Details for the file proteinspy-1.1.0.tar.gz.

File metadata

  • Download URL: proteinspy-1.1.0.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.11.15 Linux/6.17.0-1015-azure

File hashes

Hashes for proteinspy-1.1.0.tar.gz
Algorithm Hash digest
SHA256 cad02a05acc685ea802d860385524f9f18a58dcff48dcb735d8a34925d2bc623
MD5 d972dde4c8ff03b5b8b4a27dbbba1848
BLAKE2b-256 09438e7923ef5c6375b11a2cdb69cc956b124a0a8ba60c35f0c95133e24a4fb2

See more details on using hashes here.

File details

Details for the file proteinspy-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: proteinspy-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 21.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.11.15 Linux/6.17.0-1015-azure

File hashes

Hashes for proteinspy-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bafd382d38f7f2113d73dde6aa30a2acf6fbdc4647a1ecb2017139ffd82e932d
MD5 51eacd78efcd3762abc39687f2a5230f
BLAKE2b-256 7dd07b363e4f57c18fbb1c54bbd8b6f0c213f9a9ffa23b830fa22b428bb80228

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