Metadata-Version: 2.5
Name: pdb-select
Version: 0.1.1
Summary: PDB file segmentation tool, extract specific chains and residue ranges from PDB/MMCIF files.
Project-URL: Homepage, https://github.com/MaybeBio/pdb-select
Project-URL: Issues, https://github.com/MaybeBio/pdb-select/issues
Author-email: Joe Hoye Dow <luxunisgod123@gmail.com>
License-Expression: BSD-3-Clause
License-File: LICENSE
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Python: >=3.9
Requires-Dist: biopython>=1.87
Requires-Dist: typer>=0.27.1
Description-Content-Type: text/markdown

# 🔬 PDB/MMCIF segment selector

> PDB file segmentation tool, extract specific chains and residue ranges from PDB/MMCIF files.   

# Installation

```bash
pip install pdb-select
```

# Usage

```bash
pdb-select --help
                                                                                                                                               
 Usage: pdb-select [OPTIONS]                                                                                                                   
                                                                                                                                               
 Select segments from a PDB or MMCIF structure file.                                                                                           
                                                                                                                                               
╭─ Options ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ *  --input               -I      <path>  Input PDB or MMCIF file [required]                                                                 │
│ *  --output              -O      <path>  Output PDB file, if not provided, will use input file name with _selected.pdb suffix in current    │
│                                          working directory                                                                                  │
│                                          [required]                                                                                         │
│ *  --segment             -s      <str>   Segments to select in the format chain:start-end (e.g., A:1-10). Repeatable. [required]            │
│    --install-completion                  Install completion for the current shell.                                                          │
│    --show-completion                     Show completion for the current shell, to copy it or customize the installation.                   │
│    --help                                Show this message and exit.                                                                        │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
```

example:

```bash
pdb-select -I znf263_all_hs7_30_0.54_0.37_model_0.cif -O znf263_all_hs7_30_0.54_0.37_model_0_selected.pdb -s A:1-10 -s B:20-30
```