Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcgowan committed Sep 28, 2020
0 parents commit ed0eaaa
Show file tree
Hide file tree
Showing 7 changed files with 611 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.vscode/*
venv/*
LargeDataSet.mz.sqlite
*.png
*.svg
*.html
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
PSM Validation Tool
===================

The PSM validation tool verifies PSM scans against the ion fragmentation of the associated peptide squence.

Inputs
------

- MZSQLite database generated in a Galaxy workflow
- Tabular file of peptide sequences

By default the tool will fragment peptde into

- b and y ions
- b-H2O, b-NH3, y-H2O, y-NH3
- Internals

You can disable internals and neutral loss ions.

Output
------

A self-contained HTML report that includes:

- All PSMs for peptides of interest with PSM identifiers
- PSM PeptideShaker scores are presented
- MSMS interactive graphs with
- PSM scan mz and intensities
- All matching ion fragments
- Ion fragment table
- Color coded for matching fragments
- Internal values and color coded for internal matches
Empty file added psmfragmentation/__init__.py
Empty file.
517 changes: 517 additions & 0 deletions psmfragmentation/psmfragmentation.py

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
appdirs==1.4.4
certifi==2020.6.20
cycler==0.10.0
jedi==0.17.2
kiwisolver==1.2.0
lxml==4.5.2
numpy==1.19.2
parso==0.7.1
Pillow==7.2.0
plotly==4.10.0
prompt-toolkit==3.0.7
ptpython==3.0.5
Pygments==2.7.0
pyparsing==2.4.7
pyteomics==4.3.2
python-dateutil==2.8.1
retrying==1.3.3
six==1.15.0
wcwidth==0.2.5
28 changes: 28 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import setuptools

_pkg_version = "1.0.0"
_author = "Thomas McGowan"
_author_email = "[email protected]"
_license = "MIT"
_repo = "https://github.umn.edu/mcgo0092/psm_fragments.git"


setuptools.setup(
name="psm_fragments",
version=f"{_pkg_version}",
packages=["psmfragmentation"],
install_requires=["pyteomics", "plotly"],
description="Score PSMs with fragmentation quality check",
author=f"{_author}",
author_email=f"{_author_email}",
url="f{_repo}",
download_url=f"{_repo}/archive/v_{_pkg_version}.tar.gz",
license=f"{_license}",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
],
python_requires=">=3.6",
)
9 changes: 9 additions & 0 deletions tests/data/peptide_sequences.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
YLGTGPEAGLPYGANK
MAGNGGDAALALLLLDR
RGPEQTQGNFGDQELIR
KQQTVTLLPAADLDDFSK
IGMEVTPSGTWLTYTGAIK
GQGVPINTNSSPDDQIGYYRR
RPQGLPNNTASWFTALTQHGK
MAGNGGDAALALLLLDRLNQLESK
RPQGLPNNTASWFTALTQHGKEDLKFPR

0 comments on commit ed0eaaa

Please sign in to comment.