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 - prolfqua/prozor: Determine minimal Protein set given list of peptide protein mappings and various weighting functions

BranchesTags
Open more actions menu

Latest commit

 

History

363 Commits
363 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
R
R
 
 
altdoc
altdoc
 
 
data
data
 
 
inst
inst
 
 
make
make
 
 
man
man
 
 
tests
tests
 
 
vignettes
vignettes
 
 
.Rbuildignore
.Rbuildignore
 
 
.git-blame-ignore-revs
.git-blame-ignore-revs
 
 
.gitignore
.gitignore
 
 
.lintr
.lintr
 
 
.zenodo.json
.zenodo.json
 
 
AGENTS.md
AGENTS.md
 
 
CLAUDE.md
CLAUDE.md
 
 
CRAN-SUBMISSION
CRAN-SUBMISSION
 
 
DESCRIPTION
DESCRIPTION
 
 
LICENSE.md
LICENSE.md
 
 
Makefile
Makefile
 
 
NAMESPACE
NAMESPACE
 
 
NEWS.md
NEWS.md
 
 
README.md
README.md
 
 
air.toml
air.toml
 
 
cran-comments.md
cran-comments.md
 
 
prozor.Rproj
prozor.Rproj
 
 

Repository files navigation

CRAN_Status_Badge DOI Project Status: Active R-CMD-check codecov lint altdoc

prozor

  • Determine the minimal protein set explaining peptide spectrum matches (PSMs).
  • Create FASTA amino acid databases with decoys and contaminants.
  • Estimate the false discovery rate for target-decoy search results on PSM, precursor, peptide and protein level.
  • Compute dynamic SWATH (DIA) window sizes from the distribution of MS1 masses.

Terms:

  • PSM (peptide-spectrum match): a fragment spectrum that a search engine assigned to a peptide.
  • Decoy: a reversed protein sequence added to the database; matches to decoys estimate the number of false matches.
  • DIA (data-independent acquisition, also SWATH): the instrument fragments all precursors within a series of m/z windows.
  • MS1: the survey scan that measures the m/z of the intact peptide ions (precursors).

Version 0.5.0 breaks the API of CRAN 0.3.1: functions, arguments and result columns are renamed, and R6 classes compute the DIA windows and the FDR. See NEWS.md.

Documentation

The website https://prolfqua.github.io/prozor/ has the function reference, the articles and the changelog.

Articles:

  • Creating Target Decoy Databases
  • Peptide Annotation and Protein Inference
  • Protein Sequence Coverage
  • Target Decoy FDR
  • Target Decoy FDR from COMET search results
  • Computing Dynamic SWATH Windows

Installation

The CRAN version (0.3.1) is older than the GitHub version:

install.packages("prozor")

The current version from GitHub:

install.packages("remotes")
remotes::install_github("prolfqua/prozor")

For developers

Clone the repository and use the Makefile targets: make document (roxygen2 docs and NAMESPACE), make test, make check, make lint and make format (air).

Example

library(prozor)

# protein sequences and the peptides identified in a human sample, bundled with prozor
fasta <- read_fasta(system.file("p1000_db1_example/Annotation_canSeq.fasta.gz", package = "prozor"))
peptides <- unique(read.delim(system.file("extdata/IDResults.txt.gz", package = "prozor"))$peptideSeq)

# the proteins each peptide occurs in, then the minimal protein set that explains all peptides
annotation <- annotate_peptides(peptides, fasta)
groups <- greedy_parsimony(annotation)
c(peptides = length(peptides), proteins = length(unique(annotation$protein_id)), groups = length(unique(groups)))
#> peptides proteins   groups
#>     1520      382      244

# FDR of target-decoy search results: the score at a q-value of 1 % (smaller scores are better)
fdr <- TargetDecoyFDR$new(fdr_sample$score, decoy_hit = grepl("^REV_", fdr_sample$protein_id), larger_better = FALSE)
fdr$score_at(q_value = 0.01)
#> [1] 0.03394749

1,430 of the 1,520 peptides match 382 proteins; 244 proteins or protein groups explain all of them.

Creating a FASTA database from the command line

prozor installs the script fgcz_create_fasta.R (it needs the docopt package). It reads all FASTA files and the annotation.txt in a directory, adds contaminants and reversed decoy sequences, and writes one FASTA file:

script=$(Rscript -e 'cat(system.file("script", "fgcz_create_fasta.R", package = "prozor"))')
Rscript "$script" -h
Rscript "$script" path/to/database_dir -o path/to/output_dir
Rscript "$script" path/to/database_dir nodecoy -c none -o path/to/output_dir

Citation

Cite prozor with its DOI 10.32614/CRAN.package.prozor; citation("prozor") gives the full reference.

Each GitHub release is archived on Zenodo under 10.5281/zenodo.24535408, which resolves to the latest release.

About

Determine minimal Protein set given list of peptide protein mappings and various weighting functions

prolfqua.github.io/prozor/

Topics

crandiafastafdrmass-spectrometryprotein-inferenceproteomicsrr-packagetarget-decoy

Resources

Readme
License

Contributing

Contributing
Activity
Custom properties

Stars

5 stars

Watchers

1 watching

Forks

2 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.