bio-grumpy 1.1.3__tar.gz → 1.1.4__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.1.3 → bio_grumpy-1.1.4}/Cargo.lock +57 -169
- {bio_grumpy-1.1.3 → bio_grumpy-1.1.4}/Cargo.toml +2 -2
- {bio_grumpy-1.1.3 → bio_grumpy-1.1.4}/PKG-INFO +1 -1
- {bio_grumpy-1.1.3 → bio_grumpy-1.1.4}/src/gene.rs +12 -2
- {bio_grumpy-1.1.3 → bio_grumpy-1.1.4}/src/genome.rs +9 -1
- {bio_grumpy-1.1.3 → bio_grumpy-1.1.4}/src/lib.rs +1 -0
- {bio_grumpy-1.1.3 → bio_grumpy-1.1.4}/test/intracellulare.vcf +2 -1
- {bio_grumpy-1.1.3 → bio_grumpy-1.1.4}/.github/workflows/release.yaml +0 -0
- {bio_grumpy-1.1.3 → bio_grumpy-1.1.4}/.github/workflows/test.yaml +0 -0
- {bio_grumpy-1.1.3 → bio_grumpy-1.1.4}/.gitignore +0 -0
- {bio_grumpy-1.1.3 → bio_grumpy-1.1.4}/LICENSE +0 -0
- {bio_grumpy-1.1.3 → bio_grumpy-1.1.4}/README-python.md +0 -0
- {bio_grumpy-1.1.3 → bio_grumpy-1.1.4}/README.md +0 -0
- {bio_grumpy-1.1.3 → bio_grumpy-1.1.4}/pyproject.toml +0 -0
- {bio_grumpy-1.1.3 → bio_grumpy-1.1.4}/reference/MN908947.3.gb +0 -0
- {bio_grumpy-1.1.3 → bio_grumpy-1.1.4}/reference/NC_000962.3.gbk +0 -0
- {bio_grumpy-1.1.3 → bio_grumpy-1.1.4}/reference/NZ_CP085945.1.gbk +0 -0
- {bio_grumpy-1.1.3 → bio_grumpy-1.1.4}/reference/TEST-DNA.gbk +0 -0
- {bio_grumpy-1.1.3 → bio_grumpy-1.1.4}/src/common.rs +0 -0
- {bio_grumpy-1.1.3 → bio_grumpy-1.1.4}/src/difference.rs +0 -0
- {bio_grumpy-1.1.3 → bio_grumpy-1.1.4}/src/main.rs +0 -0
- {bio_grumpy-1.1.3 → bio_grumpy-1.1.4}/src/vcf.rs +0 -0
- {bio_grumpy-1.1.3 → bio_grumpy-1.1.4}/test/TEST-DNA-4-minor.vcf +0 -0
- {bio_grumpy-1.1.3 → bio_grumpy-1.1.4}/test/TEST-DNA-4.vcf +0 -0
- {bio_grumpy-1.1.3 → bio_grumpy-1.1.4}/test/TEST-DNA-misc-indel.vcf +0 -0
- {bio_grumpy-1.1.3 → bio_grumpy-1.1.4}/test/TEST-DNA.vcf +0 -0
- {bio_grumpy-1.1.3 → bio_grumpy-1.1.4}/test/complex.vcf +0 -0
- {bio_grumpy-1.1.3 → bio_grumpy-1.1.4}/test/dummy.vcf +0 -0
- {bio_grumpy-1.1.3 → bio_grumpy-1.1.4}/test/minor-populations-revcomp-AD.vcf +0 -0
- {bio_grumpy-1.1.3 → bio_grumpy-1.1.4}/test/minor-populations-revcomp.vcf +0 -0
- {bio_grumpy-1.1.3 → bio_grumpy-1.1.4}/test/revcomp-del-first-pos.vcf +0 -0
- {bio_grumpy-1.1.3 → bio_grumpy-1.1.4}/test/tb-snp-after-del.vcf +0 -0
|
@@ -60,9 +60,9 @@ checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
|
|
|
60
60
|
|
|
61
61
|
[[package]]
|
|
62
62
|
name = "bitflags"
|
|
63
|
-
version = "2.
|
|
63
|
+
version = "2.11.0"
|
|
64
64
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
65
|
-
checksum = "
|
|
65
|
+
checksum = "843867be96c8daad0d758b57df9392b6d8d271134fce549de6ce169ff98a92af"
|
|
66
66
|
|
|
67
67
|
[[package]]
|
|
68
68
|
name = "cfg-if"
|
|
@@ -78,9 +78,9 @@ checksum = "b0fc239e0f6cb375d2402d48afb92f76f5404fd1df208a41930ec81eda078bea"
|
|
|
78
78
|
|
|
79
79
|
[[package]]
|
|
80
80
|
name = "clap"
|
|
81
|
-
version = "4.5.
|
|
81
|
+
version = "4.5.60"
|
|
82
82
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
83
|
-
checksum = "
|
|
83
|
+
checksum = "2797f34da339ce31042b27d23607e051786132987f595b02ba4f6a6dffb7030a"
|
|
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.5.
|
|
91
|
+
version = "4.5.60"
|
|
92
92
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
93
|
-
checksum = "
|
|
93
|
+
checksum = "24a241312cea5059b13574bb9b3861cabf758b879c15190b37b6d6fd63ab6876"
|
|
94
94
|
dependencies = [
|
|
95
95
|
"anstream",
|
|
96
96
|
"anstyle",
|
|
@@ -107,14 +107,14 @@ dependencies = [
|
|
|
107
107
|
"heck",
|
|
108
108
|
"proc-macro2",
|
|
109
109
|
"quote",
|
|
110
|
-
"syn
|
|
110
|
+
"syn",
|
|
111
111
|
]
|
|
112
112
|
|
|
113
113
|
[[package]]
|
|
114
114
|
name = "clap_lex"
|
|
115
|
-
version = "0.
|
|
115
|
+
version = "1.0.0"
|
|
116
116
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
117
|
-
checksum = "
|
|
117
|
+
checksum = "3a822ea5bc7590f9d40f1ba12c0dc3c2760f3482c6984db1573ad11031420831"
|
|
118
118
|
|
|
119
119
|
[[package]]
|
|
120
120
|
name = "colorchoice"
|
|
@@ -159,40 +159,22 @@ version = "1.15.0"
|
|
|
159
159
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
160
160
|
checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
|
|
161
161
|
|
|
162
|
-
[[package]]
|
|
163
|
-
name = "err-derive"
|
|
164
|
-
version = "0.3.1"
|
|
165
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
166
|
-
checksum = "c34a887c8df3ed90498c1c437ce21f211c8e27672921a8ffa293cb8d6d4caa9e"
|
|
167
|
-
dependencies = [
|
|
168
|
-
"proc-macro-error",
|
|
169
|
-
"proc-macro2",
|
|
170
|
-
"quote",
|
|
171
|
-
"rustversion",
|
|
172
|
-
"syn 1.0.109",
|
|
173
|
-
"synstructure",
|
|
174
|
-
]
|
|
175
|
-
|
|
176
162
|
[[package]]
|
|
177
163
|
name = "gb-io"
|
|
178
|
-
version = "0.
|
|
164
|
+
version = "0.9.0"
|
|
179
165
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
180
|
-
checksum = "
|
|
166
|
+
checksum = "98e6430fd1aab1f2586f8ad0ef27151bee96d5adcda39b39054fc4ce9c72d08a"
|
|
181
167
|
dependencies = [
|
|
182
168
|
"circular",
|
|
183
|
-
"err-derive",
|
|
184
169
|
"itertools",
|
|
185
170
|
"log",
|
|
186
|
-
"nom
|
|
187
|
-
"
|
|
188
|
-
"serde_bytes",
|
|
189
|
-
"string_cache",
|
|
190
|
-
"string_cache_codegen",
|
|
171
|
+
"nom 8.0.0",
|
|
172
|
+
"thiserror 2.0.18",
|
|
191
173
|
]
|
|
192
174
|
|
|
193
175
|
[[package]]
|
|
194
176
|
name = "grumpy"
|
|
195
|
-
version = "1.1.
|
|
177
|
+
version = "1.1.4"
|
|
196
178
|
dependencies = [
|
|
197
179
|
"clap",
|
|
198
180
|
"gb-io",
|
|
@@ -227,18 +209,18 @@ checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695"
|
|
|
227
209
|
|
|
228
210
|
[[package]]
|
|
229
211
|
name = "itertools"
|
|
230
|
-
version = "0.
|
|
212
|
+
version = "0.14.0"
|
|
231
213
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
232
|
-
checksum = "
|
|
214
|
+
checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285"
|
|
233
215
|
dependencies = [
|
|
234
216
|
"either",
|
|
235
217
|
]
|
|
236
218
|
|
|
237
219
|
[[package]]
|
|
238
220
|
name = "libc"
|
|
239
|
-
version = "0.2.
|
|
221
|
+
version = "0.2.183"
|
|
240
222
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
241
|
-
checksum = "
|
|
223
|
+
checksum = "b5b646652bf6661599e1da8901b3b9522896f01e736bad5f723fe7a3a27f899d"
|
|
242
224
|
|
|
243
225
|
[[package]]
|
|
244
226
|
name = "lock_api"
|
|
@@ -257,9 +239,9 @@ checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
|
|
|
257
239
|
|
|
258
240
|
[[package]]
|
|
259
241
|
name = "memchr"
|
|
260
|
-
version = "2.
|
|
242
|
+
version = "2.8.0"
|
|
261
243
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
262
|
-
checksum = "
|
|
244
|
+
checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
|
|
263
245
|
|
|
264
246
|
[[package]]
|
|
265
247
|
name = "memoffset"
|
|
@@ -284,22 +266,21 @@ checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086"
|
|
|
284
266
|
|
|
285
267
|
[[package]]
|
|
286
268
|
name = "nom"
|
|
287
|
-
version = "
|
|
269
|
+
version = "7.1.3"
|
|
288
270
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
289
|
-
checksum = "
|
|
271
|
+
checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
|
|
290
272
|
dependencies = [
|
|
291
273
|
"memchr",
|
|
292
|
-
"
|
|
274
|
+
"minimal-lexical",
|
|
293
275
|
]
|
|
294
276
|
|
|
295
277
|
[[package]]
|
|
296
278
|
name = "nom"
|
|
297
|
-
version = "
|
|
279
|
+
version = "8.0.0"
|
|
298
280
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
299
|
-
checksum = "
|
|
281
|
+
checksum = "df9761775871bdef83bee530e60050f7e54b1105350d6884eb0fb4f46c2f9405"
|
|
300
282
|
dependencies = [
|
|
301
283
|
"memchr",
|
|
302
|
-
"minimal-lexical",
|
|
303
284
|
]
|
|
304
285
|
|
|
305
286
|
[[package]]
|
|
@@ -355,16 +336,6 @@ dependencies = [
|
|
|
355
336
|
"windows-link",
|
|
356
337
|
]
|
|
357
338
|
|
|
358
|
-
[[package]]
|
|
359
|
-
name = "phf_generator"
|
|
360
|
-
version = "0.11.3"
|
|
361
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
362
|
-
checksum = "3c80231409c20246a13fddb31776fb942c38553c51e871f8cbd687a4cfb5843d"
|
|
363
|
-
dependencies = [
|
|
364
|
-
"phf_shared",
|
|
365
|
-
"rand",
|
|
366
|
-
]
|
|
367
|
-
|
|
368
339
|
[[package]]
|
|
369
340
|
name = "phf_shared"
|
|
370
341
|
version = "0.11.3"
|
|
@@ -376,9 +347,9 @@ dependencies = [
|
|
|
376
347
|
|
|
377
348
|
[[package]]
|
|
378
349
|
name = "portable-atomic"
|
|
379
|
-
version = "1.13.
|
|
350
|
+
version = "1.13.1"
|
|
380
351
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
381
|
-
checksum = "
|
|
352
|
+
checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
|
|
382
353
|
|
|
383
354
|
[[package]]
|
|
384
355
|
name = "precomputed-hash"
|
|
@@ -396,30 +367,6 @@ dependencies = [
|
|
|
396
367
|
"yansi",
|
|
397
368
|
]
|
|
398
369
|
|
|
399
|
-
[[package]]
|
|
400
|
-
name = "proc-macro-error"
|
|
401
|
-
version = "1.0.4"
|
|
402
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
403
|
-
checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
|
|
404
|
-
dependencies = [
|
|
405
|
-
"proc-macro-error-attr",
|
|
406
|
-
"proc-macro2",
|
|
407
|
-
"quote",
|
|
408
|
-
"syn 1.0.109",
|
|
409
|
-
"version_check 0.9.5",
|
|
410
|
-
]
|
|
411
|
-
|
|
412
|
-
[[package]]
|
|
413
|
-
name = "proc-macro-error-attr"
|
|
414
|
-
version = "1.0.4"
|
|
415
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
416
|
-
checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
|
|
417
|
-
dependencies = [
|
|
418
|
-
"proc-macro2",
|
|
419
|
-
"quote",
|
|
420
|
-
"version_check 0.9.5",
|
|
421
|
-
]
|
|
422
|
-
|
|
423
370
|
[[package]]
|
|
424
371
|
name = "proc-macro2"
|
|
425
372
|
version = "1.0.106"
|
|
@@ -475,7 +422,7 @@ dependencies = [
|
|
|
475
422
|
"proc-macro2",
|
|
476
423
|
"pyo3-macros-backend",
|
|
477
424
|
"quote",
|
|
478
|
-
"syn
|
|
425
|
+
"syn",
|
|
479
426
|
]
|
|
480
427
|
|
|
481
428
|
[[package]]
|
|
@@ -488,33 +435,18 @@ dependencies = [
|
|
|
488
435
|
"proc-macro2",
|
|
489
436
|
"pyo3-build-config",
|
|
490
437
|
"quote",
|
|
491
|
-
"syn
|
|
438
|
+
"syn",
|
|
492
439
|
]
|
|
493
440
|
|
|
494
441
|
[[package]]
|
|
495
442
|
name = "quote"
|
|
496
|
-
version = "1.0.
|
|
443
|
+
version = "1.0.45"
|
|
497
444
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
498
|
-
checksum = "
|
|
445
|
+
checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
|
|
499
446
|
dependencies = [
|
|
500
447
|
"proc-macro2",
|
|
501
448
|
]
|
|
502
449
|
|
|
503
|
-
[[package]]
|
|
504
|
-
name = "rand"
|
|
505
|
-
version = "0.8.5"
|
|
506
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
507
|
-
checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
|
|
508
|
-
dependencies = [
|
|
509
|
-
"rand_core",
|
|
510
|
-
]
|
|
511
|
-
|
|
512
|
-
[[package]]
|
|
513
|
-
name = "rand_core"
|
|
514
|
-
version = "0.6.4"
|
|
515
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
516
|
-
checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
|
|
517
|
-
|
|
518
450
|
[[package]]
|
|
519
451
|
name = "rayon"
|
|
520
452
|
version = "1.11.0"
|
|
@@ -563,17 +495,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
563
495
|
checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
|
|
564
496
|
dependencies = [
|
|
565
497
|
"serde_core",
|
|
566
|
-
"serde_derive",
|
|
567
|
-
]
|
|
568
|
-
|
|
569
|
-
[[package]]
|
|
570
|
-
name = "serde_bytes"
|
|
571
|
-
version = "0.11.19"
|
|
572
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
573
|
-
checksum = "a5d440709e79d88e51ac01c4b72fc6cb7314017bb7da9eeff678aa94c10e3ea8"
|
|
574
|
-
dependencies = [
|
|
575
|
-
"serde",
|
|
576
|
-
"serde_core",
|
|
577
498
|
]
|
|
578
499
|
|
|
579
500
|
[[package]]
|
|
@@ -593,7 +514,7 @@ checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
|
|
|
593
514
|
dependencies = [
|
|
594
515
|
"proc-macro2",
|
|
595
516
|
"quote",
|
|
596
|
-
"syn
|
|
517
|
+
"syn",
|
|
597
518
|
]
|
|
598
519
|
|
|
599
520
|
[[package]]
|
|
@@ -621,18 +542,6 @@ dependencies = [
|
|
|
621
542
|
"serde",
|
|
622
543
|
]
|
|
623
544
|
|
|
624
|
-
[[package]]
|
|
625
|
-
name = "string_cache_codegen"
|
|
626
|
-
version = "0.5.4"
|
|
627
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
628
|
-
checksum = "c711928715f1fe0fe509c53b43e993a9a557babc2d0a3567d0a3006f1ac931a0"
|
|
629
|
-
dependencies = [
|
|
630
|
-
"phf_generator",
|
|
631
|
-
"phf_shared",
|
|
632
|
-
"proc-macro2",
|
|
633
|
-
"quote",
|
|
634
|
-
]
|
|
635
|
-
|
|
636
545
|
[[package]]
|
|
637
546
|
name = "strsim"
|
|
638
547
|
version = "0.11.1"
|
|
@@ -641,9 +550,9 @@ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
|
|
|
641
550
|
|
|
642
551
|
[[package]]
|
|
643
552
|
name = "syn"
|
|
644
|
-
version = "
|
|
553
|
+
version = "2.0.117"
|
|
645
554
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
646
|
-
checksum = "
|
|
555
|
+
checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
|
|
647
556
|
dependencies = [
|
|
648
557
|
"proc-macro2",
|
|
649
558
|
"quote",
|
|
@@ -651,41 +560,27 @@ dependencies = [
|
|
|
651
560
|
]
|
|
652
561
|
|
|
653
562
|
[[package]]
|
|
654
|
-
name = "
|
|
655
|
-
version = "
|
|
563
|
+
name = "target-lexicon"
|
|
564
|
+
version = "0.13.5"
|
|
656
565
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
657
|
-
checksum = "
|
|
658
|
-
dependencies = [
|
|
659
|
-
"proc-macro2",
|
|
660
|
-
"quote",
|
|
661
|
-
"unicode-ident",
|
|
662
|
-
]
|
|
566
|
+
checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
|
|
663
567
|
|
|
664
568
|
[[package]]
|
|
665
|
-
name = "
|
|
666
|
-
version = "0.
|
|
569
|
+
name = "thiserror"
|
|
570
|
+
version = "1.0.69"
|
|
667
571
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
668
|
-
checksum = "
|
|
572
|
+
checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
|
|
669
573
|
dependencies = [
|
|
670
|
-
"
|
|
671
|
-
"quote",
|
|
672
|
-
"syn 1.0.109",
|
|
673
|
-
"unicode-xid",
|
|
574
|
+
"thiserror-impl 1.0.69",
|
|
674
575
|
]
|
|
675
576
|
|
|
676
|
-
[[package]]
|
|
677
|
-
name = "target-lexicon"
|
|
678
|
-
version = "0.13.4"
|
|
679
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
680
|
-
checksum = "b1dd07eb858a2067e2f3c7155d54e929265c264e6f37efe3ee7a8d1b5a1dd0ba"
|
|
681
|
-
|
|
682
577
|
[[package]]
|
|
683
578
|
name = "thiserror"
|
|
684
|
-
version = "
|
|
579
|
+
version = "2.0.18"
|
|
685
580
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
686
|
-
checksum = "
|
|
581
|
+
checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
|
|
687
582
|
dependencies = [
|
|
688
|
-
"thiserror-impl",
|
|
583
|
+
"thiserror-impl 2.0.18",
|
|
689
584
|
]
|
|
690
585
|
|
|
691
586
|
[[package]]
|
|
@@ -696,20 +591,25 @@ checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
|
|
|
696
591
|
dependencies = [
|
|
697
592
|
"proc-macro2",
|
|
698
593
|
"quote",
|
|
699
|
-
"syn
|
|
594
|
+
"syn",
|
|
700
595
|
]
|
|
701
596
|
|
|
702
597
|
[[package]]
|
|
703
|
-
name = "
|
|
704
|
-
version = "
|
|
598
|
+
name = "thiserror-impl"
|
|
599
|
+
version = "2.0.18"
|
|
705
600
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
706
|
-
checksum = "
|
|
601
|
+
checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
|
|
602
|
+
dependencies = [
|
|
603
|
+
"proc-macro2",
|
|
604
|
+
"quote",
|
|
605
|
+
"syn",
|
|
606
|
+
]
|
|
707
607
|
|
|
708
608
|
[[package]]
|
|
709
|
-
name = "unicode-
|
|
710
|
-
version = "0.
|
|
609
|
+
name = "unicode-ident"
|
|
610
|
+
version = "1.0.24"
|
|
711
611
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
712
|
-
checksum = "
|
|
612
|
+
checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
|
713
613
|
|
|
714
614
|
[[package]]
|
|
715
615
|
name = "unindent"
|
|
@@ -731,21 +631,9 @@ checksum = "40afbbcfe14b8c3bdaddc8bba0cb32e1d0f2b0b0196a8633ac37a7a000b88035"
|
|
|
731
631
|
dependencies = [
|
|
732
632
|
"nom 7.1.3",
|
|
733
633
|
"once_cell",
|
|
734
|
-
"thiserror",
|
|
634
|
+
"thiserror 1.0.69",
|
|
735
635
|
]
|
|
736
636
|
|
|
737
|
-
[[package]]
|
|
738
|
-
name = "version_check"
|
|
739
|
-
version = "0.1.5"
|
|
740
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
741
|
-
checksum = "914b1a6776c4c929a602fafd8bc742e06365d4bcbe48c30f9cca5824f70dc9dd"
|
|
742
|
-
|
|
743
|
-
[[package]]
|
|
744
|
-
name = "version_check"
|
|
745
|
-
version = "0.9.5"
|
|
746
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
747
|
-
checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
|
|
748
|
-
|
|
749
637
|
[[package]]
|
|
750
638
|
name = "windows-link"
|
|
751
639
|
version = "0.2.1"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "grumpy"
|
|
3
|
-
version = "1.1.
|
|
3
|
+
version = "1.1.4"
|
|
4
4
|
edition = "2021"
|
|
5
5
|
description = "Genetic analysis in Rust."
|
|
6
6
|
license-file = "LICENSE"
|
|
@@ -9,7 +9,7 @@ readme = "README.md"
|
|
|
9
9
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
10
10
|
|
|
11
11
|
[dependencies]
|
|
12
|
-
gb-io = "0.
|
|
12
|
+
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"
|
|
@@ -586,16 +586,26 @@ impl Gene {
|
|
|
586
586
|
genome_positions[0] = first_pos;
|
|
587
587
|
|
|
588
588
|
let last_pos = genome_positions[genome_positions.len() - 1].genome_idx;
|
|
589
|
+
let first_pos = genome_positions[0].genome_idx;
|
|
590
|
+
let max_pos = genome_positions.iter().map(|x| x.genome_idx).max().unwrap();
|
|
591
|
+
let crosses_genome_boundary = last_pos < first_pos;
|
|
589
592
|
|
|
590
593
|
// Iter all positions, double checking that the deletions don't pass end of gene
|
|
591
594
|
// truncating those which do
|
|
592
595
|
for position in genome_positions.iter_mut() {
|
|
596
|
+
let offset = if crosses_genome_boundary && position.genome_idx < first_pos {
|
|
597
|
+
// This position is at the start of the genome, having started at the end,
|
|
598
|
+
// so we need to check if the deletion crosses the boundary here
|
|
599
|
+
last_pos
|
|
600
|
+
} else {
|
|
601
|
+
max_pos
|
|
602
|
+
};
|
|
593
603
|
for alt in position.alts.iter_mut() {
|
|
594
604
|
if alt.alt_type == AltType::DEL
|
|
595
|
-
&& position.genome_idx + (alt.base.len() as i64) >
|
|
605
|
+
&& position.genome_idx + (alt.base.len() as i64) > offset
|
|
596
606
|
{
|
|
597
607
|
let bases_to_trim =
|
|
598
|
-
(position.genome_idx + alt.base.len() as i64 -
|
|
608
|
+
(position.genome_idx + alt.base.len() as i64 - offset - 1) as usize;
|
|
599
609
|
if bases_to_trim == 0 {
|
|
600
610
|
continue;
|
|
601
611
|
}
|
|
@@ -5082,11 +5082,19 @@ mod tests {
|
|
|
5082
5082
|
let mut sample = mutate(&reference, vcf);
|
|
5083
5083
|
let ref_gene = reference.get_gene("INCOMPLETE_LK403_RS14635".to_string());
|
|
5084
5084
|
let sample_gene = sample.get_gene("INCOMPLETE_LK403_RS14635".to_string());
|
|
5085
|
+
|
|
5085
5086
|
// Getting to this point without error is the main test here, but check that the mutation is placed too
|
|
5086
5087
|
let gene_diff = GeneDifference::new(ref_gene, sample_gene, MinorType::COV);
|
|
5087
|
-
println!("Gene diff mutations: {:?}", gene_diff.mutations);
|
|
5088
5088
|
assert!(gene_diff.mutations.len() == 1);
|
|
5089
5089
|
assert!(gene_diff.minor_mutations.is_empty());
|
|
5090
5090
|
assert!(gene_diff.mutations[0].mutation == "-6_del_ca");
|
|
5091
|
+
|
|
5092
|
+
// Similarly with the LK403_RS00005 gene which crosses the genome boundary
|
|
5093
|
+
let ref_gene = reference.get_gene("INCOMPLETE_LK403_RS00005".to_string());
|
|
5094
|
+
let sample_gene = sample.get_gene("INCOMPLETE_LK403_RS00005".to_string());
|
|
5095
|
+
let gene_diff = GeneDifference::new(ref_gene, sample_gene, MinorType::COV);
|
|
5096
|
+
assert!(gene_diff.mutations.is_empty());
|
|
5097
|
+
assert!(gene_diff.minor_mutations.len() == 1);
|
|
5098
|
+
assert!(gene_diff.minor_mutations[0].mutation == "783_del_gccgcgccgcgcggcgcg:3");
|
|
5091
5099
|
}
|
|
5092
5100
|
}
|
|
@@ -17,4 +17,5 @@
|
|
|
17
17
|
##FILTER=<ID=MIN_GCP,Description="Minimum GT_CONF_PERCENTILE of 0.5">
|
|
18
18
|
##FILTER=<ID=MAX_DP,Description="Maximum DP of 46.0453679996447 (= 3.0 standard deviations from the mean read depth 24.34)">
|
|
19
19
|
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT sample
|
|
20
|
-
CP015278.1 3115422 . CTG C . PASS . GT:DP:ALLELE_DP:FRS:COV_TOTAL:COV:GT_CONF:GT_CONF_PERCENTILE 1/1:32:0,32:1.0:32:0,32:227.66:85.78
|
|
20
|
+
CP015278.1 3115422 . CTG C . PASS . GT:DP:ALLELE_DP:FRS:COV_TOTAL:COV:GT_CONF:GT_CONF_PERCENTILE 1/1:32:0,32:1.0:32:0,32:227.66:85.78
|
|
21
|
+
CP015278.1 5620493 . ACGCGCCGCGCGGCGCGGC A . PASS . GT:DP:ALLELE_DP:FRS:COV_TOTAL:COV:GT_CONF:GT_CONF_PERCENTILE 0/0:13.6842:13.6842,11:0.9032:31:20,3:105.35:32.33
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|