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.2.tar.gz (16.4 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.2-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: proteinspy-1.1.2.tar.gz
  • Upload date:
  • Size: 16.4 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.2.tar.gz
Algorithm Hash digest
SHA256 afe5ca17d8de9608ac42abd4b3d45c98456404ce748048d8dbbca5021447596b
MD5 44e4e397637875f643393b338ac80be6
BLAKE2b-256 e07a7709a37ed19b576f97a318af59e90529a0ba4f53ae98f12aaec8d69bcfbb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: proteinspy-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 21.5 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b616b610b5a77767c9fe20097e15b2d91b8ebdd354fa3a85bc69102f5c7119b1
MD5 7d341d88ed3af8c2ac943828baf43741
BLAKE2b-256 f1204a8b25e1743ab7639c7b76091f6c0345c16dbe0bd44421c170eb2e66ae93

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