Research-Oriented Bioinformatics Software for Protein Sequence Analysis
Protein sequence analysis is one of the first computational steps performed before many experimental workflows in molecular biology, biochemistry, and structural biology.
Researchers routinely analyze amino acid composition, molecular weight, and residue characteristics before protein expression, purification, structural characterization, and functional studies.
The Protein Sequence Toolkit is a research-oriented Python application that performs fundamental protein sequence analyses while demonstrating clean software engineering principles for scientific computing.
Rather than replacing established bioinformatics platforms such as ExPASy ProtParam, this project focuses on transparency, reproducibility, education, and modular software design.
During my MSc in Molecular Biology & Biochemistry, I worked on recombinant protein expression and purification in Escherichia coli.
That experience highlighted how computational protein analysis complements experimental molecular biology by allowing researchers to understand important biochemical properties before laboratory experiments.
I developed this toolkit to strengthen my computational biology skills while applying software engineering principles to biological data analysis.
This repository combines my background in molecular biology with practical Python programming to build research-oriented bioinformatics software.
Current Version (v1.0) includes:
- ā Protein sequence validation
- ā FASTA file parsing
- ā Direct sequence input
- ā Protein length calculation
- ā Amino acid composition analysis
- ā Amino acid percentage calculation
- ā Residue class distribution
- ā Molecular weight calculation
- ā Publication-quality amino acid composition visualization
- ā Publication-quality residue class visualization
- ā Integrated Protein Analysis Dashboard
- ā Automated unit testing (12 tests)
- ā Comprehensive project documentation
- ā Software workflow architecture diagram
The Protein Analysis Dashboard provides a consolidated overview of the analyzed protein, including:
- Protein length
- Molecular weight
- Hydrophobic residue percentage
- Most abundant residue
- Least abundant residue
- Amino acid composition profile
- Residue class composition
This visualization displays the abundance of each amino acid within the protein sequence using color-coded residue classes.
Residues are grouped into biologically meaningful categories:
- Hydrophobic
- Polar
- Positively Charged
- Negatively Charged
This provides a rapid overview of the biochemical characteristics of the protein.
Clone the repository
git clone https://github.com/HareemAhmad-Molbio/Protein-Sequence-Toolkit.git
Navigate to the project directory
cd Protein-Sequence-ToolkitCreate a virtual environment
python -m venv venv
Activate the environment
source venv/bin/activatevenv\Scripts\activate
Install dependencies
pip install -r requirements.txt
Protein Sequence Toolkit
=================================================
Sequence
-------------------------------------------------
MKWVTFISLLFLFSSAYSRGVFRRDTHKSEIAHRF...
Length
-------------------------------------------------
104 amino acids
Molecular Weight
-------------------------------------------------
11875.60 Da
Residue Class Distribution
-------------------------------------------------
Hydrophobic 49 (47.12%)
Polar 25 (24.04%)
Positive 17 (16.35%)
Negative 13 (12.50%)
Analyze a FASTA file
python protein_toolkit.py sample_data/albumin.fasta
Analyze a protein sequence directly
python protein_toolkit.py MKWVTFISLLFLFSSAYSRGVFRRDTHKSEIAHRF
Generated figures are automatically saved inside the output/ directory.
Protein-Sequence-Toolkit/
ā
āāā .github/
ā āāā workflows/
ā āāā tests.yml
ā
āāā docs/
āāā output/
āāā sample_data/
āāā screenshots/
āāā tests/
ā
āāā README.md
āāā LICENSE
āāā requirements.txt
āāā .gitignore
ā
āāā protein_toolkit.py
āāā protein.py
āāā calculations.py
āāā constants.py
āāā io_utils.py
āāā visualization.py
The Protein Sequence Toolkit follows a modular workflow that separates data input, validation, scientific computation, and visualization. This architecture improves readability, maintainability, testing, and future extensibility.
The analysis pipeline consists of the following stages:
-
Input
- Accepts either a raw protein sequence or a FASTA file.
-
Sequence Validation
- Converts the sequence to uppercase.
- Verifies that only the 20 standard amino acids are present.
- Raises informative errors for invalid input.
-
Protein Object
- Stores the validated sequence.
- Provides common sequence properties.
- Serves as the central object shared across modules.
-
Scientific Calculations
- Protein length
- Molecular weight
- Amino acid composition
- Residue class distribution
-
Visualization
- Amino acid composition bar chart
- Residue class distribution donut chart
- Integrated protein analysis dashboard
-
Output
- Console summary
- High-resolution figures
- Publication-ready dashboard
The toolkit uses pytest for automated unit testing.
Run all tests:
pytest
Current status:
==============================
12 passed
==============================
The test suite validates:
- Protein sequence validation
- FASTA parsing
- Molecular weight calculation
- Amino acid composition
- Residue class distribution
- Error handling
This toolkit can be used for educational and research purposes involving:
- Protein biochemistry
- Molecular biology
- Recombinant protein research
- Biotechnology education
- Bioinformatics training
- Protein sequence characterization
- Computational biology
The toolkit currently implements:
- Protein sequence validation
- FASTA parsing
- Amino acid composition analysis
- Residue frequency calculation
- Residue class classification
- Molecular weight estimation
- Scientific visualization
Planned features for future releases include:
- Hydrophobicity profile
- Isoelectric point (pI) estimation
- GRAVY score calculation
- Extinction coefficient
- Instability index
- Aliphatic index
- Batch FASTA processing
- CSV and JSON export
- Interactive web interface
- PyPI package distribution
- Python 3
- Matplotlib
- Object-Oriented Programming (OOP)
- Scientific Computing
- Modular Software Design
-
Nelson DL, Cox MM. Lehninger Principles of Biochemistry.
-
Kyte J, Doolittle RF. A Simple Method for Displaying the Hydropathic Character of a Protein.
-
ExPASy ProtParam Documentation (conceptual reference)
-
FASTA Sequence Format Specification
This project is released under the MIT License.
Hareem Ahmad
MSc Molecular Biology & Biochemistry
Research Interests:
- Molecular Biology
- Protein Biochemistry
- Bioinformatics
- Computational Biology
- Biotechnology
- Scientific Software Development
GitHub: https://github.com/HareemAhmad-Molbio
LinkedIn: https://www.linkedin.com/in/hareemahmad12/
This project was developed as part of my ongoing bioinformatics portfolio to integrate molecular biology knowledge with scientific software development.
The goal is to build practical computational tools that complement experimental biological research while following modern software engineering practices.
Current Release: v1.0 ā Core Protein Analysis




