This repository consists of a command-line script written in Python 3.8.10 programming language.
The script extracts information and executes basic analysis on a PDB file that refers to 3D structures of protein. The script also integrates bash tab completion for directories and file names completion when providing a path to a given PDB file.
The script provides the user with a command-line interface containing five options to choose from:
- Opening and loading of a PDB file to be analyzed.
- Information about the loaded file such as the name of the loaded PDB file, the title of the protein, number of chains.
- Histogram of the amino acids from the loaded PDB file.
- Secondary structure of the protein from the loaded PDB file.
- Option for quitting the running script.
The repository consists of a package directory called pdbpackage which contains two files: pdbmodule.py and pdb_analysis.py. All the functions are placed in the module pdbmodule.py and accessed by importing them to pdb_analysis.py which acts as the main program.
pdbpackage (directory) containing:
- pdbmodule.py
- A module containing all the functions relevant to the extraction of information from a PDB file.
- pdb_analysis.py - The main program that imports pdbmodule.py as a module and utilizes the functions.
python3 pdb_analysis.py
Odoyo Samuel Oduor
This Project was designed by Gustavo Salazar