scanmst 0.1.9__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.
- scanmst-0.1.9/.clang-tidy +1 -0
- scanmst-0.1.9/.dockerignore +240 -0
- scanmst-0.1.9/.gitattributes +1 -0
- scanmst-0.1.9/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
- scanmst-0.1.9/.github/ISSUE_TEMPLATE/bug_report.yml +61 -0
- scanmst-0.1.9/.github/ISSUE_TEMPLATE/feature_request.md +19 -0
- scanmst-0.1.9/.github/dependabot.yml +18 -0
- scanmst-0.1.9/.github/labels.yml +66 -0
- scanmst-0.1.9/.github/release-drafter.yml +29 -0
- scanmst-0.1.9/.github/workflows/constraints.txt +2 -0
- scanmst-0.1.9/.github/workflows/labels.yml +32 -0
- scanmst-0.1.9/.github/workflows/release.yml +94 -0
- scanmst-0.1.9/.github/workflows/tests.yml +106 -0
- scanmst-0.1.9/.github/workflows/wheels.yml +87 -0
- scanmst-0.1.9/.gitignore +59 -0
- scanmst-0.1.9/.gitmodules +0 -0
- scanmst-0.1.9/.pre-commit-config.yaml +32 -0
- scanmst-0.1.9/.readthedocs.yml +11 -0
- scanmst-0.1.9/CMakeLists.txt +183 -0
- scanmst-0.1.9/CODE_OF_CONDUCT.md +132 -0
- scanmst-0.1.9/CONTRIBUTING.md +122 -0
- scanmst-0.1.9/LICENSE +674 -0
- scanmst-0.1.9/Makefile +22 -0
- scanmst-0.1.9/PKG-INFO +187 -0
- scanmst-0.1.9/README.md +149 -0
- scanmst-0.1.9/cliff.toml +71 -0
- scanmst-0.1.9/codecov.yml +9 -0
- scanmst-0.1.9/docker/Dockerfile +39 -0
- scanmst-0.1.9/docs/about/citation.md +63 -0
- scanmst-0.1.9/docs/about/license.md +64 -0
- scanmst-0.1.9/docs/assets/logo.svg +75 -0
- scanmst-0.1.9/docs/getting-started/installation.md +117 -0
- scanmst-0.1.9/docs/getting-started/quick-start.md +153 -0
- scanmst-0.1.9/docs/getting-started/troubleshooting.md +111 -0
- scanmst-0.1.9/docs/images/segment_links.png +0 -0
- scanmst-0.1.9/docs/index.md +81 -0
- scanmst-0.1.9/docs/reference/cli.md +295 -0
- scanmst-0.1.9/docs/stylesheets/extra.css +904 -0
- scanmst-0.1.9/docs/tutorials/reads-alignment.md +80 -0
- scanmst-0.1.9/docs/tutorials/running-scanmst.md +56 -0
- scanmst-0.1.9/images/logo.png +0 -0
- scanmst-0.1.9/images/segment_links.png +0 -0
- scanmst-0.1.9/mkdocs.yml +200 -0
- scanmst-0.1.9/noxfile.py +210 -0
- scanmst-0.1.9/pyproject.toml +328 -0
- scanmst-0.1.9/scripts/build-htslib.sh +55 -0
- scanmst-0.1.9/scripts/check_wheel.py +82 -0
- scanmst-0.1.9/src/scanmst/__init__.py +90 -0
- scanmst-0.1.9/src/scanmst/__main__.py +16 -0
- scanmst-0.1.9/src/scanmst/base/__init__.py +59 -0
- scanmst-0.1.9/src/scanmst/base/basic.py +430 -0
- scanmst-0.1.9/src/scanmst/base/basic_class.py +437 -0
- scanmst-0.1.9/src/scanmst/base/basic_read.py +229 -0
- scanmst-0.1.9/src/scanmst/base/blat.py +535 -0
- scanmst-0.1.9/src/scanmst/base/filters.py +545 -0
- scanmst-0.1.9/src/scanmst/base/helper.py +2097 -0
- scanmst-0.1.9/src/scanmst/base/mst_inference.py +153 -0
- scanmst-0.1.9/src/scanmst/base/my_logger.py +58 -0
- scanmst-0.1.9/src/scanmst/base/parallel.py +91 -0
- scanmst-0.1.9/src/scanmst/base/read_connector.py +1185 -0
- scanmst-0.1.9/src/scanmst/blat/__init__.py +139 -0
- scanmst-0.1.9/src/scanmst/blat/transcriptome_length.yaml +5 -0
- scanmst-0.1.9/src/scanmst/cli/__init__.py +6 -0
- scanmst-0.1.9/src/scanmst/cli/arg.py +423 -0
- scanmst-0.1.9/src/scanmst/cli/cli.py +254 -0
- scanmst-0.1.9/src/scanmst/cli/main.py +937 -0
- scanmst-0.1.9/src/scanmst/cppext/__init__.py +14 -0
- scanmst-0.1.9/src/scanmst/cppext/__init__.pyi +230 -0
- scanmst-0.1.9/src/scanmst/cppext/bindings/_cppext.cpp +47 -0
- scanmst-0.1.9/src/scanmst/cppext/bindings/_cppext.modules +1 -0
- scanmst-0.1.9/src/scanmst/cppext/bindings/_cppext.sources +6 -0
- scanmst-0.1.9/src/scanmst/cppext/bindings/bam.cpp +99 -0
- scanmst-0.1.9/src/scanmst/cppext/bindings/rescuer.cpp +105 -0
- scanmst-0.1.9/src/scanmst/cppext/include/backward.hpp +4309 -0
- scanmst-0.1.9/src/scanmst/cppext/include/bam.h +185 -0
- scanmst-0.1.9/src/scanmst/cppext/include/rescuer.h +271 -0
- scanmst-0.1.9/src/scanmst/cppext/include/sse2neon.h +7829 -0
- scanmst-0.1.9/src/scanmst/cppext/include/ssw.h +198 -0
- scanmst-0.1.9/src/scanmst/cppext/include/ssw_cpp.h +217 -0
- scanmst-0.1.9/src/scanmst/cppext/include/utils.hpp +49 -0
- scanmst-0.1.9/src/scanmst/cppext/src/backward.cpp +42 -0
- scanmst-0.1.9/src/scanmst/cppext/src/bam.cpp +243 -0
- scanmst-0.1.9/src/scanmst/cppext/src/binding.cpp +99 -0
- scanmst-0.1.9/src/scanmst/cppext/src/rescuer.cpp +517 -0
- scanmst-0.1.9/src/scanmst/cppext/src/ssw.c +1020 -0
- scanmst-0.1.9/src/scanmst/cppext/src/ssw_cpp.cpp +411 -0
- scanmst-0.1.9/src/scanmst/exception.py +95 -0
- scanmst-0.1.9/src/scanmst/graph/__init__.py +34 -0
- scanmst-0.1.9/src/scanmst/graph/annotate.py +93 -0
- scanmst-0.1.9/src/scanmst/graph/basic_graph.py +1483 -0
- scanmst-0.1.9/src/scanmst/graph/cluster.py +515 -0
- scanmst-0.1.9/src/scanmst/graph/graphvis.py +445 -0
- scanmst-0.1.9/src/scanmst/graph/merge_condition.py +732 -0
- scanmst-0.1.9/src/scanmst/graph/nlgraph.py +850 -0
- scanmst-0.1.9/src/scanmst/graph/sr_rescuer.py +256 -0
- scanmst-0.1.9/src/scanmst/mtype.py +43 -0
- scanmst-0.1.9/src/scanmst/py.typed +0 -0
- scanmst-0.1.9/src/scanmst/utils.py +336 -0
- scanmst-0.1.9/src/scanmst/writer/__init__.py +8 -0
- scanmst-0.1.9/src/scanmst/writer/fasta_writer.py +198 -0
- scanmst-0.1.9/src/scanmst/writer/gtf_writer.py +294 -0
- scanmst-0.1.9/src/scanmst/writer/tsg_writer.py +132 -0
- scanmst-0.1.9/src/scanmst/writer/vcf_writer.py +493 -0
- scanmst-0.1.9/src/scanmst/writer/writer.py +99 -0
- scanmst-0.1.9/tests/__init__.py +90 -0
- scanmst-0.1.9/tests/conftest.py +845 -0
- scanmst-0.1.9/tests/main.py +1 -0
- scanmst-0.1.9/tests/test_blat.py +75 -0
- scanmst-0.1.9/tests/test_core/__init__.py +3 -0
- scanmst-0.1.9/tests/test_core/test_helper.py +306 -0
- scanmst-0.1.9/tests/test_cppext.py +56 -0
- scanmst-0.1.9/tests/test_e2e/__init__.py +3 -0
- scanmst-0.1.9/tests/test_e2e/test_cli.py +59 -0
- scanmst-0.1.9/tests/test_event.py +79 -0
- scanmst-0.1.9/tests/test_insertion.py +60 -0
- scanmst-0.1.9/tests/test_load_blat.py +35 -0
- scanmst-0.1.9/tests/test_node.py +127 -0
- scanmst-0.1.9/tests/test_path.py +87 -0
- scanmst-0.1.9/tests/test_read.py +259 -0
- scanmst-0.1.9/tests/test_splice_graph/__init__.py +20 -0
- scanmst-0.1.9/tests/test_splice_graph/test_prune_case1.py +399 -0
- scanmst-0.1.9/tests/test_utils.py +89 -0
- scanmst-0.1.9/uv.lock +4207 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Checks: "clang-diagnostic-*,clang-analyzer-*,cppcoreguidelines-*,modernize-*,-modernize-use-trailing-return-type,bugprone-*,concurrency-*,hicpp-*,performance-*"
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
### JetBrains template
|
|
2
|
+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
|
|
3
|
+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
|
4
|
+
|
|
5
|
+
# User-specific stuff
|
|
6
|
+
.idea/**/workspace.xml
|
|
7
|
+
.idea/**/tasks.xml
|
|
8
|
+
.idea/**/usage.statistics.xml
|
|
9
|
+
.idea/**/dictionaries
|
|
10
|
+
.idea/**/shelf
|
|
11
|
+
|
|
12
|
+
# Generated files
|
|
13
|
+
.idea/**/contentModel.xml
|
|
14
|
+
|
|
15
|
+
# Sensitive or high-churn files
|
|
16
|
+
.idea/**/dataSources/
|
|
17
|
+
.idea/**/dataSources.ids
|
|
18
|
+
.idea/**/dataSources.local.xml
|
|
19
|
+
.idea/**/sqlDataSources.xml
|
|
20
|
+
.idea/**/dynamic.xml
|
|
21
|
+
.idea/**/uiDesigner.xml
|
|
22
|
+
.idea/**/dbnavigator.xml
|
|
23
|
+
|
|
24
|
+
# Gradle
|
|
25
|
+
.idea/**/gradle.xml
|
|
26
|
+
.idea/**/libraries
|
|
27
|
+
|
|
28
|
+
# Gradle and Maven with auto-import
|
|
29
|
+
# When using Gradle or Maven with auto-import, you should exclude module files,
|
|
30
|
+
# since they will be recreated, and may cause churn. Uncomment if using
|
|
31
|
+
# auto-import.
|
|
32
|
+
# .idea/artifacts
|
|
33
|
+
# .idea/compiler.xml
|
|
34
|
+
# .idea/jarRepositories.xml
|
|
35
|
+
# .idea/modules.xml
|
|
36
|
+
# .idea/*.iml
|
|
37
|
+
# .idea/modules
|
|
38
|
+
# *.iml
|
|
39
|
+
# *.ipr
|
|
40
|
+
|
|
41
|
+
# CMake
|
|
42
|
+
cmake-build-*/
|
|
43
|
+
|
|
44
|
+
# Mongo Explorer plugin
|
|
45
|
+
.idea/**/mongoSettings.xml
|
|
46
|
+
|
|
47
|
+
# File-based project format
|
|
48
|
+
*.iws
|
|
49
|
+
|
|
50
|
+
# IntelliJ
|
|
51
|
+
out/
|
|
52
|
+
|
|
53
|
+
# mpeltonen/sbt-idea plugin
|
|
54
|
+
.idea_modules/
|
|
55
|
+
|
|
56
|
+
# JIRA plugin
|
|
57
|
+
atlassian-ide-plugin.xml
|
|
58
|
+
|
|
59
|
+
# Cursive Clojure plugin
|
|
60
|
+
.idea/replstate.xml
|
|
61
|
+
|
|
62
|
+
# Crashlytics plugin (for Android Studio and IntelliJ)
|
|
63
|
+
com_crashlytics_export_strings.xml
|
|
64
|
+
crashlytics.properties
|
|
65
|
+
crashlytics-build.properties
|
|
66
|
+
fabric.properties
|
|
67
|
+
|
|
68
|
+
# Editor-based Rest Client
|
|
69
|
+
.idea/httpRequests
|
|
70
|
+
|
|
71
|
+
# Android studio 3.1+ serialized cache file
|
|
72
|
+
.idea/caches/build_file_checksums.ser
|
|
73
|
+
|
|
74
|
+
### macOS template
|
|
75
|
+
# General
|
|
76
|
+
.DS_Store
|
|
77
|
+
.AppleDouble
|
|
78
|
+
.LSOverride
|
|
79
|
+
|
|
80
|
+
# Icon must end with two \r
|
|
81
|
+
Icon
|
|
82
|
+
|
|
83
|
+
# Thumbnails
|
|
84
|
+
._*
|
|
85
|
+
|
|
86
|
+
# Files that might appear in the root of a volume
|
|
87
|
+
.DocumentRevisions-V100
|
|
88
|
+
.fseventsd
|
|
89
|
+
.Spotlight-V100
|
|
90
|
+
.TemporaryItems
|
|
91
|
+
.Trashes
|
|
92
|
+
.VolumeIcon.icns
|
|
93
|
+
.com.apple.timemachine.donotpresent
|
|
94
|
+
|
|
95
|
+
# Directories potentially created on remote AFP share
|
|
96
|
+
.AppleDB
|
|
97
|
+
.AppleDesktop
|
|
98
|
+
Network Trash Folder
|
|
99
|
+
Temporary Items
|
|
100
|
+
.apdisk
|
|
101
|
+
|
|
102
|
+
### Python template
|
|
103
|
+
# Byte-compiled / optimized / DLL files
|
|
104
|
+
__pycache__/
|
|
105
|
+
*.py[cod]
|
|
106
|
+
*$py.class
|
|
107
|
+
|
|
108
|
+
# C extensions
|
|
109
|
+
*.so
|
|
110
|
+
|
|
111
|
+
# Distribution / packaging
|
|
112
|
+
.Python
|
|
113
|
+
build/
|
|
114
|
+
develop-eggs/
|
|
115
|
+
dist/
|
|
116
|
+
downloads/
|
|
117
|
+
eggs/
|
|
118
|
+
.eggs/
|
|
119
|
+
lib/
|
|
120
|
+
lib64/
|
|
121
|
+
parts/
|
|
122
|
+
sdist/
|
|
123
|
+
var/
|
|
124
|
+
wheels/
|
|
125
|
+
share/python-wheels/
|
|
126
|
+
*.egg-info/
|
|
127
|
+
.installed.cfg
|
|
128
|
+
*.egg
|
|
129
|
+
MANIFEST
|
|
130
|
+
|
|
131
|
+
# PyInstaller
|
|
132
|
+
# Usually these files are written by a python script from a template
|
|
133
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
134
|
+
*.manifest
|
|
135
|
+
*.spec
|
|
136
|
+
|
|
137
|
+
# Installer logs
|
|
138
|
+
pip-log.txt
|
|
139
|
+
pip-delete-this-directory.txt
|
|
140
|
+
|
|
141
|
+
# Unit test / coverage reports
|
|
142
|
+
htmlcov/
|
|
143
|
+
.tox/
|
|
144
|
+
.nox/
|
|
145
|
+
.coverage
|
|
146
|
+
.coverage.*
|
|
147
|
+
.cache
|
|
148
|
+
nosetests.xml
|
|
149
|
+
coverage.xml
|
|
150
|
+
*.cover
|
|
151
|
+
*.py,cover
|
|
152
|
+
.hypothesis/
|
|
153
|
+
.pytest_cache/
|
|
154
|
+
cover/
|
|
155
|
+
|
|
156
|
+
# Translations
|
|
157
|
+
*.mo
|
|
158
|
+
*.pot
|
|
159
|
+
|
|
160
|
+
# Django stuff:
|
|
161
|
+
*.log
|
|
162
|
+
local_settings.py
|
|
163
|
+
db.sqlite3
|
|
164
|
+
db.sqlite3-journal
|
|
165
|
+
|
|
166
|
+
# Flask stuff:
|
|
167
|
+
instance/
|
|
168
|
+
.webassets-cache
|
|
169
|
+
|
|
170
|
+
# Scrapy stuff:
|
|
171
|
+
.scrapy
|
|
172
|
+
|
|
173
|
+
# Sphinx documentation
|
|
174
|
+
docs/_build/
|
|
175
|
+
|
|
176
|
+
# PyBuilder
|
|
177
|
+
.pybuilder/
|
|
178
|
+
target/
|
|
179
|
+
|
|
180
|
+
# Jupyter Notebook
|
|
181
|
+
.ipynb_checkpoints
|
|
182
|
+
|
|
183
|
+
# IPython
|
|
184
|
+
profile_default/
|
|
185
|
+
ipython_config.py
|
|
186
|
+
|
|
187
|
+
# pyenv
|
|
188
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
189
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
190
|
+
# .python-version
|
|
191
|
+
|
|
192
|
+
# pipenv
|
|
193
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
194
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
195
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
196
|
+
# install all needed dependencies.
|
|
197
|
+
#Pipfile.lock
|
|
198
|
+
|
|
199
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
|
200
|
+
__pypackages__/
|
|
201
|
+
|
|
202
|
+
# Celery stuff
|
|
203
|
+
celerybeat-schedule
|
|
204
|
+
celerybeat.pid
|
|
205
|
+
|
|
206
|
+
# SageMath parsed files
|
|
207
|
+
*.sage.py
|
|
208
|
+
|
|
209
|
+
# Environments
|
|
210
|
+
.env
|
|
211
|
+
.venv
|
|
212
|
+
env/
|
|
213
|
+
venv/
|
|
214
|
+
ENV/
|
|
215
|
+
env.bak/
|
|
216
|
+
venv.bak/
|
|
217
|
+
|
|
218
|
+
# Spyder project settings
|
|
219
|
+
.spyderproject
|
|
220
|
+
.spyproject
|
|
221
|
+
|
|
222
|
+
# Rope project settings
|
|
223
|
+
.ropeproject
|
|
224
|
+
|
|
225
|
+
# mkdocs documentation
|
|
226
|
+
/site
|
|
227
|
+
|
|
228
|
+
# mypy
|
|
229
|
+
.mypy_cache/
|
|
230
|
+
.dmypy.json
|
|
231
|
+
dmypy.json
|
|
232
|
+
|
|
233
|
+
# Pyre type checker
|
|
234
|
+
.pyre/
|
|
235
|
+
|
|
236
|
+
# pytype static type analyzer
|
|
237
|
+
.pytype/
|
|
238
|
+
|
|
239
|
+
# Cython debug symbols
|
|
240
|
+
cython_debug/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* text=auto eol=lf
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug report
|
|
3
|
+
about: Create a report to help us improve
|
|
4
|
+
title: ""
|
|
5
|
+
labels: ""
|
|
6
|
+
assignees: ""
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
**Describe the bug**
|
|
10
|
+
A clear and concise description of what the bug is.
|
|
11
|
+
|
|
12
|
+
**Command Lines**
|
|
13
|
+
A clear and concise description of what the bug is.
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
**To Reproduce**
|
|
20
|
+
Steps to reproduce the behavior:
|
|
21
|
+
|
|
22
|
+
1. Go to '...'
|
|
23
|
+
2. Click on '....'
|
|
24
|
+
3. Scroll down to '....'
|
|
25
|
+
4. See error
|
|
26
|
+
|
|
27
|
+
**Expected behavior**
|
|
28
|
+
A clear and concise description of what you expected to happen.
|
|
29
|
+
|
|
30
|
+
**Screenshots**
|
|
31
|
+
If applicable, add screenshots to help explain your problem.
|
|
32
|
+
|
|
33
|
+
**Desktop (please complete the following information):**
|
|
34
|
+
|
|
35
|
+
- OS: [e.g. iOS]
|
|
36
|
+
|
|
37
|
+
**Additional context**
|
|
38
|
+
Add any other context about the problem here.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
name: Bug Report
|
|
2
|
+
description: File a bug report
|
|
3
|
+
title: "[Bug]: "
|
|
4
|
+
labels: ["bug"]
|
|
5
|
+
assignees:
|
|
6
|
+
- octocat
|
|
7
|
+
body:
|
|
8
|
+
- type: markdown
|
|
9
|
+
attributes:
|
|
10
|
+
value: |
|
|
11
|
+
Thanks for taking the time to fill out this bug report!
|
|
12
|
+
- type: input
|
|
13
|
+
id: contact
|
|
14
|
+
attributes:
|
|
15
|
+
label: Contact Details
|
|
16
|
+
description: How can we get in touch with you if we need more info?
|
|
17
|
+
placeholder: ex. email@example.com
|
|
18
|
+
validations:
|
|
19
|
+
required: false
|
|
20
|
+
- type: textarea
|
|
21
|
+
id: what-happened
|
|
22
|
+
attributes:
|
|
23
|
+
label: What happened?
|
|
24
|
+
description: Also tell us, what did you expect to happen?
|
|
25
|
+
placeholder: Tell us what you see!
|
|
26
|
+
value: "A bug happened!"
|
|
27
|
+
validations:
|
|
28
|
+
required: true
|
|
29
|
+
- type: dropdown
|
|
30
|
+
id: version
|
|
31
|
+
attributes:
|
|
32
|
+
label: Version
|
|
33
|
+
description: What version of our software are you running?
|
|
34
|
+
options:
|
|
35
|
+
- 1.0.0 (Default)
|
|
36
|
+
- 0.0.1 (Edge)
|
|
37
|
+
validations:
|
|
38
|
+
required: true
|
|
39
|
+
- type: dropdown
|
|
40
|
+
id: platform
|
|
41
|
+
attributes:
|
|
42
|
+
label: What platform are you working on?
|
|
43
|
+
multiple: true
|
|
44
|
+
options:
|
|
45
|
+
- Mac Intel
|
|
46
|
+
- Linux
|
|
47
|
+
- Windows
|
|
48
|
+
- type: textarea
|
|
49
|
+
id: logs
|
|
50
|
+
attributes:
|
|
51
|
+
label: Relevant log output
|
|
52
|
+
description: Please copy and paste any relevant log output in trace log mode. This will be automatically formatted into code, so no need for backticks.
|
|
53
|
+
render: shell
|
|
54
|
+
- type: checkboxes
|
|
55
|
+
id: terms
|
|
56
|
+
attributes:
|
|
57
|
+
label: Code of Conduct
|
|
58
|
+
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/ylab-hi/ScanNLS/blob/main/CODE_OF_CONDUCT.md)
|
|
59
|
+
options:
|
|
60
|
+
- label: I agree to follow this project's Code of Conduct
|
|
61
|
+
required: true
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Feature request
|
|
3
|
+
about: Suggest an idea for this project
|
|
4
|
+
title: ""
|
|
5
|
+
labels: ""
|
|
6
|
+
assignees: ""
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
**Is your feature request related to a problem? Please describe.**
|
|
10
|
+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
11
|
+
|
|
12
|
+
**Describe the solution you'd like**
|
|
13
|
+
A clear and concise description of what you want to happen.
|
|
14
|
+
|
|
15
|
+
**Describe alternatives you've considered**
|
|
16
|
+
A clear and concise description of any alternative solutions or features you've considered.
|
|
17
|
+
|
|
18
|
+
**Additional context**
|
|
19
|
+
Add any other context or screenshots about the feature request here.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
- package-ecosystem: github-actions
|
|
4
|
+
directory: "/"
|
|
5
|
+
schedule:
|
|
6
|
+
interval: monthly
|
|
7
|
+
- package-ecosystem: pip
|
|
8
|
+
directory: "/.github/workflows"
|
|
9
|
+
schedule:
|
|
10
|
+
interval: monthly
|
|
11
|
+
- package-ecosystem: pip
|
|
12
|
+
directory: "/docs"
|
|
13
|
+
schedule:
|
|
14
|
+
interval: monthly
|
|
15
|
+
- package-ecosystem: pip
|
|
16
|
+
directory: "/"
|
|
17
|
+
schedule:
|
|
18
|
+
interval: monthly
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
---
|
|
2
|
+
# Labels names are important as they are used by Release Drafter to decide
|
|
3
|
+
# regarding where to record them in changelog or if to skip them.
|
|
4
|
+
#
|
|
5
|
+
# The repository labels will be automatically configured using this file and
|
|
6
|
+
# the GitHub Action https://github.com/marketplace/actions/github-labeler.
|
|
7
|
+
- name: breaking
|
|
8
|
+
description: Breaking Changes
|
|
9
|
+
color: bfd4f2
|
|
10
|
+
- name: bug
|
|
11
|
+
description: Something isn't working
|
|
12
|
+
color: d73a4a
|
|
13
|
+
- name: build
|
|
14
|
+
description: Build System and Dependencies
|
|
15
|
+
color: bfdadc
|
|
16
|
+
- name: ci
|
|
17
|
+
description: Continuous Integration
|
|
18
|
+
color: 4a97d6
|
|
19
|
+
- name: dependencies
|
|
20
|
+
description: Pull requests that update a dependency file
|
|
21
|
+
color: 0366d6
|
|
22
|
+
- name: documentation
|
|
23
|
+
description: Improvements or additions to documentation
|
|
24
|
+
color: 0075ca
|
|
25
|
+
- name: duplicate
|
|
26
|
+
description: This issue or pull request already exists
|
|
27
|
+
color: cfd3d7
|
|
28
|
+
- name: enhancement
|
|
29
|
+
description: New feature or request
|
|
30
|
+
color: a2eeef
|
|
31
|
+
- name: github_actions
|
|
32
|
+
description: Pull requests that update Github_actions code
|
|
33
|
+
color: "000000"
|
|
34
|
+
- name: good first issue
|
|
35
|
+
description: Good for newcomers
|
|
36
|
+
color: 7057ff
|
|
37
|
+
- name: help wanted
|
|
38
|
+
description: Extra attention is needed
|
|
39
|
+
color: 008672
|
|
40
|
+
- name: invalid
|
|
41
|
+
description: This doesn't seem right
|
|
42
|
+
color: e4e669
|
|
43
|
+
- name: performance
|
|
44
|
+
description: Performance
|
|
45
|
+
color: "016175"
|
|
46
|
+
- name: python
|
|
47
|
+
description: Pull requests that update Python code
|
|
48
|
+
color: 2b67c6
|
|
49
|
+
- name: question
|
|
50
|
+
description: Further information is requested
|
|
51
|
+
color: d876e3
|
|
52
|
+
- name: refactoring
|
|
53
|
+
description: Refactoring
|
|
54
|
+
color: ef67c4
|
|
55
|
+
- name: removal
|
|
56
|
+
description: Removals and Deprecations
|
|
57
|
+
color: 9ae7ea
|
|
58
|
+
- name: style
|
|
59
|
+
description: Style
|
|
60
|
+
color: c120e5
|
|
61
|
+
- name: testing
|
|
62
|
+
description: Testing
|
|
63
|
+
color: b1fc6f
|
|
64
|
+
- name: wontfix
|
|
65
|
+
description: This will not be worked on
|
|
66
|
+
color: ffffff
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
categories:
|
|
2
|
+
- title: ":boom: Breaking Changes"
|
|
3
|
+
label: "breaking"
|
|
4
|
+
- title: ":rocket: Features"
|
|
5
|
+
label: "enhancement"
|
|
6
|
+
- title: ":fire: Removals and Deprecations"
|
|
7
|
+
label: "removal"
|
|
8
|
+
- title: ":beetle: Fixes"
|
|
9
|
+
label: "bug"
|
|
10
|
+
- title: ":racehorse: Performance"
|
|
11
|
+
label: "performance"
|
|
12
|
+
- title: ":rotating_light: Testing"
|
|
13
|
+
label: "testing"
|
|
14
|
+
- title: ":construction_worker: Continuous Integration"
|
|
15
|
+
label: "ci"
|
|
16
|
+
- title: ":books: Documentation"
|
|
17
|
+
label: "documentation"
|
|
18
|
+
- title: ":hammer: Refactoring"
|
|
19
|
+
label: "refactoring"
|
|
20
|
+
- title: ":lipstick: Style"
|
|
21
|
+
label: "style"
|
|
22
|
+
- title: ":package: Dependencies"
|
|
23
|
+
labels:
|
|
24
|
+
- "dependencies"
|
|
25
|
+
- "build"
|
|
26
|
+
template: |
|
|
27
|
+
## Changes
|
|
28
|
+
|
|
29
|
+
$CHANGES
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
name: github
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- "main"
|
|
7
|
+
paths:
|
|
8
|
+
- ".github/labels.yml"
|
|
9
|
+
- ".github/workflows/labels.yml"
|
|
10
|
+
pull_request:
|
|
11
|
+
paths:
|
|
12
|
+
- ".github/labels.yml"
|
|
13
|
+
- ".github/workflows/labels.yml"
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
labeler:
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
permissions:
|
|
19
|
+
contents: read
|
|
20
|
+
issues: write
|
|
21
|
+
steps:
|
|
22
|
+
- name: Checkout
|
|
23
|
+
uses: actions/checkout@v4
|
|
24
|
+
- name: Run Labeler
|
|
25
|
+
uses: crazy-max/ghaction-github-labeler@v5
|
|
26
|
+
with:
|
|
27
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
28
|
+
yaml-file: .github/labels.yml
|
|
29
|
+
dry-run: ${{ github.event_name == 'pull_request' }}
|
|
30
|
+
exclude: |
|
|
31
|
+
help*
|
|
32
|
+
*issue
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
# Step 3 of the PyPI/bioconda migration: publishes to PyPI via Trusted
|
|
4
|
+
# Publishing (OIDC) -- no stored token, no username/password. Triggers on
|
|
5
|
+
# `v*` tags, same as wheels.yml used to.
|
|
6
|
+
#
|
|
7
|
+
# Requires a one-time manual action on PyPI (only the maintainer can do this):
|
|
8
|
+
# add a pending publisher at https://pypi.org/manage/account/publishing/
|
|
9
|
+
# PyPI project name : scanmst
|
|
10
|
+
# Owner : ylab-hi
|
|
11
|
+
# Repository name : ScanMST
|
|
12
|
+
# Workflow name : release.yml
|
|
13
|
+
# Environment name : pypi
|
|
14
|
+
#
|
|
15
|
+
# workflow_dispatch takes a required confirm_version input rather than
|
|
16
|
+
# relying on the ref: dispatch always runs against a branch (there is no tag
|
|
17
|
+
# to read a version from), and the first real release is exactly this case --
|
|
18
|
+
# tag v0.1.9 is the immutable manuscript-provenance anchor and predates this
|
|
19
|
+
# workflow file entirely (it was pushed against the old poetry-based
|
|
20
|
+
# release.yml, which has no workflow_dispatch trigger), so it can never be the
|
|
21
|
+
# dispatch target. The first PyPI upload of 0.1.9 is therefore built from
|
|
22
|
+
# main at its current state, not from that tag's commit.
|
|
23
|
+
#
|
|
24
|
+
# PyPI uploads are permanent and a filename can never be reused, so:
|
|
25
|
+
# * check-version gates the whole run on the confirmed version matching
|
|
26
|
+
# pyproject.toml, before any build or publish step runs.
|
|
27
|
+
# * the publish job has no checkout and does nothing but download the
|
|
28
|
+
# already-checked build artifacts and hand them to `uv publish` -- it is
|
|
29
|
+
# the only job with `id-token: write`, so its surface is kept minimal.
|
|
30
|
+
on:
|
|
31
|
+
push:
|
|
32
|
+
tags:
|
|
33
|
+
- "v*"
|
|
34
|
+
workflow_dispatch:
|
|
35
|
+
inputs:
|
|
36
|
+
confirm_version:
|
|
37
|
+
description: "Version to publish (must match pyproject.toml) -- there is no tag to check on a manual dispatch, so this is the confirmation"
|
|
38
|
+
required: true
|
|
39
|
+
type: string
|
|
40
|
+
|
|
41
|
+
permissions:
|
|
42
|
+
contents: read
|
|
43
|
+
|
|
44
|
+
jobs:
|
|
45
|
+
check-version:
|
|
46
|
+
name: Verify version matches pyproject.toml
|
|
47
|
+
runs-on: ubuntu-latest
|
|
48
|
+
steps:
|
|
49
|
+
- name: Check out the repository
|
|
50
|
+
uses: actions/checkout@v4
|
|
51
|
+
|
|
52
|
+
- name: Compare expected version to pyproject.toml
|
|
53
|
+
env:
|
|
54
|
+
CONFIRM_VERSION: ${{ inputs.confirm_version }}
|
|
55
|
+
run: |
|
|
56
|
+
if [ "${GITHUB_EVENT_NAME}" = "workflow_dispatch" ]; then
|
|
57
|
+
EXPECTED_VERSION="${CONFIRM_VERSION}"
|
|
58
|
+
else
|
|
59
|
+
EXPECTED_VERSION="${GITHUB_REF_NAME#v}"
|
|
60
|
+
fi
|
|
61
|
+
PROJECT_VERSION=$(grep -m1 '^version = ' pyproject.toml | sed -E 's/version = "(.*)"/\1/')
|
|
62
|
+
if [ "$EXPECTED_VERSION" != "$PROJECT_VERSION" ]; then
|
|
63
|
+
echo "::error::expected version $EXPECTED_VERSION does not match pyproject.toml version $PROJECT_VERSION"
|
|
64
|
+
exit 1
|
|
65
|
+
fi
|
|
66
|
+
echo "confirmed: publishing version $PROJECT_VERSION"
|
|
67
|
+
|
|
68
|
+
build:
|
|
69
|
+
name: Build distributions
|
|
70
|
+
needs: check-version
|
|
71
|
+
uses: ./.github/workflows/wheels.yml
|
|
72
|
+
|
|
73
|
+
publish:
|
|
74
|
+
name: Publish to PyPI
|
|
75
|
+
needs: build
|
|
76
|
+
runs-on: ubuntu-latest
|
|
77
|
+
environment:
|
|
78
|
+
name: pypi
|
|
79
|
+
url: https://pypi.org/project/scanmst/
|
|
80
|
+
permissions:
|
|
81
|
+
id-token: write
|
|
82
|
+
steps:
|
|
83
|
+
- name: Download built distributions
|
|
84
|
+
uses: actions/download-artifact@v4
|
|
85
|
+
with:
|
|
86
|
+
pattern: dist-*
|
|
87
|
+
path: dist
|
|
88
|
+
merge-multiple: true
|
|
89
|
+
|
|
90
|
+
- name: Install uv
|
|
91
|
+
uses: astral-sh/setup-uv@v5
|
|
92
|
+
|
|
93
|
+
- name: Publish to PyPI
|
|
94
|
+
run: uv publish dist/*
|