GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - thealchemist26/peptide_signature_finder: A Python tool for analyzing mass spectrometry data using bottom-up proteomics approach, featuring interactive file selection and peptide signature matching.

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE
LICENSE
 
 
README.md
README.md
 
 
peptide_signature_finder.ipynb
peptide_signature_finder.ipynb
 
 

Repository files navigation

Peptide Signature Finder

A Python tool for analysing mass spectrometry data using bottom-up proteomics approach, featuring interactive file selection and peptide signature matching.

Workflow Overview

The tool processes mass spectrometry data through several key steps:

flowchart LR
    subgraph Input
        direction TB
        Sample["Sample Data CSV
        • m/z values
        • intensity values"]
        Reference["Reference CSV
        • peptide signatures
        • m/z values"]
    end
    
    subgraph Processing
        direction TB
        ReadSample["Read Sample Data
        pd.read_csv()"]
        ReadRef["Read Reference File
        pd.read_csv()"]
        
        Match["Match Signatures
        within tolerance"]
        
        Filter["Filter Matches
        based on criteria"]
    end
    
    subgraph Output
        Save["Save Results
        filtered_peptides.csv"]
    end
    
    Sample --> ReadSample
    Reference --> ReadRef
    ReadSample --> Match
    ReadRef --> Match
    Match --> Filter
    Filter --> Save
    
    style Input fill:#f9f9f9,stroke:#666,color:#000000
    style Processing fill:#e6f3ff,stroke:#666,color:#000000
    style Output fill:#f0fff0,stroke:#666,color:#000000
Loading

Installation

To use this tool, install the required dependencies:

pip install pandas numpy

Features

  • Interactive CSV file selection using tkinter dialogs
  • Automatic validation of mass spectrometry data format
  • Configurable ppm tolerance for peptide matching
  • Comprehensive error handling
  • Clear output showing matched peptides and their properties

Usage

The tool can be run directly from the command line:

python mass_spectra_analyzer.py

This will launch an interactive session where you'll be prompted to:

  1. Select your sample data CSV file
  2. Select your reference peptide signatures CSV file
  3. Enter the desired ppm tolerance (default: 10)

Required File Formats

Sample Data CSV

  • Must contain two columns:

    • m/z values (may be labeled as 'mass')
    • intensity values
  • Example:

m/z,intensity
100.0,500
101.0,300
102.0,800

Reference Peptides CSV

  • Must contain:

    • peptide_signature column (unique identifier for each peptide)
    • m/z values column
  • Example:

peptide_signature,m/z
PEPTIDE1,100.5
PEPTIDE2,201.3
PEPTIDE3,302.7

Technical Details

The tool uses several key functions to process the data:

  1. File Selection - Uses tkinter's file dialog for interactive file selection
  • Filters for CSV files only
  • Prevents empty window display
  1. Data Validation - Checks for required columns in sample data
  • Standardizes column names
  • Handles missing or malformed data
  1. Peptide Matching - Calculates ppm differences between sample and reference peaks
  • Finds closest matches within specified tolerance
  • Returns comprehensive match information including:
    • Peptide signature
    • Reference m/z value
    • Matched m/z value
    • Intensity
    • PPM difference

Output

Results are saved to filtered_peptides.csv containing all matched peptides with their properties. The output includes:

  • Peptide signatures
  • Reference m/z values
  • Matched m/z values
  • Intensity values
  • PPM differences

Contributing

Contributions are welcome! To contribute:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

License

This project is licensed under the MIT License. See LICENSE for details.

Acknowledgments

The tool uses:

  • pandas for data manipulation
  • numpy for numerical operations
  • tkinter for file dialogs

About

A Python tool for analyzing mass spectrometry data using bottom-up proteomics approach, featuring interactive file selection and peptide signature matching.

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.