pyIsoPEP 0.1.0__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 (50) hide show
  1. pyisopep-0.1.0/.github/workflows/PyPIpublish.yml +45 -0
  2. pyisopep-0.1.0/.github/workflows/pyisopep.yaml +67 -0
  3. pyisopep-0.1.0/.gitignore +182 -0
  4. pyisopep-0.1.0/IsotonicPEP.ipynb +842 -0
  5. pyisopep-0.1.0/IsplinePEP.ipynb +242 -0
  6. pyisopep-0.1.0/LICENSE +201 -0
  7. pyisopep-0.1.0/PKG-INFO +295 -0
  8. pyisopep-0.1.0/PercolatorPEP.ipynb +658 -0
  9. pyisopep-0.1.0/README.md +78 -0
  10. pyisopep-0.1.0/data/target.fasta +37809 -0
  11. pyisopep-0.1.0/datasets/PXD003868/run_crux.sh +79 -0
  12. pyisopep-0.1.0/datasets/PXD004325/run_crux.sh +78 -0
  13. pyisopep-0.1.0/datasets/PXD004424/run_crux.sh +78 -0
  14. pyisopep-0.1.0/datasets/PXD004467/run_crux.sh +78 -0
  15. pyisopep-0.1.0/datasets/PXD004536/run_crux.sh +78 -0
  16. pyisopep-0.1.0/datasets/PXD004565/run_crux.sh +78 -0
  17. pyisopep-0.1.0/datasets/PXD004947/run_crux.sh +79 -0
  18. pyisopep-0.1.0/datasets/PXD004948/run_crux.sh +79 -0
  19. pyisopep-0.1.0/datasets/PXD005025/run_crux.sh +78 -0
  20. pyisopep-0.1.0/datasets/PXD013274/run_crux.sh +78 -0
  21. pyisopep-0.1.0/example/peptide.cat.txt +48954 -0
  22. pyisopep-0.1.0/example/peptide.decoy.txt +15643 -0
  23. pyisopep-0.1.0/example/peptide.target.txt +33312 -0
  24. pyisopep-0.1.0/obs2pep.ipynb +210 -0
  25. pyisopep-0.1.0/pyIsoPEP/Dockerfile +13 -0
  26. pyisopep-0.1.0/pyIsoPEP/IsotonicPEP.py +975 -0
  27. pyisopep-0.1.0/pyIsoPEP/__init__.py +9 -0
  28. pyisopep-0.1.0/pyIsoPEP/main.py +195 -0
  29. pyisopep-0.1.0/pyIsoPEP/requirements.txt +3 -0
  30. pyisopep-0.1.0/pyIsoPEP.ipynb +512 -0
  31. pyisopep-0.1.0/pyiso_scripts/insert_default_direction.py +42 -0
  32. pyisopep-0.1.0/pyiso_scripts/main.sh +157 -0
  33. pyisopep-0.1.0/pyiso_scripts/revise_files.py +41 -0
  34. pyisopep-0.1.0/pyiso_scripts/revise_labels.py +37 -0
  35. pyisopep-0.1.0/pyiso_scripts/slurm_run.sh +38 -0
  36. pyisopep-0.1.0/pyiso_scripts/test_design.md +28 -0
  37. pyisopep-0.1.0/pyproject.toml +23 -0
  38. pyisopep-0.1.0/q2pep.ipynb +339 -0
  39. pyisopep-0.1.0/scripts/README.md +66 -0
  40. pyisopep-0.1.0/scripts/insert_default_direction.py +42 -0
  41. pyisopep-0.1.0/scripts/main.sh +107 -0
  42. pyisopep-0.1.0/scripts/main_perc.sh +135 -0
  43. pyisopep-0.1.0/scripts/plt_figs.py +195 -0
  44. pyisopep-0.1.0/scripts/preparation.sh +76 -0
  45. pyisopep-0.1.0/scripts/repeat_main.sh +34 -0
  46. pyisopep-0.1.0/scripts/revise_labels.py +37 -0
  47. pyisopep-0.1.0/scripts/run_crux.sh +66 -0
  48. pyisopep-0.1.0/scripts/run_normal_isoperc.sh +58 -0
  49. pyisopep-0.1.0/scripts/slurm_run_perc.sh +37 -0
  50. pyisopep-0.1.0/scripts/slurm_run_preparation.sh +37 -0
@@ -0,0 +1,45 @@
1
+ name: Publish pyIsotonicPEP Python Package
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ push:
6
+ branches: [ main ]
7
+ paths:
8
+ - '.github/workflows/PyPIpublish.yml'
9
+ - 'pyIsoPEP/__init__.py'
10
+ - 'pyIsoPEP/main.py'
11
+ - 'pyIsoPEP/IsotonicPEP.py'
12
+ - 'pyproject.toml'
13
+ release:
14
+ types: [published]
15
+
16
+ permissions:
17
+ contents: read
18
+ packages: write
19
+ # id-token: write
20
+
21
+ jobs:
22
+ publish:
23
+ runs-on: ubuntu-latest
24
+
25
+ steps:
26
+ - uses: actions/checkout@v4
27
+
28
+ - uses: actions/setup-python@v5
29
+ with:
30
+ python-version: "3.x"
31
+
32
+ - name: Build release distributions
33
+ run: |
34
+ python -m pip install --upgrade pip build hatchling
35
+ python -m build
36
+
37
+ - name: Build distributions
38
+ run: |
39
+ python -m build --sdist --wheel
40
+
41
+ - name: Publish to PyPI
42
+ uses: pypa/gh-action-pypi-publish@release/v1
43
+ with:
44
+ packages-dir: dist/
45
+ password: ${{ secrets.PYPI_API_TOKEN }}
@@ -0,0 +1,67 @@
1
+ name: Build and Push pyIsotonicPEP Image
2
+
3
+ permissions:
4
+ contents: read
5
+ packages: write
6
+
7
+ on:
8
+ workflow_dispatch:
9
+ push:
10
+ branches: [ main ]
11
+ paths:
12
+ - '.github/workflows/pyisopep.yaml'
13
+ - 'pyIsoPEP/*'
14
+ - 'example/*'
15
+
16
+ jobs:
17
+ build_and_push_image:
18
+ runs-on: ubuntu-latest
19
+ steps:
20
+ - name: Checkout code
21
+ uses: actions/checkout@v4
22
+
23
+ - name: Setup QEMU
24
+ uses: docker/setup-qemu-action@v3
25
+
26
+ - name: Setup Buildx
27
+ id: buildx
28
+ uses: docker/setup-buildx-action@v3
29
+
30
+ - name: Set up Python 3.13
31
+ uses: actions/setup-python@v5
32
+ with:
33
+ python-version: '3.13'
34
+
35
+ - name: Docker login
36
+ uses: docker/login-action@v3
37
+ with:
38
+ registry: ghcr.io
39
+ username: ${{ github.repository_owner }}
40
+ password: ${{ secrets.GITHUB_TOKEN }}
41
+
42
+ - name: Generate metadata
43
+ id: meta
44
+ uses: docker/metadata-action@v5
45
+ with:
46
+ images: ghcr.io/${{ github.repository_owner }}/pyIsotonicPEP
47
+ flavor: |
48
+ latest=auto
49
+ tags: |
50
+ type=ref,event=branch
51
+ type=semver,pattern={{version}}
52
+ type=sha,format=long
53
+ labels: |
54
+ org.opencontainers.image.title=pyIsotonicPEP
55
+ org.opencontainers.image.description="Image for estimating Posterior Error Probabilities (PEPs) for identifications using isotonic regression in shotgun proteomics."
56
+ org.opencontainers.image.url=${{ github.event.repository.html_url }}
57
+ org.opencontainers.image.source=${{ github.event.repository.html_url }}
58
+
59
+ - name: Build and push pyIsotonicPEP image
60
+ uses: docker/build-push-action@v6
61
+ with:
62
+ context: .
63
+ file: ./pyIsoPEP/Dockerfile
64
+ push: true
65
+ platforms: linux/amd64
66
+ tags: ${{ steps.meta.outputs.tags }}
67
+ labels: ${{ steps.meta.outputs.labels }}
@@ -0,0 +1,182 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # poetry
98
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102
+ #poetry.lock
103
+
104
+ # pdm
105
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106
+ #pdm.lock
107
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108
+ # in version control.
109
+ # https://pdm.fming.dev/#use-with-ide
110
+ .pdm.toml
111
+
112
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
113
+ __pypackages__/
114
+
115
+ # Celery stuff
116
+ celerybeat-schedule
117
+ celerybeat.pid
118
+
119
+ # SageMath parsed files
120
+ *.sage.py
121
+
122
+ # Environments
123
+ .env
124
+ .venv
125
+ env/
126
+ venv/
127
+ ENV/
128
+ env.bak/
129
+ venv.bak/
130
+
131
+ # Spyder project settings
132
+ .spyderproject
133
+ .spyproject
134
+
135
+ # Rope project settings
136
+ .ropeproject
137
+
138
+ # mkdocs documentation
139
+ /site
140
+
141
+ # mypy
142
+ .mypy_cache/
143
+ .dmypy.json
144
+ dmypy.json
145
+
146
+ # Pyre type checker
147
+ .pyre/
148
+
149
+ # pytype static type analyzer
150
+ .pytype/
151
+
152
+ # Cython debug symbols
153
+ cython_debug/
154
+
155
+ # PyCharm
156
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
157
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
159
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
160
+ #.idea/
161
+
162
+ data/*.mzML
163
+ data/*.pin
164
+ data/*.txt
165
+ output/*
166
+ output_latest
167
+ figs/*.png
168
+ *simplified*
169
+ pyiso_test/*
170
+ figs/ispline/*
171
+ figs/pyiso_test_onecrux/*
172
+ figs/pyiso_test/*
173
+ datasets/*/*
174
+ !datasets/*/*.sh
175
+ pyiso_test_onecrux/*
176
+ pyiso_scripts/*onecrux*
177
+ pyiso_scripts/*podman*
178
+ pyiso_scripts/repeat_main.sh
179
+ pyiso_scripts/run_all.sh
180
+ pyIsoPEP/*maj*
181
+ percolator_PEP_issues/*
182
+ example/results/*