Skip to main content

PepLocus

Map mass-spectrometry peptides directly to genome assemblies, including splice-junction peptides. I/L are always treated as equivalent.

PepLocus overview

Install

Requires Python 3.9 or newer.

pip install peplocus

Run

peplocus -a assembly.fa -p peptides.tsv --out results

Add a GTF/GFF annotation, an RNA-seq BAM, or both for splice-aware mapping:

peplocus -a assembly.fa -p peptides.tsv -g models.gtf -b rnaseq.bam --out results

Peptides can be a plain list, FASTA, CSV or TSV, including FragPipe output. The default is 8 workers; change it with --threads.

Optional searches:

  • --one-edit: rescue exact-unmapped peptides with one substitution, insertion or deletion.
  • --swap: rescue exact-unmapped peptides with one adjacent amino-acid swap.
  • --discover-junctions: search for canonical splice junctions using the selected workers; default minimum 11 aa, maximum intron 10 kb. Short queries can still produce chance matches.

--one-edit and --swap work separately or together. Both use a 9-aa minimum by default (--min-rescue-length).

Use --enzyme trypsin/p to allow K/R cleavage before proline (for matching FragPipe digestion settings), or --enzyme none for unrestricted peptides such as Casanovo predictions. The default trypsin excludes cleavage before proline. Enzyme choice changes the compatible subset, not the all-mappings track.

Outputs

  • all_mappings.bed and tryptic_mappings.bed: all exact placements and their tryptic-compatible subset, in BED12 format.
  • mappings.tsv: placement details; peptides.tsv: per-peptide counts and status.
  • unmapped.tsv: peptides without an exact match; summary.json: counts and timings.
  • rescue/: separate approximate candidates when rescue is enabled.

Rescue candidates are sequence-compatible possibilities, not confirmed variants. Splice mapping depends on the available evidence and search limits.

Ambiguity counts refer to overlapping genomic regions; all distinct block-chain placements remain available. Unsupported trans-spliced annotation transcripts are skipped with a warning. See mapping conventions.

For more options, run peplocus -h.

Tests: pip install ".[test]", then python -m pytest -q tests from a repository checkout.

Report an issue · MIT license

Metadata

Release files for peplocus 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for peplocus 0.7.0
File Size Uploaded Provenance Actions
peplocus-0.7.0.tar.gz 62.9 kB Without provenance Details for peplocus-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for peplocus 0.7.0
File Interpreter ABI Platform Actions
peplocus-0.7.0-py3-none-any.whl Python 3 none any Details for peplocus-0.7.0-py3-none-any.whl

Total release size: 108.9 kB

Release files / peplocus-0.7.0.tar.gz

Download URL peplocus-0.7.0.tar.gz
Size 62.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c19e7ff33ce20e9404316a4e296b38abb257b6dcd90a9b79beef2f06d33fcd2f
BLAKE2b-256 checksum
How to use checksums
16a944742fdfc71b1ad44956d0e79ddba2f78d9e0a3dca50af09b79a2b640342
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.15

Release files / peplocus-0.7.0-py3-none-any.whl

Download URL peplocus-0.7.0-py3-none-any.whl
Size 46.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d394a629bf069334b55fa5d7eb6d342840e94da916e7102c3efcef588afee2e6
BLAKE2b-256 checksum
How to use checksums
0f331f0823f6dc6b499e5a379e442fd2cf38caf36c965db16dfb48025d0907a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.15

Security for peplocus 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page