fountain-life-service-clients 3.30.0__py3-none-any.whl → 3.32.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.
@@ -0,0 +1,201 @@
1
+ # This file was generated automatically. Do not edit it directly.
2
+ from typing import (
3
+ List,
4
+ Literal,
5
+ NotRequired,
6
+ Optional,
7
+ TypedDict,
8
+ Union,
9
+ Unpack,
10
+ cast,
11
+ )
12
+
13
+ from fountain_life_service_clients._base_client import (
14
+ AlphaConfig,
15
+ AlphaResponse,
16
+ BaseClient,
17
+ )
18
+
19
+ SearchVariantsRequest = TypedDict(
20
+ "SearchVariantsRequest",
21
+ {
22
+ "variantSetIds": str,
23
+ "include": NotRequired[str],
24
+ "variantId": NotRequired[Union[str, List[str]]],
25
+ "sequenceType": NotRequired[Union[Literal["somatic"], Literal["germline"]]],
26
+ "gene": NotRequired[Union[str, List[str]]],
27
+ "aminoAcidChange": NotRequired[Union[str, List[str]]],
28
+ "drugAssociations": NotRequired[bool],
29
+ "hasJaxKnowledge": NotRequired[bool],
30
+ "transcript_in_jaxckb": NotRequired[bool],
31
+ "cosmic_sample_count": NotRequired[float],
32
+ "class": NotRequired[Union[str, List[str]]],
33
+ "group": NotRequired[Union[str, List[str]]],
34
+ "impact": NotRequired[Union[str, List[str]]],
35
+ "biotype": NotRequired[Union[str, List[str]]],
36
+ "rs_id": NotRequired[Union[str, List[str]]],
37
+ "chromosome": NotRequired[Union[str, List[str]]],
38
+ "clinvar_allele_id": NotRequired[Union[str, List[str]]],
39
+ "clinvar_disease": NotRequired[Union[str, List[str]]],
40
+ "clinvar_review": NotRequired[Union[str, List[str]]],
41
+ "clinvar_significance": NotRequired[Union[str, List[str]]],
42
+ "clinvar_submission": NotRequired[Union[str, List[str]]],
43
+ "transcript_gene": NotRequired[Union[str, List[str]]],
44
+ "transcript_gene_id": NotRequired[Union[str, List[str]]],
45
+ "transcript_classification": NotRequired[Union[str, List[str]]],
46
+ "transcript_group": NotRequired[Union[str, List[str]]],
47
+ "transcript_impact": NotRequired[Union[str, List[str]]],
48
+ "transcript_id": NotRequired[Union[str, List[str]]],
49
+ "transcript_biotype": NotRequired[Union[str, List[str]]],
50
+ "transcript_exon_intron_rank": NotRequired[Union[str, List[str]]],
51
+ "transcript_hgvs_amino_acid_change": NotRequired[Union[str, List[str]]],
52
+ "transcript_nucleotide_change": NotRequired[Union[str, List[str]]],
53
+ "transcript_jax_protein_effect": NotRequired[Union[str, List[str]]],
54
+ "transcript_jax_knowledge": NotRequired[Union[str, List[str]]],
55
+ "cosmic_id": NotRequired[Union[str, List[str]]],
56
+ "cosmic_mutation_status": NotRequired[Union[str, List[str]]],
57
+ "cosmic_histology": NotRequired[Union[str, List[str]]],
58
+ "cosmic_tumor_site": NotRequired[Union[str, List[str]]],
59
+ "dbnsfp_fathmm_pred": NotRequired[Union[str, List[str]]],
60
+ "dbnsfp_mutationtaster_pred": NotRequired[Union[str, List[str]]],
61
+ "dbnsfp_sift_pred": NotRequired[Union[str, List[str]]],
62
+ "sample_zygosity": NotRequired[Union[str, List[str]]],
63
+ "sample_genotype": NotRequired[Union[str, List[str]]],
64
+ "sample_filter": NotRequired[Union[str, List[str]]],
65
+ "sample_vendsig": NotRequired[Union[str, List[str]]],
66
+ "sequence_type": NotRequired[Union[str, List[str]]],
67
+ "position": NotRequired[Union[str, List[str]]],
68
+ "clinvar_near_variant": NotRequired[Union[str, List[str]]],
69
+ "cosmic_near_variant": NotRequired[Union[str, List[str]]],
70
+ "minimum_allele_frequency": NotRequired[Union[str, List[str]]],
71
+ "maximum_allele_frequency": NotRequired[Union[str, List[str]]],
72
+ "population_allele_frequency": NotRequired[Union[str, List[str]]],
73
+ "exac_allele_frequency": NotRequired[Union[str, List[str]]],
74
+ "exac_homozygous": NotRequired[Union[str, List[str]]],
75
+ "dbnsfp_damaging_count": NotRequired[Union[str, List[str]]],
76
+ "dbnsfp_damaging_predictor": NotRequired[Union[str, List[str]]],
77
+ "dbnsfp_damaging_vote": NotRequired[Union[str, List[str]]],
78
+ "dbnsfp_fathmm_rankscore": NotRequired[Union[str, List[str]]],
79
+ "dbnsfp_mean_rankscore": NotRequired[Union[str, List[str]]],
80
+ "dbnsfp_mean_rankscore_predictor": NotRequired[Union[str, List[str]]],
81
+ "dbnsfp_mutationtaster_rankscore": NotRequired[Union[str, List[str]]],
82
+ "dbnsfp_sift_rankscore": NotRequired[Union[str, List[str]]],
83
+ "sample_allele_frequency": NotRequired[Union[str, List[str]]],
84
+ "sample_quality": NotRequired[Union[str, List[str]]],
85
+ "sample_read_depth": NotRequired[Union[str, List[str]]],
86
+ "sample_alternate_read_depth": NotRequired[Union[str, List[str]]],
87
+ "sample_reference_read_depth": NotRequired[Union[str, List[str]]],
88
+ "nextPageToken": NotRequired[str],
89
+ "pageSize": NotRequired[float],
90
+ },
91
+ )
92
+
93
+
94
+ class Clinvar(TypedDict):
95
+ nearVariant: float
96
+
97
+
98
+ class Cosmic(TypedDict):
99
+ sampleCount: float
100
+ nearVariant: float
101
+ tumorSite: NotRequired[str]
102
+ histology: NotRequired[str]
103
+ cosmicId: NotRequired[str]
104
+ status: NotRequired[str]
105
+
106
+
107
+ EnsemblCanonItem = TypedDict(
108
+ "EnsemblCanonItem",
109
+ {
110
+ "class": NotRequired[str],
111
+ "impact": NotRequired[str],
112
+ "gene": NotRequired[str],
113
+ "geneId": NotRequired[str],
114
+ "transcriptId": NotRequired[str],
115
+ "biotype": NotRequired[str],
116
+ "exonIntronRank": NotRequired[str],
117
+ "nucleotideChange": NotRequired[str],
118
+ "aminoAcidChange": NotRequired[str],
119
+ "hgvsAminoAcidChange": NotRequired[str],
120
+ },
121
+ )
122
+
123
+
124
+ class Dbnsfp(TypedDict):
125
+ siftPred: List[Optional[str]]
126
+ mutationTasterPred: List[Optional[str]]
127
+ fathmmPred: List[Optional[str]]
128
+
129
+
130
+ EnsemblItem = TypedDict(
131
+ "EnsemblItem",
132
+ {
133
+ "class": NotRequired[str],
134
+ "impact": NotRequired[str],
135
+ "gene": NotRequired[str],
136
+ "geneId": NotRequired[str],
137
+ "transcriptId": NotRequired[str],
138
+ "biotype": NotRequired[str],
139
+ "exonIntronRank": NotRequired[str],
140
+ "nucleotideChange": NotRequired[str],
141
+ "aminoAcidChange": NotRequired[str],
142
+ "hgvsAminoAcidChange": NotRequired[str],
143
+ },
144
+ )
145
+
146
+
147
+ class Vcf(TypedDict):
148
+ quality: float
149
+ filter: str
150
+ variantAllelicFrequency: float
151
+ coverage: str
152
+
153
+
154
+ class Item(TypedDict):
155
+ id: str
156
+ chromosome: str
157
+ reference: str
158
+ alternate: str
159
+ position: float
160
+ minimumAlleleFrequency: float
161
+ maximumAlleleFrequency: float
162
+ gnomadAlleleFrequency: float
163
+ gnomadHomozygous: float
164
+ rsid: str
165
+ zygosity: str
166
+ clinvar: Clinvar
167
+ cosmic: Cosmic
168
+ ensemblCanon: List[EnsemblCanonItem]
169
+ dbnsfp: Dbnsfp
170
+ ensembl: NotRequired[List[EnsemblItem]]
171
+ vcf: NotRequired[Vcf]
172
+
173
+
174
+ class Links(TypedDict):
175
+ self: str
176
+ next: NotRequired[str]
177
+
178
+
179
+ class Invalid(TypedDict):
180
+ variantSetIds: List[str]
181
+
182
+
183
+ class SearchVariantsResponse(TypedDict):
184
+ items: NotRequired[List[Item]]
185
+ links: Links
186
+ sorted: NotRequired[bool]
187
+ count: NotRequired[float]
188
+ invalid: NotRequired[Invalid]
189
+
190
+
191
+ class GenomicsServiceClient(BaseClient):
192
+ def __init__(self, **cfg: Unpack[AlphaConfig]):
193
+ kwargs = {"target": "lambda://genomics-service:deployed", **(cfg or {})}
194
+ super().__init__(**kwargs)
195
+
196
+ async def search_variants(self, body: SearchVariantsRequest):
197
+ """Search for variants"""
198
+ res = await self.client.request(
199
+ path="/v1/genomics/variants/_search", method="POST", body=cast(dict, body)
200
+ )
201
+ return cast(AlphaResponse[SearchVariantsResponse], res)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fountain-life-service-clients
3
- Version: 3.30.0
3
+ Version: 3.32.0
4
4
  Summary:
5
5
  License: UNLICENSED
6
6
  Author: Fountain Life
@@ -13,6 +13,7 @@ fountain_life_service_clients/email_service_sms.py,sha256=6W9Ba0Qj8oRtPMOrMx2HPk
13
13
  fountain_life_service_clients/fhir_post_processor_service.py,sha256=4IsyyRoCIzSNIBMvJFi1QyFuekikmtoY7ahQCh8Oncw,1355
14
14
  fountain_life_service_clients/fhir_search_service.py,sha256=O_y8YrOjvKj_Tfs5Pj4MM4X6RvV1E2s762lRH5U8ji8,6014
15
15
  fountain_life_service_clients/file_service.py,sha256=CY36fpvCAi17npAKAWkFDDaNhwbvTC5hx-sGZmPfyBM,4046
16
+ fountain_life_service_clients/genomics_service.py,sha256=Am6cAg_hQKhY9W6bHjKyW4LQw_S2W0IiKNagkD8sQis,7425
16
17
  fountain_life_service_clients/invitation_service.py,sha256=tKWgb-bGIwT4x3MWSLiVChQRaZURj43S6Uyrg3Lt7HA,2596
17
18
  fountain_life_service_clients/medical_results_service_results.py,sha256=L0clTifU4LWWKgBsIzEfelmkaICxG1_q8sHyrdA5es4,4876
18
19
  fountain_life_service_clients/member_notification_service.py,sha256=wRkgmUqAV59BV81c3Iwz7JxSTuOLagHrcJcXvMbdBco,1814
@@ -24,6 +25,6 @@ fountain_life_service_clients/rules_service.py,sha256=VxPYboYQmw--6Kn78RKu6_9as1
24
25
  fountain_life_service_clients/scheduler_service.py,sha256=IkwRns_QHh6fx1IZWEXZ35DeRiW7OHaROM5wjWubZm4,4440
25
26
  fountain_life_service_clients/survey_service.py,sha256=hxOl3gBDxEdjrsKcMCoPl9RxumQzRT-e4zTbEAA0Iq4,13343
26
27
  fountain_life_service_clients/user_service.py,sha256=rM9xcF-VzdLp9aDOhg1UbecX2VPPMxH9PlgpNpGdC18,4253
27
- fountain_life_service_clients-3.30.0.dist-info/METADATA,sha256=Cdzuv_PtyC1PYfhH_v7UEqVBEPLUCvJHA7WEHAEaGyg,1405
28
- fountain_life_service_clients-3.30.0.dist-info/WHEEL,sha256=M5asmiAlL6HEcOq52Yi5mmk9KmTVjY2RDPtO4p9DMrc,88
29
- fountain_life_service_clients-3.30.0.dist-info/RECORD,,
28
+ fountain_life_service_clients-3.32.0.dist-info/METADATA,sha256=y0-VaE64BYAoWHg6EIy9coMQYZ_T2RZfCVpT7l8s8B0,1405
29
+ fountain_life_service_clients-3.32.0.dist-info/WHEEL,sha256=M5asmiAlL6HEcOq52Yi5mmk9KmTVjY2RDPtO4p9DMrc,88
30
+ fountain_life_service_clients-3.32.0.dist-info/RECORD,,