gapms 1.3.2__tar.gz → 1.4.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. {gapms-1.3.2 → gapms-1.4.1}/MANIFEST.in +1 -4
  2. gapms-1.4.1/PKG-INFO +113 -0
  3. gapms-1.4.1/README.md +93 -0
  4. {gapms-1.3.2 → gapms-1.4.1}/THIRD_PARTY.md +2 -2
  5. gapms-1.4.1/docs/CONTAINERS.md +31 -0
  6. gapms-1.4.1/gapms.egg-info/PKG-INFO +113 -0
  7. {gapms-1.3.2 → gapms-1.4.1}/gapms.egg-info/SOURCES.txt +3 -8
  8. {gapms-1.3.2 → gapms-1.4.1}/gapms.egg-info/requires.txt +1 -1
  9. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/__init__.py +1 -1
  10. gapms-1.4.1/gapms_v1/annotation_io.py +352 -0
  11. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/assessment.py +179 -65
  12. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/cli.py +2 -2
  13. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/consensus_engine.py +92 -14
  14. gapms-1.4.1/gapms_v1/events.py +178 -0
  15. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/mapping.py +146 -5
  16. gapms-1.4.1/gapms_v1/models.py +343 -0
  17. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/orf_projection.py +15 -0
  18. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/outputs.py +6 -5
  19. gapms-1.4.1/gapms_v1/refinement.py +413 -0
  20. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/report_figure.py +3 -2
  21. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/rnaseq.py +63 -5
  22. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/workflow.py +27 -12
  23. {gapms-1.3.2 → gapms-1.4.1}/pyproject.toml +2 -2
  24. gapms-1.3.2/PKG-INFO +0 -92
  25. gapms-1.3.2/README.md +0 -72
  26. gapms-1.3.2/docs/v1/ARCHITECTURE.md +0 -64
  27. gapms-1.3.2/docs/v1/CONSENSUS.md +0 -162
  28. gapms-1.3.2/docs/v1/GENESENSUS_0.6.0a3.md +0 -254
  29. gapms-1.3.2/docs/v1/IMPLEMENTATION_PLAN.md +0 -21
  30. gapms-1.3.2/docs/v1/OUTPUT_FORMATS.md +0 -205
  31. gapms-1.3.2/docs/v1/README.md +0 -188
  32. gapms-1.3.2/docs/v1/SCIENTIFIC_METHODS.md +0 -228
  33. gapms-1.3.2/docs/v1/VALIDATION.md +0 -84
  34. gapms-1.3.2/gapms.egg-info/PKG-INFO +0 -92
  35. gapms-1.3.2/gapms_v1/models.py +0 -169
  36. gapms-1.3.2/gapms_v1/refinement.py +0 -245
  37. {gapms-1.3.2 → gapms-1.4.1}/LICENSE +0 -0
  38. {gapms-1.3.2 → gapms-1.4.1}/gapms.egg-info/dependency_links.txt +0 -0
  39. {gapms-1.3.2 → gapms-1.4.1}/gapms.egg-info/entry_points.txt +0 -0
  40. {gapms-1.3.2 → gapms-1.4.1}/gapms.egg-info/top_level.txt +0 -0
  41. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/__main__.py +0 -0
  42. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/LICENSE +0 -0
  43. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/VENDORED.json +0 -0
  44. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/__init__.py +0 -0
  45. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/__main__.py +0 -0
  46. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/adaptive.py +0 -0
  47. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/annotation.py +0 -0
  48. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/available.py +0 -0
  49. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/cli.py +0 -0
  50. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/config.py +0 -0
  51. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/corroborated.py +0 -0
  52. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/diagnostics.py +0 -0
  53. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/direct_molecular.py +0 -0
  54. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/exchange.py +0 -0
  55. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/exon_support.py +0 -0
  56. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/genome.py +0 -0
  57. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/graph.py +0 -0
  58. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/graph_cache.py +0 -0
  59. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/intervals.py +0 -0
  60. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/isoform_guards.py +0 -0
  61. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/isoforms.py +0 -0
  62. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/joint.py +0 -0
  63. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/loading.py +0 -0
  64. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/local_molecular.py +0 -0
  65. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/locus_select.py +0 -0
  66. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/models.py +0 -0
  67. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/molecular.py +0 -0
  68. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/molecular_exchange.py +0 -0
  69. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/molecular_state_utility.py +0 -0
  70. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/molecular_strategy.py +0 -0
  71. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/normalization.py +0 -0
  72. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/orf_diagnostics.py +0 -0
  73. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/peptide_context.py +0 -0
  74. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/peptides.py +0 -0
  75. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/pipeline.py +0 -0
  76. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/provenance.py +0 -0
  77. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/rna.py +0 -0
  78. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/rna_geometry.py +0 -0
  79. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/scoped.py +0 -0
  80. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/scoring.py +0 -0
  81. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/selection.py +0 -0
  82. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/source_splice.py +0 -0
  83. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/splice_prior.py +0 -0
  84. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/state_utility.py +0 -0
  85. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/_genesensus/support.py +0 -0
  86. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/classification.py +0 -0
  87. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/common.py +0 -0
  88. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/confidence_features.py +0 -0
  89. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/peptides.py +0 -0
  90. {gapms-1.3.2 → gapms-1.4.1}/gapms_v1/protein_mapper.py +0 -0
  91. {gapms-1.3.2 → gapms-1.4.1}/setup.cfg +0 -0
  92. {gapms-1.3.2 → gapms-1.4.1}/setup.py +0 -0
@@ -1,10 +1,7 @@
1
1
  include LICENSE THIRD_PARTY.md README.md
2
- recursive-include docs/v1 *.md
2
+ recursive-include docs *.md
3
3
  include gapms_v1/_genesensus/LICENSE
4
4
  include gapms_v1/_genesensus/VENDORED.json
5
- prune docs/v1/evaluation
6
- prune gapms
7
- prune packaging
8
5
  prune tests
9
6
  prune build
10
7
  prune dist
gapms-1.4.1/PKG-INFO ADDED
@@ -0,0 +1,113 @@
1
+ Metadata-Version: 2.4
2
+ Name: gapms
3
+ Version: 1.4.1
4
+ Summary: Gene model assessment and peptide-guided annotation refinement
5
+ Author-email: Qussai Abbas <qussai.abbas@tum.de>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/qussai96/GAP-MS
8
+ Requires-Python: >=3.10
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ License-File: THIRD_PARTY.md
12
+ Requires-Dist: peplocus==0.7.0
13
+ Requires-Dist: pandas>=1.5
14
+ Requires-Dist: scipy>=1.10
15
+ Requires-Dist: scikit-learn>=1.2
16
+ Requires-Dist: matplotlib>=3.6
17
+ Requires-Dist: xgboost-cpu<4,>=2.1.4; platform_system == "Linux"
18
+ Requires-Dist: xgboost<4,>=2.1.4; platform_system != "Linux"
19
+ Dynamic: license-file
20
+
21
+ # GAP-MS
22
+
23
+ GAP-MS uses mass-spectrometry peptides to assess gene predictions, combine
24
+ annotations and identify peptide-supported changes for review.
25
+
26
+ ## Install
27
+
28
+ Python 3.10 or newer:
29
+
30
+ ```bash
31
+ pip install gapms
32
+ ```
33
+
34
+ For runs with a BAM file, also install the RNA reconstruction tools:
35
+
36
+ ```bash
37
+ conda install -c conda-forge -c bioconda stringtie transdecoder=5.5.0
38
+ ```
39
+
40
+ TransDecoder 7, which keeps `TransDecoder.LongOrfs`/`TransDecoder.Predict` in its
41
+ `util/` folder, is also found automatically.
42
+
43
+ Or use the Apptainer image, which includes the RNA reconstruction tools:
44
+
45
+ ```bash
46
+ apptainer pull gapms.sif oras://docker.io/qussaiab96/gapms:latest
47
+ apptainer run gapms.sif -a assembly.fa -p peptides.tsv -g genes.gtf
48
+ ```
49
+
50
+ See [container instructions](docs/CONTAINERS.md) for Docker Hub.
51
+
52
+ ## Run
53
+
54
+ - **Assembly + peptides:**
55
+ map peptides to the six-frame genome translation.
56
+ `gapms -a assembly.fa -p peptides.tsv`
57
+ - **Add BAM:**
58
+ include RNA-supported splice paths and reconstruct peptide-supported ORF candidates.
59
+ `gapms -a assembly.fa -p peptides.tsv -b sorted.bam`
60
+ - **Add annotation:**
61
+ map across annotated exons, score gene models and propose supported changes.
62
+ `gapms -a assembly.fa -p peptides.tsv -g genes.gtf`
63
+ - **Annotation + BAM:**
64
+ combine gene-model assessment with RNA-supported reconstruction.
65
+ `gapms -a assembly.fa -p peptides.tsv -g genes.gtf -b sorted.bam`
66
+ - **Multiple annotations:**
67
+ automatically build a peptide-guided consensus. BAM is optional here too.
68
+ `gapms -a assembly.fa -p peptides.tsv -g helixer.gtf -g another.gff3`
69
+
70
+ GTF, GFF2 and GFF3 are accepted, plain or gzipped, e.g. from NCBI, Ensembl, GENCODE,
71
+ BRAKER/AUGUSTUS, GALBA, GeneMark, Helixer, Tiberius, ANNEVO, MAKER and EVM. The stop
72
+ codon may be inside the CDS, in `stop_codon` rows or not annotated at all: GAPMS always
73
+ includes it in the CDS, also in its outputs. Transcripts that cannot be used (unknown
74
+ contig, coordinates outside the contig, no strand) are skipped, not fatal;
75
+ `diagnostics/reports/annotation_input_report.tsv` lists them. Models with an internal
76
+ stop codon or overlapping CDS (ribosomal slippage) still explain peptides but are not
77
+ consensus candidates; annotated selenocysteines are read as U.
78
+
79
+ BAM files must be coordinate-sorted and use the assembly's sequence names. With several annotations and a BAM, an index is needed:
80
+ GAPMS builds one in its work folder when the BAM can be hard-linked there, and
81
+ otherwise stops at once asking for `samtools index`. FragPipe, Casanovo and plain peptide lists are supported.
82
+ Use `-o results` to choose an output directory (default: `./GAPMS_output`) and
83
+ `-t 16` to change the default of **8 threads**.
84
+
85
+ Analysis uses **trypsin-compatible exact matches** by default; add `--non-tryptic`
86
+ for other enzymes. Peptides of at least **6 residues** are searched (`--min-length`).
87
+ Isoleucine and leucine are treated as equivalent. All-match and
88
+ tryptic-match BED tracks are always retained. Optional one-edit rescue is separate
89
+ from the exact evidence used to support gene models. See `gapms --help-all`.
90
+
91
+ ## Results
92
+
93
+ Start with **report.html**; **report.log** records the run. Main outputs include
94
+ `peptides.bed`, `peptides.tryptic.bed`, `peptides.igv.bed`,
95
+ `unmapped_peptides.tsv`, and, when gene models are available,
96
+ `all_proteins_scores.tsv` and `supported_genes.gtf`. Multiple annotations also
97
+ produce `consensus.gff3` and `consensus_proteins.faa`.
98
+
99
+ `review/candidates.tsv` lists one row per proposed feature (alternative start, stop
100
+ or splice, terminal extension, novel ORF) with a `confidence` and reason codes;
101
+ the `review/*.gff3` files contain the supported proposals only. They require review
102
+ and are not automatically applied. A peptide supports a change only if no supplied
103
+ annotation explains it at that locus and it has a single genomic locus over all
104
+ exact matches (isoforms of one gene count once). Peptide length is reported, not
105
+ filtered: the run summary gives decoy-estimated false-discovery rates by peptide
106
+ length to judge chance matches of short peptides. Without an input annotation, RNA-derived
107
+ ORFs are candidates whose novelty cannot be assessed. ORFs are sought on the sense strand
108
+ of stranded transcripts and on both strands of unstranded ones. Peptide support does not
109
+ validate every boundary of a gene model.
110
+
111
+ ## Cite
112
+
113
+ [GAP-MS manuscript](https://www.biorxiv.org/content/10.64898/2026.03.17.712294v3)
gapms-1.4.1/README.md ADDED
@@ -0,0 +1,93 @@
1
+ # GAP-MS
2
+
3
+ GAP-MS uses mass-spectrometry peptides to assess gene predictions, combine
4
+ annotations and identify peptide-supported changes for review.
5
+
6
+ ## Install
7
+
8
+ Python 3.10 or newer:
9
+
10
+ ```bash
11
+ pip install gapms
12
+ ```
13
+
14
+ For runs with a BAM file, also install the RNA reconstruction tools:
15
+
16
+ ```bash
17
+ conda install -c conda-forge -c bioconda stringtie transdecoder=5.5.0
18
+ ```
19
+
20
+ TransDecoder 7, which keeps `TransDecoder.LongOrfs`/`TransDecoder.Predict` in its
21
+ `util/` folder, is also found automatically.
22
+
23
+ Or use the Apptainer image, which includes the RNA reconstruction tools:
24
+
25
+ ```bash
26
+ apptainer pull gapms.sif oras://docker.io/qussaiab96/gapms:latest
27
+ apptainer run gapms.sif -a assembly.fa -p peptides.tsv -g genes.gtf
28
+ ```
29
+
30
+ See [container instructions](docs/CONTAINERS.md) for Docker Hub.
31
+
32
+ ## Run
33
+
34
+ - **Assembly + peptides:**
35
+ map peptides to the six-frame genome translation.
36
+ `gapms -a assembly.fa -p peptides.tsv`
37
+ - **Add BAM:**
38
+ include RNA-supported splice paths and reconstruct peptide-supported ORF candidates.
39
+ `gapms -a assembly.fa -p peptides.tsv -b sorted.bam`
40
+ - **Add annotation:**
41
+ map across annotated exons, score gene models and propose supported changes.
42
+ `gapms -a assembly.fa -p peptides.tsv -g genes.gtf`
43
+ - **Annotation + BAM:**
44
+ combine gene-model assessment with RNA-supported reconstruction.
45
+ `gapms -a assembly.fa -p peptides.tsv -g genes.gtf -b sorted.bam`
46
+ - **Multiple annotations:**
47
+ automatically build a peptide-guided consensus. BAM is optional here too.
48
+ `gapms -a assembly.fa -p peptides.tsv -g helixer.gtf -g another.gff3`
49
+
50
+ GTF, GFF2 and GFF3 are accepted, plain or gzipped, e.g. from NCBI, Ensembl, GENCODE,
51
+ BRAKER/AUGUSTUS, GALBA, GeneMark, Helixer, Tiberius, ANNEVO, MAKER and EVM. The stop
52
+ codon may be inside the CDS, in `stop_codon` rows or not annotated at all: GAPMS always
53
+ includes it in the CDS, also in its outputs. Transcripts that cannot be used (unknown
54
+ contig, coordinates outside the contig, no strand) are skipped, not fatal;
55
+ `diagnostics/reports/annotation_input_report.tsv` lists them. Models with an internal
56
+ stop codon or overlapping CDS (ribosomal slippage) still explain peptides but are not
57
+ consensus candidates; annotated selenocysteines are read as U.
58
+
59
+ BAM files must be coordinate-sorted and use the assembly's sequence names. With several annotations and a BAM, an index is needed:
60
+ GAPMS builds one in its work folder when the BAM can be hard-linked there, and
61
+ otherwise stops at once asking for `samtools index`. FragPipe, Casanovo and plain peptide lists are supported.
62
+ Use `-o results` to choose an output directory (default: `./GAPMS_output`) and
63
+ `-t 16` to change the default of **8 threads**.
64
+
65
+ Analysis uses **trypsin-compatible exact matches** by default; add `--non-tryptic`
66
+ for other enzymes. Peptides of at least **6 residues** are searched (`--min-length`).
67
+ Isoleucine and leucine are treated as equivalent. All-match and
68
+ tryptic-match BED tracks are always retained. Optional one-edit rescue is separate
69
+ from the exact evidence used to support gene models. See `gapms --help-all`.
70
+
71
+ ## Results
72
+
73
+ Start with **report.html**; **report.log** records the run. Main outputs include
74
+ `peptides.bed`, `peptides.tryptic.bed`, `peptides.igv.bed`,
75
+ `unmapped_peptides.tsv`, and, when gene models are available,
76
+ `all_proteins_scores.tsv` and `supported_genes.gtf`. Multiple annotations also
77
+ produce `consensus.gff3` and `consensus_proteins.faa`.
78
+
79
+ `review/candidates.tsv` lists one row per proposed feature (alternative start, stop
80
+ or splice, terminal extension, novel ORF) with a `confidence` and reason codes;
81
+ the `review/*.gff3` files contain the supported proposals only. They require review
82
+ and are not automatically applied. A peptide supports a change only if no supplied
83
+ annotation explains it at that locus and it has a single genomic locus over all
84
+ exact matches (isoforms of one gene count once). Peptide length is reported, not
85
+ filtered: the run summary gives decoy-estimated false-discovery rates by peptide
86
+ length to judge chance matches of short peptides. Without an input annotation, RNA-derived
87
+ ORFs are candidates whose novelty cannot be assessed. ORFs are sought on the sense strand
88
+ of stranded transcripts and on both strands of unstranded ones. Peptide support does not
89
+ validate every boundary of a gene model.
90
+
91
+ ## Cite
92
+
93
+ [GAP-MS manuscript](https://www.biorxiv.org/content/10.64898/2026.03.17.712294v3)
@@ -1,9 +1,9 @@
1
1
  # Third-party software
2
2
 
3
- ## PepLocus 0.5.6
3
+ ## PepLocus 0.7.0
4
4
 
5
5
  PepLocus is an external MIT-licensed Python dependency, installed by pip.
6
- The GAPMS 1.3 wheel does not vendor the older `gapms._peplocus` implementation.
6
+ The GAPMS wheel does not vendor the older `gapms._peplocus` implementation.
7
7
  Source and license: https://github.com/qussai96/PepLocus.
8
8
 
9
9
  ## GeneSensus 0.6.0a3
@@ -0,0 +1,31 @@
1
+ # Apptainer
2
+
3
+ The published image is a SIF stored on Docker Hub using ORAS:
4
+
5
+ ```bash
6
+ apptainer pull gapms.sif oras://docker.io/qussaiab96/gapms:latest
7
+ apptainer run --bind /path/to/data:/data gapms.sif -a /data/assembly.fa -p /data/peptides.tsv -g /data/genes.gtf -o /data/results
8
+ ```
9
+
10
+ Use the `oras://` address to pull this image. The `latest` tag currently contains
11
+ GAPMS 1.4.1. Check the downloaded version with `apptainer run gapms.sif --version`.
12
+
13
+ The image includes StringTie, TransDecoder 5.5.0 and procps (`ps`) for Nextflow task
14
+ metrics. Runs use CPUs; no GPU option is needed.
15
+
16
+ ## Build from source
17
+
18
+ From the release checkout:
19
+
20
+ ```bash
21
+ apptainer build --fakeroot gapms-1.4.1.sif gapms.def
22
+ ```
23
+
24
+ Maintainers can publish the SIF with:
25
+
26
+ ```bash
27
+ apptainer push gapms-1.4.1.sif oras://docker.io/qussaiab96/gapms:latest
28
+ ```
29
+
30
+ A Dockerfile is also provided for users who want to build a Docker/OCI image.
31
+ The published ORAS artifact is intended for Apptainer.
@@ -0,0 +1,113 @@
1
+ Metadata-Version: 2.4
2
+ Name: gapms
3
+ Version: 1.4.1
4
+ Summary: Gene model assessment and peptide-guided annotation refinement
5
+ Author-email: Qussai Abbas <qussai.abbas@tum.de>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/qussai96/GAP-MS
8
+ Requires-Python: >=3.10
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ License-File: THIRD_PARTY.md
12
+ Requires-Dist: peplocus==0.7.0
13
+ Requires-Dist: pandas>=1.5
14
+ Requires-Dist: scipy>=1.10
15
+ Requires-Dist: scikit-learn>=1.2
16
+ Requires-Dist: matplotlib>=3.6
17
+ Requires-Dist: xgboost-cpu<4,>=2.1.4; platform_system == "Linux"
18
+ Requires-Dist: xgboost<4,>=2.1.4; platform_system != "Linux"
19
+ Dynamic: license-file
20
+
21
+ # GAP-MS
22
+
23
+ GAP-MS uses mass-spectrometry peptides to assess gene predictions, combine
24
+ annotations and identify peptide-supported changes for review.
25
+
26
+ ## Install
27
+
28
+ Python 3.10 or newer:
29
+
30
+ ```bash
31
+ pip install gapms
32
+ ```
33
+
34
+ For runs with a BAM file, also install the RNA reconstruction tools:
35
+
36
+ ```bash
37
+ conda install -c conda-forge -c bioconda stringtie transdecoder=5.5.0
38
+ ```
39
+
40
+ TransDecoder 7, which keeps `TransDecoder.LongOrfs`/`TransDecoder.Predict` in its
41
+ `util/` folder, is also found automatically.
42
+
43
+ Or use the Apptainer image, which includes the RNA reconstruction tools:
44
+
45
+ ```bash
46
+ apptainer pull gapms.sif oras://docker.io/qussaiab96/gapms:latest
47
+ apptainer run gapms.sif -a assembly.fa -p peptides.tsv -g genes.gtf
48
+ ```
49
+
50
+ See [container instructions](docs/CONTAINERS.md) for Docker Hub.
51
+
52
+ ## Run
53
+
54
+ - **Assembly + peptides:**
55
+ map peptides to the six-frame genome translation.
56
+ `gapms -a assembly.fa -p peptides.tsv`
57
+ - **Add BAM:**
58
+ include RNA-supported splice paths and reconstruct peptide-supported ORF candidates.
59
+ `gapms -a assembly.fa -p peptides.tsv -b sorted.bam`
60
+ - **Add annotation:**
61
+ map across annotated exons, score gene models and propose supported changes.
62
+ `gapms -a assembly.fa -p peptides.tsv -g genes.gtf`
63
+ - **Annotation + BAM:**
64
+ combine gene-model assessment with RNA-supported reconstruction.
65
+ `gapms -a assembly.fa -p peptides.tsv -g genes.gtf -b sorted.bam`
66
+ - **Multiple annotations:**
67
+ automatically build a peptide-guided consensus. BAM is optional here too.
68
+ `gapms -a assembly.fa -p peptides.tsv -g helixer.gtf -g another.gff3`
69
+
70
+ GTF, GFF2 and GFF3 are accepted, plain or gzipped, e.g. from NCBI, Ensembl, GENCODE,
71
+ BRAKER/AUGUSTUS, GALBA, GeneMark, Helixer, Tiberius, ANNEVO, MAKER and EVM. The stop
72
+ codon may be inside the CDS, in `stop_codon` rows or not annotated at all: GAPMS always
73
+ includes it in the CDS, also in its outputs. Transcripts that cannot be used (unknown
74
+ contig, coordinates outside the contig, no strand) are skipped, not fatal;
75
+ `diagnostics/reports/annotation_input_report.tsv` lists them. Models with an internal
76
+ stop codon or overlapping CDS (ribosomal slippage) still explain peptides but are not
77
+ consensus candidates; annotated selenocysteines are read as U.
78
+
79
+ BAM files must be coordinate-sorted and use the assembly's sequence names. With several annotations and a BAM, an index is needed:
80
+ GAPMS builds one in its work folder when the BAM can be hard-linked there, and
81
+ otherwise stops at once asking for `samtools index`. FragPipe, Casanovo and plain peptide lists are supported.
82
+ Use `-o results` to choose an output directory (default: `./GAPMS_output`) and
83
+ `-t 16` to change the default of **8 threads**.
84
+
85
+ Analysis uses **trypsin-compatible exact matches** by default; add `--non-tryptic`
86
+ for other enzymes. Peptides of at least **6 residues** are searched (`--min-length`).
87
+ Isoleucine and leucine are treated as equivalent. All-match and
88
+ tryptic-match BED tracks are always retained. Optional one-edit rescue is separate
89
+ from the exact evidence used to support gene models. See `gapms --help-all`.
90
+
91
+ ## Results
92
+
93
+ Start with **report.html**; **report.log** records the run. Main outputs include
94
+ `peptides.bed`, `peptides.tryptic.bed`, `peptides.igv.bed`,
95
+ `unmapped_peptides.tsv`, and, when gene models are available,
96
+ `all_proteins_scores.tsv` and `supported_genes.gtf`. Multiple annotations also
97
+ produce `consensus.gff3` and `consensus_proteins.faa`.
98
+
99
+ `review/candidates.tsv` lists one row per proposed feature (alternative start, stop
100
+ or splice, terminal extension, novel ORF) with a `confidence` and reason codes;
101
+ the `review/*.gff3` files contain the supported proposals only. They require review
102
+ and are not automatically applied. A peptide supports a change only if no supplied
103
+ annotation explains it at that locus and it has a single genomic locus over all
104
+ exact matches (isoforms of one gene count once). Peptide length is reported, not
105
+ filtered: the run summary gives decoy-estimated false-discovery rates by peptide
106
+ length to judge chance matches of short peptides. Without an input annotation, RNA-derived
107
+ ORFs are candidates whose novelty cannot be assessed. ORFs are sought on the sense strand
108
+ of stranded transcripts and on both strands of unstranded ones. Peptide support does not
109
+ validate every boundary of a gene model.
110
+
111
+ ## Cite
112
+
113
+ [GAP-MS manuscript](https://www.biorxiv.org/content/10.64898/2026.03.17.712294v3)
@@ -4,14 +4,7 @@ README.md
4
4
  THIRD_PARTY.md
5
5
  pyproject.toml
6
6
  setup.py
7
- docs/v1/ARCHITECTURE.md
8
- docs/v1/CONSENSUS.md
9
- docs/v1/GENESENSUS_0.6.0a3.md
10
- docs/v1/IMPLEMENTATION_PLAN.md
11
- docs/v1/OUTPUT_FORMATS.md
12
- docs/v1/README.md
13
- docs/v1/SCIENTIFIC_METHODS.md
14
- docs/v1/VALIDATION.md
7
+ docs/CONTAINERS.md
15
8
  gapms.egg-info/PKG-INFO
16
9
  gapms.egg-info/SOURCES.txt
17
10
  gapms.egg-info/dependency_links.txt
@@ -20,12 +13,14 @@ gapms.egg-info/requires.txt
20
13
  gapms.egg-info/top_level.txt
21
14
  gapms_v1/__init__.py
22
15
  gapms_v1/__main__.py
16
+ gapms_v1/annotation_io.py
23
17
  gapms_v1/assessment.py
24
18
  gapms_v1/classification.py
25
19
  gapms_v1/cli.py
26
20
  gapms_v1/common.py
27
21
  gapms_v1/confidence_features.py
28
22
  gapms_v1/consensus_engine.py
23
+ gapms_v1/events.py
29
24
  gapms_v1/mapping.py
30
25
  gapms_v1/models.py
31
26
  gapms_v1/orf_projection.py
@@ -1,4 +1,4 @@
1
- peplocus==0.5.6
1
+ peplocus==0.7.0
2
2
  pandas>=1.5
3
3
  scipy>=1.10
4
4
  scikit-learn>=1.2
@@ -1,2 +1,2 @@
1
1
  """Peptide-centric, evidence-traceable GAPMS workflows."""
2
- __version__ = '1.3.2'
2
+ __version__ = '1.4.1'