cg 83.15.4__py3-none-any.whl → 83.16.1__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/services/analysis_starter/factories/starter_factory.py +10 -0
- cg/store/models.py +11 -0
- {cg-83.15.4.dist-info → cg-83.16.1.dist-info}/METADATA +1 -1
- {cg-83.15.4.dist-info → cg-83.16.1.dist-info}/RECORD +7 -7
- {cg-83.15.4.dist-info → cg-83.16.1.dist-info}/WHEEL +0 -0
- {cg-83.15.4.dist-info → cg-83.16.1.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.16.1"
|
|
@@ -3,7 +3,9 @@ import logging
|
|
|
3
3
|
from cg.apps.housekeeper.hk import HousekeeperAPI
|
|
4
4
|
from cg.constants import Workflow
|
|
5
5
|
from cg.meta.archive.archive import SpringArchiveAPI
|
|
6
|
+
from cg.meta.backup.backup import SpringBackupAPI
|
|
6
7
|
from cg.meta.compress import CompressAPI
|
|
8
|
+
from cg.meta.encryption.encryption import SpringEncryptionAPI
|
|
7
9
|
from cg.models.cg_config import CGConfig
|
|
8
10
|
from cg.services.analysis_starter.analysis_starter import AnalysisStarter
|
|
9
11
|
from cg.services.analysis_starter.configurator.configurator import Configurator
|
|
@@ -25,6 +27,7 @@ from cg.services.analysis_starter.tracker.implementations.microsalt import Micro
|
|
|
25
27
|
from cg.services.analysis_starter.tracker.implementations.mip_dna import MIPDNATracker
|
|
26
28
|
from cg.services.analysis_starter.tracker.implementations.nextflow_tracker import NextflowTracker
|
|
27
29
|
from cg.services.analysis_starter.tracker.tracker import Tracker
|
|
30
|
+
from cg.services.pdc_service.pdc_service import PdcService
|
|
28
31
|
from cg.store.store import Store
|
|
29
32
|
|
|
30
33
|
LOG = logging.getLogger(__name__)
|
|
@@ -65,6 +68,13 @@ class AnalysisStarterFactory:
|
|
|
65
68
|
data_flow_config=self.cg_config.data_flow,
|
|
66
69
|
)
|
|
67
70
|
compress_api = CompressAPI(
|
|
71
|
+
backup_api=SpringBackupAPI(
|
|
72
|
+
encryption_api=SpringEncryptionAPI(
|
|
73
|
+
binary_path=self.cg_config.encryption.binary_path
|
|
74
|
+
),
|
|
75
|
+
hk_api=self.cg_config.housekeeper_api,
|
|
76
|
+
pdc_service=PdcService(self.cg_config.pdc.binary_path),
|
|
77
|
+
),
|
|
68
78
|
hk_api=self.housekeeper_api,
|
|
69
79
|
crunchy_api=self.cg_config.crunchy_api,
|
|
70
80
|
demux_root=self.cg_config.run_instruments.illumina.demultiplexed_runs_dir,
|
cg/store/models.py
CHANGED
|
@@ -851,6 +851,13 @@ class Sample(Base, PriorityMixin):
|
|
|
851
851
|
"""Return the sample run metrics for the sample."""
|
|
852
852
|
return self._sample_run_metrics
|
|
853
853
|
|
|
854
|
+
@property
|
|
855
|
+
def device_type(self) -> DeviceType | None:
|
|
856
|
+
"""Return the device type the sample was sequenced on."""
|
|
857
|
+
if self._sample_run_metrics:
|
|
858
|
+
return self._sample_run_metrics[0].type
|
|
859
|
+
return None
|
|
860
|
+
|
|
854
861
|
def to_dict(self, links: bool = False) -> dict:
|
|
855
862
|
"""Represent as dictionary"""
|
|
856
863
|
data = to_dict(model_instance=self)
|
|
@@ -858,6 +865,10 @@ class Sample(Base, PriorityMixin):
|
|
|
858
865
|
data["customer"] = self.customer.to_dict()
|
|
859
866
|
data["application_version"] = self.application_version.to_dict()
|
|
860
867
|
data["application"] = self.application_version.application.to_dict()
|
|
868
|
+
data["hifi_yield"] = self.hifi_yield
|
|
869
|
+
data["uses_reads"] = True
|
|
870
|
+
if self.device_type == DeviceType.PACBIO:
|
|
871
|
+
data["uses_reads"] = False
|
|
861
872
|
if links:
|
|
862
873
|
data["links"] = [link_obj.to_dict(family=True, parents=True) for link_obj in self.links]
|
|
863
874
|
return data
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
cg/__init__.py,sha256=
|
|
1
|
+
cg/__init__.py,sha256=NQd_1VSkCO7eKx0EXRODgO4qNS_gTytb4Ketu8sUyu4,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
|
|
@@ -554,7 +554,7 @@ cg/services/analysis_starter/configurator/models/mip_dna.py,sha256=-9wiSIPeqp7Mc
|
|
|
554
554
|
cg/services/analysis_starter/configurator/models/nextflow.py,sha256=Ug-Kj179TW5hnaCBPJFu9rigbBnmFYSfv02kkItmn2o,610
|
|
555
555
|
cg/services/analysis_starter/constants.py,sha256=69R7TyZWXQlDMowpV87faHcY7zpH5KTTjHLViYadeo8,268
|
|
556
556
|
cg/services/analysis_starter/factories/configurator_factory.py,sha256=CB9iyjaH43cEMQb9_Q9JdHGbLvodEwhhXKZatZhkcEI,12295
|
|
557
|
-
cg/services/analysis_starter/factories/starter_factory.py,sha256=
|
|
557
|
+
cg/services/analysis_starter/factories/starter_factory.py,sha256=bbU8wWsw_CewuyYLVRG2qxiT-m6PonIMDxHUniwLu7s,6660
|
|
558
558
|
cg/services/analysis_starter/input_fetcher/implementations/bam_fetcher.py,sha256=ttpexbRji6VjlxYi_ayevfjNAtgkV25OQbAV7fagKYA,2530
|
|
559
559
|
cg/services/analysis_starter/input_fetcher/implementations/fastq_fetcher.py,sha256=P2NVYgjLNwnmRsebuVVMUA4_ks-1wx2ALfHBxoucmUg,9676
|
|
560
560
|
cg/services/analysis_starter/input_fetcher/input_fetcher.py,sha256=J0LRB-cvkBUi93k2f8gCYNYwGvmUbJlqosM0bLIkYOc,149
|
|
@@ -904,7 +904,7 @@ cg/store/filters/status_panel_filters.py,sha256=qMYhIsrF9G3mjCvL9b9O2l_cmD3SfPWh
|
|
|
904
904
|
cg/store/filters/status_pool_filters.py,sha256=XcYqe2z5k_q09xpp4cleDMQ4Q3o2y7UPCkB0QUkl1ck,4308
|
|
905
905
|
cg/store/filters/status_sample_filters.py,sha256=mRpt_ik7niMjBo9K7pP8cmdfDMdr0B3I6Tt2MWXkLoc,9656
|
|
906
906
|
cg/store/filters/status_user_filters.py,sha256=sMwKeWqgEtqv8gyhbN_Uf5huPUxbOt5qEqMWVu67Zys,1328
|
|
907
|
-
cg/store/models.py,sha256=
|
|
907
|
+
cg/store/models.py,sha256=WuTbEtqRdcUsuQpOsSjhUMNovfDQYbPeff3Qo_wjERs,44321
|
|
908
908
|
cg/store/store.py,sha256=mz1TfKPlanH2uQyhZdwe_8VKg0IdFolmromKLu668IY,630
|
|
909
909
|
cg/utils/__init__.py,sha256=gGjdV2l_hfWFCTybU6dwDk_FcItM88EIHNPaX6g1qUk,30
|
|
910
910
|
cg/utils/calculations.py,sha256=zLVJO6nNw6n7AW7fHZI56UnQ23lqJrShB4Hh2ow6-TQ,349
|
|
@@ -923,7 +923,7 @@ cg/utils/flask/enum.py,sha256=xwNVtFPkSzoloJctLHu7obRyxcng1GJrhkeYkqwf9tw,1052
|
|
|
923
923
|
cg/utils/mapping.py,sha256=oZpZW2kgsbtAP2FZ7RtRPELiEE1zZk_nAGisHGtCOUo,491
|
|
924
924
|
cg/utils/time.py,sha256=_VOglhrFEZ5cwHK1U1g36SdwzB7UvV-Nvlt4ymuZUho,1501
|
|
925
925
|
cg/utils/utils.py,sha256=RciI_UhWcnG_pMZrmQZ1ZYb-O1N0DweTYMmhE0SIRgQ,1410
|
|
926
|
-
cg-83.
|
|
927
|
-
cg-83.
|
|
928
|
-
cg-83.
|
|
929
|
-
cg-83.
|
|
926
|
+
cg-83.16.1.dist-info/METADATA,sha256=0qPOKTgbs7jLWPvz8c10Uv28QkzMKcGIsnLDPWst4IQ,4940
|
|
927
|
+
cg-83.16.1.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
|
|
928
|
+
cg-83.16.1.dist-info/entry_points.txt,sha256=q5f47YQQGltzK_xnIq1mDopRXXEItr85Xe1BCtG-Wts,39
|
|
929
|
+
cg-83.16.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|