bio-grumpy 1.1.4__tar.gz → 1.2.3__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.
- bio_grumpy-1.2.3/.github/workflows/gitleaks.yaml +20 -0
- {bio_grumpy-1.1.4 → bio_grumpy-1.2.3}/.github/workflows/release.yaml +1 -25
- bio_grumpy-1.2.3/.gitleaks.toml +30 -0
- bio_grumpy-1.2.3/CITATION.bib +11 -0
- {bio_grumpy-1.1.4 → bio_grumpy-1.2.3}/Cargo.lock +94 -118
- {bio_grumpy-1.1.4 → bio_grumpy-1.2.3}/Cargo.toml +2 -2
- {bio_grumpy-1.1.4 → bio_grumpy-1.2.3}/PKG-INFO +1 -1
- bio_grumpy-1.2.3/README.md +48 -0
- bio_grumpy-1.2.3/reference/TEST-DNA-double.gbk +150 -0
- {bio_grumpy-1.1.4 → bio_grumpy-1.2.3}/src/common.rs +11 -15
- {bio_grumpy-1.1.4 → bio_grumpy-1.2.3}/src/difference.rs +2 -2
- {bio_grumpy-1.1.4 → bio_grumpy-1.2.3}/src/gene.rs +5 -5
- {bio_grumpy-1.1.4 → bio_grumpy-1.2.3}/src/genome.rs +244 -127
- {bio_grumpy-1.1.4 → bio_grumpy-1.2.3}/src/lib.rs +7 -2
- bio_grumpy-1.2.3/src/main.rs +159 -0
- {bio_grumpy-1.1.4 → bio_grumpy-1.2.3}/src/vcf.rs +57 -15
- {bio_grumpy-1.1.4 → bio_grumpy-1.2.3}/test/TEST-DNA-4-minor.vcf +1 -1
- {bio_grumpy-1.1.4 → bio_grumpy-1.2.3}/test/TEST-DNA-4.vcf +1 -1
- {bio_grumpy-1.1.4 → bio_grumpy-1.2.3}/test/TEST-DNA-misc-indel.vcf +3 -3
- bio_grumpy-1.2.3/test/TEST-DNA.vcf +28 -0
- {bio_grumpy-1.1.4 → bio_grumpy-1.2.3}/test/complex.vcf +4 -4
- bio_grumpy-1.2.3/test/dummy.vcf +22 -0
- {bio_grumpy-1.1.4 → bio_grumpy-1.2.3}/test/intracellulare.vcf +3 -3
- bio_grumpy-1.1.4/README.md +0 -32
- bio_grumpy-1.1.4/src/main.rs +0 -158
- bio_grumpy-1.1.4/test/TEST-DNA.vcf +0 -27
- bio_grumpy-1.1.4/test/dummy.vcf +0 -22
- {bio_grumpy-1.1.4 → bio_grumpy-1.2.3}/.github/workflows/test.yaml +0 -0
- {bio_grumpy-1.1.4 → bio_grumpy-1.2.3}/.gitignore +0 -0
- {bio_grumpy-1.1.4 → bio_grumpy-1.2.3}/LICENSE +0 -0
- {bio_grumpy-1.1.4 → bio_grumpy-1.2.3}/README-python.md +0 -0
- {bio_grumpy-1.1.4 → bio_grumpy-1.2.3}/pyproject.toml +0 -0
- {bio_grumpy-1.1.4 → bio_grumpy-1.2.3}/reference/MN908947.3.gb +0 -0
- {bio_grumpy-1.1.4 → bio_grumpy-1.2.3}/reference/NC_000962.3.gbk +0 -0
- {bio_grumpy-1.1.4 → bio_grumpy-1.2.3}/reference/NZ_CP085945.1.gbk +0 -0
- {bio_grumpy-1.1.4 → bio_grumpy-1.2.3}/reference/TEST-DNA.gbk +0 -0
- {bio_grumpy-1.1.4 → bio_grumpy-1.2.3}/test/minor-populations-revcomp-AD.vcf +0 -0
- {bio_grumpy-1.1.4 → bio_grumpy-1.2.3}/test/minor-populations-revcomp.vcf +0 -0
- {bio_grumpy-1.1.4 → bio_grumpy-1.2.3}/test/revcomp-del-first-pos.vcf +0 -0
- {bio_grumpy-1.1.4 → bio_grumpy-1.2.3}/test/tb-snp-after-del.vcf +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
on:
|
|
2
|
+
pull_request:
|
|
3
|
+
branches:
|
|
4
|
+
- develop
|
|
5
|
+
- main
|
|
6
|
+
push:
|
|
7
|
+
tags:
|
|
8
|
+
- '*.*.*'
|
|
9
|
+
- '*.*.*-rc*'
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
gitleaks:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
with:
|
|
17
|
+
fetch-depth: 0
|
|
18
|
+
|
|
19
|
+
- name: Check for GitLeaks
|
|
20
|
+
uses: gacts/gitleaks@v1
|
|
@@ -90,30 +90,6 @@ jobs:
|
|
|
90
90
|
name: wheels-musllinux-${{ matrix.platform.target }}
|
|
91
91
|
path: dist
|
|
92
92
|
|
|
93
|
-
macos:
|
|
94
|
-
runs-on: ${{ matrix.platform.runner }}
|
|
95
|
-
strategy:
|
|
96
|
-
matrix:
|
|
97
|
-
platform:
|
|
98
|
-
- runner: macos-14
|
|
99
|
-
target: aarch64
|
|
100
|
-
steps:
|
|
101
|
-
- uses: actions/checkout@v4
|
|
102
|
-
- uses: actions/setup-python@v5
|
|
103
|
-
with:
|
|
104
|
-
python-version: 3.x
|
|
105
|
-
- name: Build wheels
|
|
106
|
-
uses: PyO3/maturin-action@v1
|
|
107
|
-
with:
|
|
108
|
-
target: ${{ matrix.platform.target }}
|
|
109
|
-
args: --release --out dist --find-interpreter
|
|
110
|
-
sccache: 'true'
|
|
111
|
-
- name: Upload wheels
|
|
112
|
-
uses: actions/upload-artifact@v4
|
|
113
|
-
with:
|
|
114
|
-
name: wheels-macos-${{ matrix.platform.target }}
|
|
115
|
-
path: dist
|
|
116
|
-
|
|
117
93
|
sdist:
|
|
118
94
|
runs-on: ubuntu-latest
|
|
119
95
|
steps:
|
|
@@ -133,7 +109,7 @@ jobs:
|
|
|
133
109
|
name: Release
|
|
134
110
|
runs-on: ubuntu-latest
|
|
135
111
|
if: "startsWith(github.ref, 'refs/tags/')"
|
|
136
|
-
needs: [linux, musllinux,
|
|
112
|
+
needs: [linux, musllinux, sdist]
|
|
137
113
|
steps:
|
|
138
114
|
- uses: actions/download-artifact@v4
|
|
139
115
|
- name: Publish to PyPI
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# -----------------------------------------------------------------------------
|
|
2
|
+
# Gitleaks Configuration
|
|
3
|
+
# -----------------------------------------------------------------------------
|
|
4
|
+
title = "Gitleaks Configuration"
|
|
5
|
+
|
|
6
|
+
# Extend the built-in default ruleset so we only add repo-specific allowlists.
|
|
7
|
+
[extend]
|
|
8
|
+
useDefault = true
|
|
9
|
+
|
|
10
|
+
# -----------------------------------------------------------------------------
|
|
11
|
+
# Allowlist (False Positives)
|
|
12
|
+
# -----------------------------------------------------------------------------
|
|
13
|
+
# Each allowlist is scoped to a single rule and a single exact file path.
|
|
14
|
+
# This keeps the ignore surface minimal while allowing known test fixtures and
|
|
15
|
+
# archived example content to pass secret scanning.
|
|
16
|
+
|
|
17
|
+
[[allowlists]]
|
|
18
|
+
description = "Allow GBK translation sequence false positive for Square access token"
|
|
19
|
+
targetRules = ["square-access-token"]
|
|
20
|
+
paths = [
|
|
21
|
+
'''^grumpy/reference/NC_000962\.3\.gbk''',
|
|
22
|
+
'''^reference/NZ_CP085945\.1\.gbk'''
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
[[allowlists]]
|
|
26
|
+
description = "Allow GBK translation sequence false positive for alibaba access key ids"
|
|
27
|
+
targetRules = ["alibaba-access-key-id"]
|
|
28
|
+
paths = [
|
|
29
|
+
'''^reference/NZ_CP085945\.1\.gbk'''
|
|
30
|
+
]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@article{Westhead2025,
|
|
2
|
+
title = {Characterizing the Performance of an Antibiotic Resistance Prediction Tool, Gnomonicus, Using a Diverse Test Set of 2,663 {{Mycobacterium}} Tuberculosis Samples},
|
|
3
|
+
author = {Westhead, Jeremy and Baker, Catriona S. and Brouard, Marc and Colpus, Matthew and Constantinides, Bede and Hall, Alexandra and Knaggs, Jeff and Alves, Marcela Lopes and Spies, Ruan and Thai, Hieu and Surrall, Sarah and Govender, Kumeren and Peto, Timothy E.A. and Crook, Derrick W. and Omar, Shaheed V. and Turner, Robert and Fowler, Philip W.},
|
|
4
|
+
year = 2025,
|
|
5
|
+
journal = {Microbial Genomics},
|
|
6
|
+
volume = {11},
|
|
7
|
+
number = {12},
|
|
8
|
+
pages = {001592},
|
|
9
|
+
publisher = {Microbiology Society,},
|
|
10
|
+
doi = {10.1099/mgen.0.001592},
|
|
11
|
+
}
|
|
@@ -4,9 +4,9 @@ version = 4
|
|
|
4
4
|
|
|
5
5
|
[[package]]
|
|
6
6
|
name = "anstream"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "1.0.0"
|
|
8
8
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
-
checksum = "
|
|
9
|
+
checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d"
|
|
10
10
|
dependencies = [
|
|
11
11
|
"anstyle",
|
|
12
12
|
"anstyle-parse",
|
|
@@ -19,15 +19,15 @@ dependencies = [
|
|
|
19
19
|
|
|
20
20
|
[[package]]
|
|
21
21
|
name = "anstyle"
|
|
22
|
-
version = "1.0.
|
|
22
|
+
version = "1.0.14"
|
|
23
23
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
24
|
-
checksum = "
|
|
24
|
+
checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000"
|
|
25
25
|
|
|
26
26
|
[[package]]
|
|
27
27
|
name = "anstyle-parse"
|
|
28
|
-
version = "0.
|
|
28
|
+
version = "1.0.0"
|
|
29
29
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
30
|
-
checksum = "
|
|
30
|
+
checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e"
|
|
31
31
|
dependencies = [
|
|
32
32
|
"utf8parse",
|
|
33
33
|
]
|
|
@@ -54,21 +54,21 @@ dependencies = [
|
|
|
54
54
|
|
|
55
55
|
[[package]]
|
|
56
56
|
name = "autocfg"
|
|
57
|
-
version = "1.5.
|
|
57
|
+
version = "1.5.1"
|
|
58
58
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
59
|
-
checksum = "
|
|
59
|
+
checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
|
|
60
60
|
|
|
61
61
|
[[package]]
|
|
62
62
|
name = "bitflags"
|
|
63
|
-
version = "2.
|
|
63
|
+
version = "2.13.2"
|
|
64
64
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
65
|
-
checksum = "
|
|
65
|
+
checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
|
|
66
66
|
|
|
67
67
|
[[package]]
|
|
68
68
|
name = "cfg-if"
|
|
69
|
-
version = "1.0.
|
|
69
|
+
version = "1.0.5"
|
|
70
70
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
71
|
-
checksum = "
|
|
71
|
+
checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
|
|
72
72
|
|
|
73
73
|
[[package]]
|
|
74
74
|
name = "circular"
|
|
@@ -78,9 +78,9 @@ checksum = "b0fc239e0f6cb375d2402d48afb92f76f5404fd1df208a41930ec81eda078bea"
|
|
|
78
78
|
|
|
79
79
|
[[package]]
|
|
80
80
|
name = "clap"
|
|
81
|
-
version = "4.
|
|
81
|
+
version = "4.6.7"
|
|
82
82
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
83
|
-
checksum = "
|
|
83
|
+
checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946"
|
|
84
84
|
dependencies = [
|
|
85
85
|
"clap_builder",
|
|
86
86
|
"clap_derive",
|
|
@@ -88,9 +88,9 @@ dependencies = [
|
|
|
88
88
|
|
|
89
89
|
[[package]]
|
|
90
90
|
name = "clap_builder"
|
|
91
|
-
version = "4.
|
|
91
|
+
version = "4.6.7"
|
|
92
92
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
93
|
-
checksum = "
|
|
93
|
+
checksum = "ec0797fb7aeb1406c84efac526901f7ec3ead2124f946b494e72879d4b54704d"
|
|
94
94
|
dependencies = [
|
|
95
95
|
"anstream",
|
|
96
96
|
"anstyle",
|
|
@@ -100,33 +100,33 @@ dependencies = [
|
|
|
100
100
|
|
|
101
101
|
[[package]]
|
|
102
102
|
name = "clap_derive"
|
|
103
|
-
version = "4.
|
|
103
|
+
version = "4.6.7"
|
|
104
104
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
105
|
-
checksum = "
|
|
105
|
+
checksum = "f9c751b79415d4e559e3d1fcf128e09e720eb673a06d26cf6f392d37d75b66e0"
|
|
106
106
|
dependencies = [
|
|
107
107
|
"heck",
|
|
108
108
|
"proc-macro2",
|
|
109
109
|
"quote",
|
|
110
|
-
"syn",
|
|
110
|
+
"syn 3.0.10",
|
|
111
111
|
]
|
|
112
112
|
|
|
113
113
|
[[package]]
|
|
114
114
|
name = "clap_lex"
|
|
115
|
-
version = "1.
|
|
115
|
+
version = "1.1.1"
|
|
116
116
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
117
|
-
checksum = "
|
|
117
|
+
checksum = "1c133bc6a41be0d194c306b5506d15e6feeea7b1d6604bd3f8310dfb2ca96486"
|
|
118
118
|
|
|
119
119
|
[[package]]
|
|
120
120
|
name = "colorchoice"
|
|
121
|
-
version = "1.0.
|
|
121
|
+
version = "1.0.5"
|
|
122
122
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
123
|
-
checksum = "
|
|
123
|
+
checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570"
|
|
124
124
|
|
|
125
125
|
[[package]]
|
|
126
126
|
name = "crossbeam-deque"
|
|
127
|
-
version = "0.8.
|
|
127
|
+
version = "0.8.8"
|
|
128
128
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
129
|
-
checksum = "
|
|
129
|
+
checksum = "622f3fc73690be383c7214310406f28a90e6edeadc3cea882f9d71e495b9711a"
|
|
130
130
|
dependencies = [
|
|
131
131
|
"crossbeam-epoch",
|
|
132
132
|
"crossbeam-utils",
|
|
@@ -134,18 +134,18 @@ dependencies = [
|
|
|
134
134
|
|
|
135
135
|
[[package]]
|
|
136
136
|
name = "crossbeam-epoch"
|
|
137
|
-
version = "0.9.
|
|
137
|
+
version = "0.9.21"
|
|
138
138
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
139
|
-
checksum = "
|
|
139
|
+
checksum = "dc74980687109a3b14c72fd458107bf0baa1da1a1a805e178d15501ba9b86d9d"
|
|
140
140
|
dependencies = [
|
|
141
141
|
"crossbeam-utils",
|
|
142
142
|
]
|
|
143
143
|
|
|
144
144
|
[[package]]
|
|
145
145
|
name = "crossbeam-utils"
|
|
146
|
-
version = "0.8.
|
|
146
|
+
version = "0.8.23"
|
|
147
147
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
148
|
-
checksum = "
|
|
148
|
+
checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6"
|
|
149
149
|
|
|
150
150
|
[[package]]
|
|
151
151
|
name = "diff"
|
|
@@ -155,9 +155,9 @@ checksum = "56254986775e3233ffa9c4d7d3faaf6d36a2c09d30b20687e9f88bc8bafc16c8"
|
|
|
155
155
|
|
|
156
156
|
[[package]]
|
|
157
157
|
name = "either"
|
|
158
|
-
version = "1.
|
|
158
|
+
version = "1.19.0"
|
|
159
159
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
160
|
-
checksum = "
|
|
160
|
+
checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be"
|
|
161
161
|
|
|
162
162
|
[[package]]
|
|
163
163
|
name = "gb-io"
|
|
@@ -169,12 +169,12 @@ dependencies = [
|
|
|
169
169
|
"itertools",
|
|
170
170
|
"log",
|
|
171
171
|
"nom 8.0.0",
|
|
172
|
-
"thiserror 2.0.
|
|
172
|
+
"thiserror 2.0.21",
|
|
173
173
|
]
|
|
174
174
|
|
|
175
175
|
[[package]]
|
|
176
176
|
name = "grumpy"
|
|
177
|
-
version = "1.
|
|
177
|
+
version = "1.2.3"
|
|
178
178
|
dependencies = [
|
|
179
179
|
"clap",
|
|
180
180
|
"gb-io",
|
|
@@ -192,15 +192,6 @@ version = "0.5.0"
|
|
|
192
192
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
193
193
|
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
194
194
|
|
|
195
|
-
[[package]]
|
|
196
|
-
name = "indoc"
|
|
197
|
-
version = "2.0.7"
|
|
198
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
199
|
-
checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706"
|
|
200
|
-
dependencies = [
|
|
201
|
-
"rustversion",
|
|
202
|
-
]
|
|
203
|
-
|
|
204
195
|
[[package]]
|
|
205
196
|
name = "is_terminal_polyfill"
|
|
206
197
|
version = "1.70.2"
|
|
@@ -218,9 +209,9 @@ dependencies = [
|
|
|
218
209
|
|
|
219
210
|
[[package]]
|
|
220
211
|
name = "libc"
|
|
221
|
-
version = "0.2.
|
|
212
|
+
version = "0.2.191"
|
|
222
213
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
223
|
-
checksum = "
|
|
214
|
+
checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
|
|
224
215
|
|
|
225
216
|
[[package]]
|
|
226
217
|
name = "lock_api"
|
|
@@ -233,24 +224,15 @@ dependencies = [
|
|
|
233
224
|
|
|
234
225
|
[[package]]
|
|
235
226
|
name = "log"
|
|
236
|
-
version = "0.4.
|
|
227
|
+
version = "0.4.35"
|
|
237
228
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
238
|
-
checksum = "
|
|
229
|
+
checksum = "5d15f86d12da44cd8d4ec3c73984537eb7f4cadcb9776a575a0a8a05ca11005c"
|
|
239
230
|
|
|
240
231
|
[[package]]
|
|
241
232
|
name = "memchr"
|
|
242
|
-
version = "2.8.
|
|
233
|
+
version = "2.8.3"
|
|
243
234
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
244
|
-
checksum = "
|
|
245
|
-
|
|
246
|
-
[[package]]
|
|
247
|
-
name = "memoffset"
|
|
248
|
-
version = "0.9.1"
|
|
249
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
250
|
-
checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
|
|
251
|
-
dependencies = [
|
|
252
|
-
"autocfg",
|
|
253
|
-
]
|
|
235
|
+
checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
|
|
254
236
|
|
|
255
237
|
[[package]]
|
|
256
238
|
name = "minimal-lexical"
|
|
@@ -294,9 +276,9 @@ dependencies = [
|
|
|
294
276
|
|
|
295
277
|
[[package]]
|
|
296
278
|
name = "once_cell"
|
|
297
|
-
version = "1.21.
|
|
279
|
+
version = "1.21.4"
|
|
298
280
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
299
|
-
checksum = "
|
|
281
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
300
282
|
|
|
301
283
|
[[package]]
|
|
302
284
|
name = "once_cell_polyfill"
|
|
@@ -347,9 +329,9 @@ dependencies = [
|
|
|
347
329
|
|
|
348
330
|
[[package]]
|
|
349
331
|
name = "portable-atomic"
|
|
350
|
-
version = "1.
|
|
332
|
+
version = "1.15.0"
|
|
351
333
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
352
|
-
checksum = "
|
|
334
|
+
checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
|
|
353
335
|
|
|
354
336
|
[[package]]
|
|
355
337
|
name = "precomputed-hash"
|
|
@@ -369,45 +351,41 @@ dependencies = [
|
|
|
369
351
|
|
|
370
352
|
[[package]]
|
|
371
353
|
name = "proc-macro2"
|
|
372
|
-
version = "1.0.
|
|
354
|
+
version = "1.0.107"
|
|
373
355
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
374
|
-
checksum = "
|
|
356
|
+
checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
|
|
375
357
|
dependencies = [
|
|
376
358
|
"unicode-ident",
|
|
377
359
|
]
|
|
378
360
|
|
|
379
361
|
[[package]]
|
|
380
362
|
name = "pyo3"
|
|
381
|
-
version = "0.
|
|
363
|
+
version = "0.30.1"
|
|
382
364
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
383
|
-
checksum = "
|
|
365
|
+
checksum = "229ca13b8a15bb0d1487b81ab975bfcd97513416499a8312011b6036e42e0de4"
|
|
384
366
|
dependencies = [
|
|
385
|
-
"indoc",
|
|
386
367
|
"libc",
|
|
387
|
-
"memoffset",
|
|
388
368
|
"once_cell",
|
|
389
369
|
"portable-atomic",
|
|
390
370
|
"pyo3-build-config",
|
|
391
371
|
"pyo3-ffi",
|
|
392
372
|
"pyo3-macros",
|
|
393
|
-
"unindent",
|
|
394
373
|
]
|
|
395
374
|
|
|
396
375
|
[[package]]
|
|
397
376
|
name = "pyo3-build-config"
|
|
398
|
-
version = "0.
|
|
377
|
+
version = "0.30.1"
|
|
399
378
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
400
|
-
checksum = "
|
|
379
|
+
checksum = "70130e2b6dd1ee589a8788026a429561ca5c40fa7a2fa7914c2282eddae24700"
|
|
401
380
|
dependencies = [
|
|
402
|
-
"once_cell",
|
|
403
381
|
"target-lexicon",
|
|
404
382
|
]
|
|
405
383
|
|
|
406
384
|
[[package]]
|
|
407
385
|
name = "pyo3-ffi"
|
|
408
|
-
version = "0.
|
|
386
|
+
version = "0.30.1"
|
|
409
387
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
410
|
-
checksum = "
|
|
388
|
+
checksum = "5e7ff73c555c286d212d4ce7e5fbda845a973c4f61bd5f160f5f2c3c2a04d1c4"
|
|
411
389
|
dependencies = [
|
|
412
390
|
"libc",
|
|
413
391
|
"pyo3-build-config",
|
|
@@ -415,43 +393,42 @@ dependencies = [
|
|
|
415
393
|
|
|
416
394
|
[[package]]
|
|
417
395
|
name = "pyo3-macros"
|
|
418
|
-
version = "0.
|
|
396
|
+
version = "0.30.1"
|
|
419
397
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
420
|
-
checksum = "
|
|
398
|
+
checksum = "c46d2e5862c7bb8207e3b639f713dda3c499933444784154c11d013c5a691b60"
|
|
421
399
|
dependencies = [
|
|
422
400
|
"proc-macro2",
|
|
423
401
|
"pyo3-macros-backend",
|
|
424
402
|
"quote",
|
|
425
|
-
"syn",
|
|
403
|
+
"syn 3.0.10",
|
|
426
404
|
]
|
|
427
405
|
|
|
428
406
|
[[package]]
|
|
429
407
|
name = "pyo3-macros-backend"
|
|
430
|
-
version = "0.
|
|
408
|
+
version = "0.30.1"
|
|
431
409
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
432
|
-
checksum = "
|
|
410
|
+
checksum = "38b89f066f2ae72a2aef52d1537ca2fcd104440ebfadee06e97aa90738a25b9b"
|
|
433
411
|
dependencies = [
|
|
434
412
|
"heck",
|
|
435
413
|
"proc-macro2",
|
|
436
|
-
"pyo3-build-config",
|
|
437
414
|
"quote",
|
|
438
|
-
"syn",
|
|
415
|
+
"syn 3.0.10",
|
|
439
416
|
]
|
|
440
417
|
|
|
441
418
|
[[package]]
|
|
442
419
|
name = "quote"
|
|
443
|
-
version = "1.0.
|
|
420
|
+
version = "1.0.47"
|
|
444
421
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
445
|
-
checksum = "
|
|
422
|
+
checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
|
|
446
423
|
dependencies = [
|
|
447
424
|
"proc-macro2",
|
|
448
425
|
]
|
|
449
426
|
|
|
450
427
|
[[package]]
|
|
451
428
|
name = "rayon"
|
|
452
|
-
version = "1.
|
|
429
|
+
version = "1.12.0"
|
|
453
430
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
454
|
-
checksum = "
|
|
431
|
+
checksum = "fb39b166781f92d482534ef4b4b1b2568f42613b53e5b6c160e24cfbfa30926d"
|
|
455
432
|
dependencies = [
|
|
456
433
|
"either",
|
|
457
434
|
"rayon-core",
|
|
@@ -476,12 +453,6 @@ dependencies = [
|
|
|
476
453
|
"bitflags",
|
|
477
454
|
]
|
|
478
455
|
|
|
479
|
-
[[package]]
|
|
480
|
-
name = "rustversion"
|
|
481
|
-
version = "1.0.22"
|
|
482
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
483
|
-
checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
|
|
484
|
-
|
|
485
456
|
[[package]]
|
|
486
457
|
name = "scopeguard"
|
|
487
458
|
version = "1.2.0"
|
|
@@ -490,44 +461,44 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
|
|
|
490
461
|
|
|
491
462
|
[[package]]
|
|
492
463
|
name = "serde"
|
|
493
|
-
version = "1.0.
|
|
464
|
+
version = "1.0.229"
|
|
494
465
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
495
|
-
checksum = "
|
|
466
|
+
checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
|
|
496
467
|
dependencies = [
|
|
497
468
|
"serde_core",
|
|
498
469
|
]
|
|
499
470
|
|
|
500
471
|
[[package]]
|
|
501
472
|
name = "serde_core"
|
|
502
|
-
version = "1.0.
|
|
473
|
+
version = "1.0.229"
|
|
503
474
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
504
|
-
checksum = "
|
|
475
|
+
checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
|
|
505
476
|
dependencies = [
|
|
506
477
|
"serde_derive",
|
|
507
478
|
]
|
|
508
479
|
|
|
509
480
|
[[package]]
|
|
510
481
|
name = "serde_derive"
|
|
511
|
-
version = "1.0.
|
|
482
|
+
version = "1.0.229"
|
|
512
483
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
513
|
-
checksum = "
|
|
484
|
+
checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
|
|
514
485
|
dependencies = [
|
|
515
486
|
"proc-macro2",
|
|
516
487
|
"quote",
|
|
517
|
-
"syn",
|
|
488
|
+
"syn 3.0.10",
|
|
518
489
|
]
|
|
519
490
|
|
|
520
491
|
[[package]]
|
|
521
492
|
name = "siphasher"
|
|
522
|
-
version = "1.0.
|
|
493
|
+
version = "1.0.4"
|
|
523
494
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
524
|
-
checksum = "
|
|
495
|
+
checksum = "33f4fe9184a62d842c9ef383018f3306d8ba224fd9d836f56d7288308847c256"
|
|
525
496
|
|
|
526
497
|
[[package]]
|
|
527
498
|
name = "smallvec"
|
|
528
|
-
version = "1.
|
|
499
|
+
version = "1.16.5"
|
|
529
500
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
530
|
-
checksum = "
|
|
501
|
+
checksum = "149309498a5f7334b12ddae0cad8aba81ce785fe91755068867e017cf98fee46"
|
|
531
502
|
|
|
532
503
|
[[package]]
|
|
533
504
|
name = "string_cache"
|
|
@@ -550,9 +521,20 @@ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
|
|
|
550
521
|
|
|
551
522
|
[[package]]
|
|
552
523
|
name = "syn"
|
|
553
|
-
version = "2.0.
|
|
524
|
+
version = "2.0.119"
|
|
525
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
526
|
+
checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
|
|
527
|
+
dependencies = [
|
|
528
|
+
"proc-macro2",
|
|
529
|
+
"quote",
|
|
530
|
+
"unicode-ident",
|
|
531
|
+
]
|
|
532
|
+
|
|
533
|
+
[[package]]
|
|
534
|
+
name = "syn"
|
|
535
|
+
version = "3.0.10"
|
|
554
536
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
555
|
-
checksum = "
|
|
537
|
+
checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79"
|
|
556
538
|
dependencies = [
|
|
557
539
|
"proc-macro2",
|
|
558
540
|
"quote",
|
|
@@ -576,11 +558,11 @@ dependencies = [
|
|
|
576
558
|
|
|
577
559
|
[[package]]
|
|
578
560
|
name = "thiserror"
|
|
579
|
-
version = "2.0.
|
|
561
|
+
version = "2.0.21"
|
|
580
562
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
581
|
-
checksum = "
|
|
563
|
+
checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e"
|
|
582
564
|
dependencies = [
|
|
583
|
-
"thiserror-impl 2.0.
|
|
565
|
+
"thiserror-impl 2.0.21",
|
|
584
566
|
]
|
|
585
567
|
|
|
586
568
|
[[package]]
|
|
@@ -591,31 +573,25 @@ checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
|
|
|
591
573
|
dependencies = [
|
|
592
574
|
"proc-macro2",
|
|
593
575
|
"quote",
|
|
594
|
-
"syn",
|
|
576
|
+
"syn 2.0.119",
|
|
595
577
|
]
|
|
596
578
|
|
|
597
579
|
[[package]]
|
|
598
580
|
name = "thiserror-impl"
|
|
599
|
-
version = "2.0.
|
|
581
|
+
version = "2.0.21"
|
|
600
582
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
601
|
-
checksum = "
|
|
583
|
+
checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524"
|
|
602
584
|
dependencies = [
|
|
603
585
|
"proc-macro2",
|
|
604
586
|
"quote",
|
|
605
|
-
"syn",
|
|
587
|
+
"syn 3.0.10",
|
|
606
588
|
]
|
|
607
589
|
|
|
608
590
|
[[package]]
|
|
609
591
|
name = "unicode-ident"
|
|
610
|
-
version = "1.0.
|
|
611
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
612
|
-
checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
|
613
|
-
|
|
614
|
-
[[package]]
|
|
615
|
-
name = "unindent"
|
|
616
|
-
version = "0.2.4"
|
|
592
|
+
version = "1.0.27"
|
|
617
593
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
618
|
-
checksum = "
|
|
594
|
+
checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
|
|
619
595
|
|
|
620
596
|
[[package]]
|
|
621
597
|
name = "utf8parse"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "grumpy"
|
|
3
|
-
version = "1.
|
|
3
|
+
version = "1.2.3"
|
|
4
4
|
edition = "2021"
|
|
5
5
|
description = "Genetic analysis in Rust."
|
|
6
6
|
license-file = "LICENSE"
|
|
@@ -13,7 +13,7 @@ gb-io = "0.9.0"
|
|
|
13
13
|
ordered-float = "4.2.1"
|
|
14
14
|
string_cache = "0.8.7"
|
|
15
15
|
vcf = "0.6.1"
|
|
16
|
-
pyo3 = { version = "0.
|
|
16
|
+
pyo3 = { version = "0.30", features = ["extension-module", "abi3-py39", "abi3-py310", "abi3-py311", "abi3-py312", "abi3-py313"] }
|
|
17
17
|
pretty_assertions = "1.4.0"
|
|
18
18
|
rayon = "1.10.0"
|
|
19
19
|
clap = { version = "4.5.40", features = ["derive"] }
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
[](https://github.com/oxfordmmm/grumpy/actions/workflows/test.yaml)
|
|
2
|
+
|
|
3
|
+
# grumpy
|
|
4
|
+
Re-implementation of [gumpy](https://github.com/oxfordmmm/gumpy) in Rust for speed
|
|
5
|
+
|
|
6
|
+
## Installation
|
|
7
|
+
|
|
8
|
+
### CLI
|
|
9
|
+
```
|
|
10
|
+
cargo install grumpy
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### As a dependency for development
|
|
14
|
+
#### Rust crate
|
|
15
|
+
```
|
|
16
|
+
cargo add grumpy
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
#### Python package
|
|
20
|
+
```
|
|
21
|
+
pip install bio-grumpy
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Tests
|
|
25
|
+
Running Rust unit tests
|
|
26
|
+
```
|
|
27
|
+
cargo test
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Coverage
|
|
31
|
+
Test coverage can be found with the use of `tarpaulin`.
|
|
32
|
+
```
|
|
33
|
+
# Install tarpaulin on first run
|
|
34
|
+
cargo install cargo-tarpaulin
|
|
35
|
+
|
|
36
|
+
# Generate an HTML coverage report
|
|
37
|
+
cargo tarpaulin --no-dead-code --engine llvm --out html
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Citation
|
|
41
|
+
If you use `grumpy` in your work, please cite:
|
|
42
|
+
```
|
|
43
|
+
Westhead J, Baker CS, Brouard M, Colpus M, Constantinides B, Hall A, Knaggs J, Lopes Alves M, Spies R, Thai H, Surrall S, Govender K, Peto TEA, Crook DW, Omar SV, Turner R, Fowler PW
|
|
44
|
+
Characterising the performance of an antibiotic resistance prediction tool, gnomonicus, using a diverse testset of 2,663 Mycobacterium tuberculosis samples
|
|
45
|
+
Microbial Genomics 11:001592 doi:10.1099/mgen.0.001592
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
A BibTeX citation is included [here](CITATION.bib)
|