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+andpip). - 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file proteinspy-1.1.1.tar.gz.
File metadata
- Download URL: proteinspy-1.1.1.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-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97e2edfcca301f734dfc8ae30e8290dc020121306667a90e9405f5b0567e60a5
|
|
| MD5 |
8eb4f697637726958a9029a3ca7db87b
|
|
| BLAKE2b-256 |
2ed36a595c2f92320144d3a307d3e920464ba03db8ba7f79d25e4d819a7a1af6
|
File details
Details for the file proteinspy-1.1.1-py3-none-any.whl.
File metadata
- Download URL: proteinspy-1.1.1-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-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b7dd335005b0e41d00602b1f9dc04e9718300ff4623ec36e69315cf20895bdf
|
|
| MD5 |
c46c12b04a17fe5ae330f3dad310f4cc
|
|
| BLAKE2b-256 |
7353e3d302d985b1a3a811cef8b39251892cf705a516d301146f9e71c5859d99
|