A tool for creating protein analysis pipelines for UniProt.
Project description
PPC - Prot Pipeline Creator
PPC - Prot Pipeline Creator is a Python-based tool designed for the bioinformatics processing and analysis of protein data.
The system is engineered to ingest .tsv files from UniProt (UniProtKB), enabling the creation of automated analysis pipelines for filtering, clustering, and generating sub-datasets based on taxonomy (Super Kingdoms), enzymatic activity (EC numbers) and others.
🛠️ Prerequisites
To run this project, you will need:
-
Python 3.8+
-
Pandas
🚀 Installation
pip install prot-pipeline-creator
💻 Usage
The project uses the concept of "Pipelines" to execute analyses. You can create your own script or use the templates in the example/ folder.
Basic Example
To run the default example included in the project, ensure you have a UniProt data file in the correct format and run:
python main.py data/file/path.tsv
Creating a Custom Pipeline
You can use the PPC_Dataframe class directly in your Python scripts:
from ppc import PPC_Dataframe, PPC_Printer
# 1. Load the DataFrame
file_path = 'path/to/your/uniprot_file.tsv'
df = PPC_Dataframe(file_path)
# 2. Use the filters
bacterias_with_pdb = df.bacteria.has_pdb
# 3. Save all proteins filtered in a .tsv file
bacterias_with_pdb.to_tsv('output/my_analysis.tsv')
# 4. Use the Printer helper to print by ec class
PPC_Printer.print_by_ec_class(bacterias_with_pdb)
For a comprehensive list of currently implemented filters, please consult the Wiki. It is also possible to create new filters by following the existing ones.
If you have improvements or suggestions, feel free to submit a Pull Request or open an Issue.
🔬 Available Pipelines
The project already includes three example pipelines in the example/ folder:
-
KingdomPipeline:
-
Splits the original dataset into 4
.tsvfiles based on Super Kingdoms (Archaea, Bacteria, Eukaryota, Viruses). -
Generates statistics on sequence and enzyme counts per kingdom.
-
-
EnzymesPipeline:
-
Classifies and separates proteins into the 7 main enzyme classes (EC 1 to EC 7).
-
Generates individual files for each class (e.g.,
1_oxidoreductases.tsv,2_transferases.tsv).
-
-
AnalogousPipeline:
-
Focuses on the analysis of HISE (Homologous Enzymes) and NISE (Non-Homologous/Analogous Enzymes).
-
Clusters enzymes that share the same EC number, verifying if they belong to the same Superfamily or different ones.
-
Filters datasets to contain only enzymes with complete EC numbers and PDB annotation.
-
📂 Project Structure
The project is organized as follows:
prot-pipeline-creator/
├── ppc/ # Core source code
│ ├── enums/ # Enumerations for Kingdoms, Columns, and Clusters
│ ├── helpers/ # Helpers for Pandas and Printing
│ ├── clusterized_dataframe.py
│ └── protein_dataframe.py # Main class (Pandas Wrapper)
├── main.py # Main entry point
|
|
├── example/ # Example pipelines and execution scripts
│ ├── output/ # Output directory for examples
│ ├── analogous_pipeline.py
│ ├── enzymes_pipeline.py
│ ├── kingdom_pipeline.py
│ └── example.py
└── LICENSE # Apache 2.0 License
📄 License
This project is licensed under the Apache License 2.0. See the LICENSE file for more details.
Copyright 2025 - Emanuel Umbelino
Project details
Release history Release notifications | RSS feed
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 prot_pipeline_creator-1.0.1.tar.gz.
File metadata
- Download URL: prot_pipeline_creator-1.0.1.tar.gz
- Upload date:
- Size: 20.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7bda9600ca0c274ae382d8f53915122cd66dacd25f872021506b50d0b5e1577
|
|
| MD5 |
9222c4befbc93feb1c5f754bc0d1e6a1
|
|
| BLAKE2b-256 |
c35658f8aade9b931e0bbb24f9dafc5a7ce1d4314328fbf8fd362ff098fc3fcb
|
File details
Details for the file prot_pipeline_creator-1.0.1-py3-none-any.whl.
File metadata
- Download URL: prot_pipeline_creator-1.0.1-py3-none-any.whl
- Upload date:
- Size: 16.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9035866ef85ef310a74bc3f1b9484e75ca355fe4f9e6aa1658975efadbe2329
|
|
| MD5 |
35bb2ffd5b70a2d58f3685ac5c00c12b
|
|
| BLAKE2b-256 |
c73c9b123b342ea80ddaecf1de5af03c12bc661ad1cee84a60729f6fa1eeee8a
|