cg 83.17.0__py3-none-any.whl → 83.18.0__py3-none-any.whl
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.
- cg/__init__.py +1 -1
- cg/clients/chanjo2/models.py +6 -0
- cg/constants/nf_analysis.py +0 -2
- cg/meta/workflow/analysis.py +1 -1
- cg/meta/workflow/raredisease.py +10 -25
- cg/resources/nallo_bundle_filenames.yaml +41 -6
- {cg-83.17.0.dist-info → cg-83.18.0.dist-info}/METADATA +1 -1
- {cg-83.17.0.dist-info → cg-83.18.0.dist-info}/RECORD +10 -10
- {cg-83.17.0.dist-info → cg-83.18.0.dist-info}/WHEEL +0 -0
- {cg-83.17.0.dist-info → cg-83.18.0.dist-info}/entry_points.txt +0 -0
cg/__init__.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
__title__ = "cg"
|
|
2
|
-
__version__ = "83.
|
|
2
|
+
__version__ = "83.18.0"
|
cg/clients/chanjo2/models.py
CHANGED
|
@@ -27,6 +27,12 @@ class CoverageMetrics(BaseModel):
|
|
|
27
27
|
mean_coverage: float
|
|
28
28
|
|
|
29
29
|
|
|
30
|
+
class CoverageMetricsChanjo1(CoverageMetrics):
|
|
31
|
+
"""Chanjo1 sample coverage metrics model."""
|
|
32
|
+
|
|
33
|
+
pass
|
|
34
|
+
|
|
35
|
+
|
|
30
36
|
class CoveragePostResponse(RootModel):
|
|
31
37
|
"""Coverage sample data model returned from the POST request."""
|
|
32
38
|
|
cg/constants/nf_analysis.py
CHANGED
cg/meta/workflow/analysis.py
CHANGED
|
@@ -781,7 +781,7 @@ class AnalysisAPI(MetaAPI):
|
|
|
781
781
|
def get_sample_coverage(
|
|
782
782
|
self, case_id: str, sample_id: str, gene_ids: list[int]
|
|
783
783
|
) -> CoverageMetrics | None:
|
|
784
|
-
"""Return sample coverage data from Chanjo2."""
|
|
784
|
+
"""Return sample coverage data from Chanjo or Chanjo2."""
|
|
785
785
|
raise NotImplementedError
|
|
786
786
|
|
|
787
787
|
def get_scout_upload_case_tags(self):
|
cg/meta/workflow/raredisease.py
CHANGED
|
@@ -7,18 +7,11 @@ from typing import Any
|
|
|
7
7
|
|
|
8
8
|
from housekeeper.store.models import File
|
|
9
9
|
|
|
10
|
-
from cg.clients.chanjo2.models import
|
|
11
|
-
CoverageMetrics,
|
|
12
|
-
CoveragePostRequest,
|
|
13
|
-
CoveragePostResponse,
|
|
14
|
-
CoverageSample,
|
|
15
|
-
)
|
|
10
|
+
from cg.clients.chanjo2.models import CoverageMetricsChanjo1
|
|
16
11
|
from cg.constants import Workflow
|
|
17
12
|
from cg.constants.constants import GenomeVersion
|
|
18
13
|
from cg.constants.nf_analysis import (
|
|
19
14
|
RAREDISEASE_COVERAGE_FILE_TAGS,
|
|
20
|
-
RAREDISEASE_COVERAGE_INTERVAL_TYPE,
|
|
21
|
-
RAREDISEASE_COVERAGE_THRESHOLD,
|
|
22
15
|
RAREDISEASE_METRIC_CONDITIONS_WES,
|
|
23
16
|
RAREDISEASE_METRIC_CONDITIONS_WGS,
|
|
24
17
|
RAREDISEASE_PARENT_PEDDY_METRIC_CONDITION,
|
|
@@ -154,25 +147,17 @@ class RarediseaseAnalysisAPI(NfAnalysisAPI):
|
|
|
154
147
|
|
|
155
148
|
def get_sample_coverage(
|
|
156
149
|
self, case_id: str, sample_id: str, gene_ids: list[int]
|
|
157
|
-
) ->
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
coverage_file_path: str | None = self.get_sample_coverage_file_path(
|
|
161
|
-
bundle_name=case_id, sample_id=sample_id
|
|
150
|
+
) -> CoverageMetricsChanjo1 | None:
|
|
151
|
+
sample_coverage: dict = self.chanjo_api.sample_coverage(
|
|
152
|
+
sample_id=sample_id, panel_genes=gene_ids
|
|
162
153
|
)
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
hgnc_gene_ids=gene_ids,
|
|
168
|
-
interval_type=RAREDISEASE_COVERAGE_INTERVAL_TYPE,
|
|
169
|
-
samples=[CoverageSample(coverage_file_path=coverage_file_path, name=sample_id)],
|
|
154
|
+
if sample_coverage:
|
|
155
|
+
return CoverageMetricsChanjo1(
|
|
156
|
+
coverage_completeness_percent=sample_coverage.get("mean_completeness"),
|
|
157
|
+
mean_coverage=sample_coverage.get("mean_coverage"),
|
|
170
158
|
)
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
except Exception as error:
|
|
174
|
-
LOG.error(f"Error getting coverage for sample '{sample_id}', error: {error}")
|
|
175
|
-
return None
|
|
159
|
+
LOG.warning(f"Could not calculate sample coverage for: {sample_id}")
|
|
160
|
+
return None
|
|
176
161
|
|
|
177
162
|
def get_scout_upload_case_tags(self) -> dict:
|
|
178
163
|
"""Return Raredisease Scout upload case tags."""
|
|
@@ -282,32 +282,67 @@
|
|
|
282
282
|
id: SAMPLEID
|
|
283
283
|
path: PATHTOCASE/methylation/pileup/SAMPLEID/SAMPLEID_modkit_pileup_1.bed.gz
|
|
284
284
|
step: methylation_pileup
|
|
285
|
-
tag:
|
|
285
|
+
tag: modkit_hap1
|
|
286
286
|
- format: bed
|
|
287
287
|
id: SAMPLEID
|
|
288
288
|
path: PATHTOCASE/methylation/pileup/SAMPLEID/SAMPLEID_modkit_pileup_1.bed.gz.tbi
|
|
289
289
|
step: methylation_pileup
|
|
290
|
-
tag:
|
|
290
|
+
tag: modkit_hap1_index
|
|
291
291
|
- format: bed
|
|
292
292
|
id: SAMPLEID
|
|
293
293
|
path: PATHTOCASE/methylation/pileup/SAMPLEID/SAMPLEID_modkit_pileup_2.bed.gz
|
|
294
294
|
step: methylation_pileup
|
|
295
|
-
tag:
|
|
295
|
+
tag: modkit_hap2
|
|
296
296
|
- format: bed
|
|
297
297
|
id: SAMPLEID
|
|
298
298
|
path: PATHTOCASE/methylation/pileup/SAMPLEID/SAMPLEID_modkit_pileup_2.bed.gz.tbi
|
|
299
299
|
step: methylation_pileup
|
|
300
|
-
tag:
|
|
300
|
+
tag: modkit_hap2_index
|
|
301
301
|
- format: bed
|
|
302
302
|
id: SAMPLEID
|
|
303
303
|
path: PATHTOCASE/methylation/pileup/SAMPLEID/SAMPLEID_modkit_pileup_ungrouped.bed.gz
|
|
304
304
|
step: methylation_pileup
|
|
305
|
-
tag:
|
|
305
|
+
tag: modkit_ungrouped
|
|
306
306
|
- format: bed
|
|
307
307
|
id: SAMPLEID
|
|
308
308
|
path: PATHTOCASE/methylation/pileup/SAMPLEID/SAMPLEID_modkit_pileup_ungrouped.bed.gz.tbi
|
|
309
309
|
step: methylation_pileup
|
|
310
|
-
tag:
|
|
310
|
+
tag: modkit_ungrouped_index
|
|
311
|
+
- format: bed
|
|
312
|
+
id: SAMPLEID
|
|
313
|
+
path: PATHTOCASE/methylation/pileup/SAMPLEID/SAMPLEID_pbcpgtools.hap1.bed.gz
|
|
314
|
+
step: methylation_pileup
|
|
315
|
+
tag: methbat_hap1
|
|
316
|
+
- format: bed
|
|
317
|
+
id: SAMPLEID
|
|
318
|
+
path: PATHTOCASE/methylation/pileup/SAMPLEID/SAMPLEID_pbcpgtools.hap1.bed.gz.tbi
|
|
319
|
+
step: methylation_pileup
|
|
320
|
+
tag: methbat_hap1_index
|
|
321
|
+
- format: bed
|
|
322
|
+
id: SAMPLEID
|
|
323
|
+
path: PATHTOCASE/methylation/pileup/SAMPLEID/SAMPLEID_pbcpgtools.hap2.bed.gz
|
|
324
|
+
step: methylation_pileup
|
|
325
|
+
tag: methbat_hap2
|
|
326
|
+
- format: bed
|
|
327
|
+
id: SAMPLEID
|
|
328
|
+
path: PATHTOCASE/methylation/pileup/SAMPLEID/SAMPLEID_pbcpgtools.hap2.bed.gz.tbi
|
|
329
|
+
step: methylation_pileup
|
|
330
|
+
tag: methbat_hap2_index
|
|
331
|
+
- format: bed
|
|
332
|
+
id: SAMPLEID
|
|
333
|
+
path: PATHTOCASE/methylation/pileup/SAMPLEID/SAMPLEID_pbcpgtools.combined.bed.gz
|
|
334
|
+
step: methylation_pileup
|
|
335
|
+
tag: methbat_combined
|
|
336
|
+
- format: bed
|
|
337
|
+
id: SAMPLEID
|
|
338
|
+
path: PATHTOCASE/methylation/pileup/SAMPLEID/SAMPLEID_pbcpgtools.combined.bed.gz.tbi
|
|
339
|
+
step: methylation_pileup
|
|
340
|
+
tag: methbat_combined_index
|
|
341
|
+
- format: tsv
|
|
342
|
+
id: SAMPLEID
|
|
343
|
+
path: PATHTOCASE/methylation/profile/SAMPLEID/SAMPLEID_methbat_profile.tsv
|
|
344
|
+
step: methylation_calling
|
|
345
|
+
tag: methbat_profile
|
|
311
346
|
- format: meta
|
|
312
347
|
id: SAMPLEID
|
|
313
348
|
path: PATHTOCASE/qc/mosdepth/SAMPLEID/SAMPLEID.per-base.d4
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
cg/__init__.py,sha256=
|
|
1
|
+
cg/__init__.py,sha256=NOsHCvBNWH45eSTwdtkm_GlvJYAU4UfbXhDZgKKdGSQ,41
|
|
2
2
|
cg/apps/__init__.py,sha256=pYf0vxo4iYQqURzFRYzqpOCdV8Cm9MWx0GHvJOz0EMg,315
|
|
3
3
|
cg/apps/coverage/__init__.py,sha256=dJtsmNf8tODE2-VEomMIoYA7ugLYZAk_upsfOQCZeF8,27
|
|
4
4
|
cg/apps/coverage/api.py,sha256=e_ozC3QeNKoEfpjjMaL-XjeBLtz-JySWccrtw0E9mLM,2940
|
|
@@ -176,7 +176,7 @@ cg/clients/arnold/dto/create_case_request.py,sha256=tXD7EZSgHL6bOHhph65dgYoGKIut
|
|
|
176
176
|
cg/clients/arnold/exceptions.py,sha256=w9J9TLie5tcgqzaO0L3lrF3OlowtjzkeGR4R7quXzko,384
|
|
177
177
|
cg/clients/chanjo2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
178
178
|
cg/clients/chanjo2/client.py,sha256=je48Wx3nvyerYKwezZFBjuLHD3C7XaXDQSBeaTOtBlU,1197
|
|
179
|
-
cg/clients/chanjo2/models.py,sha256=
|
|
179
|
+
cg/clients/chanjo2/models.py,sha256=W5Zgb94pplbM2x5QkoHDJXovWLRmh4vbOlsc08ZjzbE,1436
|
|
180
180
|
cg/clients/chanjo2/utils.py,sha256=q6pJEjV90JVTK2ad3OKtLM_vBMpY8PzC-iFG9xg4Y5o,948
|
|
181
181
|
cg/clients/freshdesk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
182
182
|
cg/clients/freshdesk/constants.py,sha256=SwGJsLggJe5QrrnPVSURe1JSaIwMwKIT09e_1Lhmta4,244
|
|
@@ -207,7 +207,7 @@ cg/constants/invoice.py,sha256=Tdd3PY_Z7wz4eSfKaTapSFlkmk_FWM1bwWMOj5D5F5Y,95
|
|
|
207
207
|
cg/constants/lims.py,sha256=vhATu1UtIXdfPZWEu8pne3uq4ZhCAdPNJcjSotD8AE8,6559
|
|
208
208
|
cg/constants/metrics.py,sha256=jBLp8buIG_3fKFraerFvpfSJ6s-0H42jI1qysjjAXFc,847
|
|
209
209
|
cg/constants/nextflow.py,sha256=o5VxtsyZNJaA1bh_AyKQQ0Iov6grZIeik_hhE8zO268,197
|
|
210
|
-
cg/constants/nf_analysis.py,sha256=
|
|
210
|
+
cg/constants/nf_analysis.py,sha256=D1pzSyBz3IcX8lg-m0GJIW2qCp60tIdMkFSyBx5Yc_I,2450
|
|
211
211
|
cg/constants/nipt.py,sha256=KGy7Y08jIUmT9FKKdjGzfRwvklAkOHRLKXqDOQx4aPc,19
|
|
212
212
|
cg/constants/observations.py,sha256=Sjxo3R7DCkcMkSWNSeg2Sznkjr3werFRRsSREjd6CCU,3887
|
|
213
213
|
cg/constants/orderforms.py,sha256=pLD_ufw11aE-Fn4x87el3F_KRITi2lbrgpBYU7eJgpM,2362
|
|
@@ -348,7 +348,7 @@ cg/meta/upload/scout/uploadscoutapi.py,sha256=FJfr-rvTG7chU3y8Z-jmdQISUx_QQ3OsxF
|
|
|
348
348
|
cg/meta/upload/tomte/tomte.py,sha256=QYuW-YlOxXQLs1i15iotswe5CNHi4--aSbMQyxealcw,1662
|
|
349
349
|
cg/meta/upload/upload_api.py,sha256=hi25r35L7bEJMicH8qc4poAd2TNvP5SJwpS_3lf9eo4,3926
|
|
350
350
|
cg/meta/workflow/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
351
|
-
cg/meta/workflow/analysis.py,sha256=
|
|
351
|
+
cg/meta/workflow/analysis.py,sha256=Pwy62B8Ot6aIG7zEQHsqqUZbmOHqF1AO4WHNV6pL0W0,34737
|
|
352
352
|
cg/meta/workflow/balsamic.py,sha256=TB2nLyq8r-CtCBgOD4Kz3WDJi6lgDs78nagItLyVHjo,31149
|
|
353
353
|
cg/meta/workflow/balsamic_pon.py,sha256=gMo9eKxxEtUR61cQtIWcxFRqSgo0IeBSPe9k8XnF_pc,2700
|
|
354
354
|
cg/meta/workflow/balsamic_umi.py,sha256=W1onPhiqfvVhs8d4M0-EbiVvLys2TBp2fihQ7HrV-Uw,757
|
|
@@ -386,7 +386,7 @@ cg/meta/workflow/mutant/quality_controller/utils.py,sha256=8zbn210O5RIKRIsaZUkVv
|
|
|
386
386
|
cg/meta/workflow/nallo.py,sha256=V0yBQLIlRvWS-gtOfJ6OgxGXTTEjx5Yp-KObyBMCNjs,10035
|
|
387
387
|
cg/meta/workflow/nf_analysis.py,sha256=eXl_1AxwwdzVC_k3ujiONH5q1FCw9wacGoVpVKx2_PI,20466
|
|
388
388
|
cg/meta/workflow/prepare_fastq.py,sha256=HbkrsuqlZgb_7kQPf_j_Mqowh6nEms9jl7043ybxK4U,6149
|
|
389
|
-
cg/meta/workflow/raredisease.py,sha256
|
|
389
|
+
cg/meta/workflow/raredisease.py,sha256=yKrPKMfrowUPRYhWaHBJF4EFPbNB6mL3JkkRejZlhAI,8222
|
|
390
390
|
cg/meta/workflow/rnafusion.py,sha256=Mcmn_HTAHpH-M6Pl_bOG2oSfIgZe11GqtTKrk6lFpPU,3646
|
|
391
391
|
cg/meta/workflow/taxprofiler.py,sha256=pphhUfe-CguO1PIwR3orRoaNnVWi_8V23MkYORHcAh0,3045
|
|
392
392
|
cg/meta/workflow/tomte.py,sha256=-WtxossQMfQjYR9CBdxS1V_gTix3gAVqjDR5tIBTHcE,2345
|
|
@@ -460,7 +460,7 @@ cg/models/workflow/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
|
|
|
460
460
|
cg/models/workflow/mutant.py,sha256=Y5cwG7UninrAWCn6R9rTNhSDAkDprCebCilyCBlPIcY,685
|
|
461
461
|
cg/models/workflow/validators.py,sha256=BzbmB9QVDjM1C_7F874PR0QD6xhCZvDG01ItITmFy_s,70
|
|
462
462
|
cg/resources/__init__.py,sha256=mRMKpOEL-NO4JEzQsjTrtDFf8toOtBXK0BhDbPnZGVE,1247
|
|
463
|
-
cg/resources/nallo_bundle_filenames.yaml,sha256=
|
|
463
|
+
cg/resources/nallo_bundle_filenames.yaml,sha256=04mNM5DFovMTct0OixgspKtaP91_hENoo1lMf-YUSjY,17899
|
|
464
464
|
cg/resources/raredisease_bundle_filenames.yaml,sha256=IN8QDcYQNxFVWghvSNLJ2-Udsd5ts3uBqD9rnJGj4kg,25278
|
|
465
465
|
cg/resources/rnafusion_bundle_filenames.yaml,sha256=hoXuTobKbjH7W7dld87rSF7X0r4KxLXuUllX0ISDDXU,3281
|
|
466
466
|
cg/resources/taxprofiler_bundle_filenames.yaml,sha256=AULMEAYkMzADYUtVtuSmBj7UaAIlLGRDyBMEOO0xWz8,2871
|
|
@@ -922,7 +922,7 @@ cg/utils/flask/enum.py,sha256=xwNVtFPkSzoloJctLHu7obRyxcng1GJrhkeYkqwf9tw,1052
|
|
|
922
922
|
cg/utils/mapping.py,sha256=oZpZW2kgsbtAP2FZ7RtRPELiEE1zZk_nAGisHGtCOUo,491
|
|
923
923
|
cg/utils/time.py,sha256=_VOglhrFEZ5cwHK1U1g36SdwzB7UvV-Nvlt4ymuZUho,1501
|
|
924
924
|
cg/utils/utils.py,sha256=RciI_UhWcnG_pMZrmQZ1ZYb-O1N0DweTYMmhE0SIRgQ,1410
|
|
925
|
-
cg-83.
|
|
926
|
-
cg-83.
|
|
927
|
-
cg-83.
|
|
928
|
-
cg-83.
|
|
925
|
+
cg-83.18.0.dist-info/METADATA,sha256=6hSRs_fWC9gpUCmi5yXMHqRa7qkH6ggaYDh7C_sIT_Q,4940
|
|
926
|
+
cg-83.18.0.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
|
|
927
|
+
cg-83.18.0.dist-info/entry_points.txt,sha256=q5f47YQQGltzK_xnIq1mDopRXXEItr85Xe1BCtG-Wts,39
|
|
928
|
+
cg-83.18.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|