Skip to main content

GAP-MS

GAP-MS uses mass-spectrometry peptides to assess gene predictions, combine annotations and identify peptide-supported changes for review.

Install

Python 3.10 or newer:

pip install gapms

For runs with a BAM file, also install the RNA reconstruction tools:

conda install -c conda-forge -c bioconda stringtie transdecoder=5.5.0

TransDecoder 7, which keeps TransDecoder.LongOrfs/TransDecoder.Predict in its util/ folder, is also found automatically.

Or use the Apptainer image, which includes the RNA reconstruction tools:

apptainer pull gapms.sif oras://docker.io/qussaiab96/gapms:latest
apptainer run gapms.sif -a assembly.fa -p peptides.tsv -g genes.gtf

See container instructions for Docker Hub.

Run

  • Assembly + peptides: map peptides to the six-frame genome translation. gapms -a assembly.fa -p peptides.tsv
  • Add BAM: include RNA-supported splice paths and reconstruct peptide-supported ORF candidates. gapms -a assembly.fa -p peptides.tsv -b sorted.bam
  • Add annotation: map across annotated exons, score gene models and propose supported changes. gapms -a assembly.fa -p peptides.tsv -g genes.gtf
  • Annotation + BAM: combine gene-model assessment with RNA-supported reconstruction. gapms -a assembly.fa -p peptides.tsv -g genes.gtf -b sorted.bam
  • Multiple annotations: automatically build a peptide-guided consensus. BAM is optional here too. gapms -a assembly.fa -p peptides.tsv -g helixer.gtf -g another.gff3

GTF and GFF3 are accepted. BAM files must be coordinate-sorted and use the assembly's sequence names. With several annotations and a BAM, an index is needed: GAPMS builds one in its work folder when the BAM can be hard-linked there, and otherwise stops at once asking for samtools index. FragPipe, Casanovo and plain peptide lists are supported. Use -o results to choose an output directory (default: ./GAPMS_output) and -t 16 to change the default of 8 threads.

Analysis uses trypsin-compatible exact matches by default; add --non-tryptic for other enzymes. Peptides of at least 6 residues are searched (--min-length). Isoleucine and leucine are treated as equivalent. All-match and tryptic-match BED tracks are always retained. Optional one-edit rescue is separate from the exact evidence used to support gene models. See gapms --help-all.

Results

Start with report.html; report.log records the run. Main outputs include peptides.bed, peptides.tryptic.bed, peptides.igv.bed, unmapped_peptides.tsv, and, when gene models are available, all_proteins_scores.tsv and supported_genes.gtf. Multiple annotations also produce consensus.gff3 and consensus_proteins.faa.

review/candidates.tsv lists one row per proposed feature (alternative start, stop or splice, terminal extension, novel ORF) with a confidence and reason codes; the review/*.gff3 files contain the supported proposals only. They require review and are not automatically applied. A peptide supports a change only if no supplied annotation explains it at that locus and it has a single genomic locus over all exact matches (isoforms of one gene count once). Peptide length is reported, not filtered: the run summary gives decoy-estimated false-discovery rates by peptide length to judge chance matches of short peptides. Without an input annotation, RNA-derived ORFs are candidates whose novelty cannot be assessed. Peptide support does not validate every boundary of a gene model.

Cite

GAP-MS manuscript

Metadata

Release files for gapms 1.4.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 gapms 1.4.0
File Size Uploaded Provenance Actions
gapms-1.4.0.tar.gz 134.8 kB Without provenance Details for gapms-1.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 296.5 kB

Release files / gapms-1.4.0.tar.gz

Download URL gapms-1.4.0.tar.gz
Size 134.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a440bc981c38764854a6a00c9ad1700600ae85673e41b6b59f2f2bfd9c01a364
BLAKE2b-256 checksum
How to use checksums
d08caab5fc07973faf54e58ce4b11b5a0b0db98a9f158f67dc9b88124b6e30a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / gapms-1.4.0-py3-none-any.whl

Download URL gapms-1.4.0-py3-none-any.whl
Size 161.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3d4a4dbb8a8a5431bc1038a12c27eb19f1f77bd4c00e8e019d278d10b6c3f1d1
BLAKE2b-256 checksum
How to use checksums
4c06f4154f2ddff552d42b9b88347312bb1ddda17d6d8c6eadbe66792c4e4c75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for gapms 1.4.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