fountain-life-service-clients 3.34.2__py3-none-any.whl → 3.35.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.
@@ -0,0 +1,34 @@
1
+ # This file was generated automatically. Do not edit it directly.
2
+ from typing import List, NotRequired, TypedDict, Unpack, cast
3
+ from urllib.parse import quote
4
+
5
+ from fountain_life_service_clients._base_client import (
6
+ AlphaConfig,
7
+ AlphaResponse,
8
+ BaseClient,
9
+ )
10
+
11
+
12
+ class Sample(TypedDict):
13
+ sampleId: str
14
+ patientId: NotRequired[str]
15
+
16
+
17
+ class GetVariantSetResponse(TypedDict):
18
+ id: str
19
+ datasetId: str
20
+ patientId: NotRequired[str]
21
+ samples: NotRequired[List[Sample]]
22
+
23
+
24
+ class Ga4ghServiceClient(BaseClient):
25
+ def __init__(self, **cfg: Unpack[AlphaConfig]):
26
+ kwargs = {"target": "lambda://ga4gh-service:deployed", **(cfg or {})}
27
+ super().__init__(**kwargs)
28
+
29
+ async def get_variant_set(self, account: str, id: str):
30
+ """Get a variant set by id"""
31
+ res = await self.client.request(
32
+ path=f"/{quote(account)}/v1/variantsets/{quote(id)}", method="GET"
33
+ )
34
+ return cast(AlphaResponse[GetVariantSetResponse], res)
@@ -9,7 +9,6 @@ from typing import (
9
9
  Unpack,
10
10
  cast,
11
11
  )
12
- from urllib.parse import quote
13
12
 
14
13
  from fountain_life_service_clients._base_client import (
15
14
  AlphaConfig,
@@ -17,19 +16,6 @@ from fountain_life_service_clients._base_client import (
17
16
  BaseClient,
18
17
  )
19
18
 
20
-
21
- class Sample(TypedDict):
22
- sampleId: str
23
- patientId: NotRequired[str]
24
-
25
-
26
- class GetVariantSetResponse(TypedDict):
27
- id: str
28
- datasetId: str
29
- patientId: NotRequired[str]
30
- samples: NotRequired[List[Sample]]
31
-
32
-
33
19
  SearchVariantsRequest = TypedDict(
34
20
  "SearchVariantsRequest",
35
21
  {
@@ -41,66 +27,18 @@ SearchVariantsRequest = TypedDict(
41
27
  "aminoAcidChange": NotRequired[Union[str, List[str]]],
42
28
  "drugAssociations": NotRequired[bool],
43
29
  "hasJaxKnowledge": NotRequired[bool],
44
- "transcript_in_jaxckb": NotRequired[bool],
45
- "cosmic_sample_count": NotRequired[float],
46
30
  "class": NotRequired[Union[str, List[str]]],
47
31
  "group": NotRequired[Union[str, List[str]]],
48
32
  "impact": NotRequired[Union[str, List[str]]],
49
33
  "biotype": NotRequired[Union[str, List[str]]],
50
- "rs_id": NotRequired[Union[str, List[str]]],
34
+ "rsid": NotRequired[Union[str, List[str]]],
51
35
  "chromosome": NotRequired[Union[str, List[str]]],
52
- "clinvar_allele_id": NotRequired[Union[str, List[str]]],
53
- "clinvar_disease": NotRequired[Union[str, List[str]]],
54
- "clinvar_review": NotRequired[Union[str, List[str]]],
55
- "clinvar_significance": NotRequired[Union[str, List[str]]],
56
- "clinvar_submission": NotRequired[Union[str, List[str]]],
57
- "transcript_gene": NotRequired[Union[str, List[str]]],
58
- "transcript_gene_id": NotRequired[Union[str, List[str]]],
59
- "transcript_classification": NotRequired[Union[str, List[str]]],
60
- "transcript_group": NotRequired[Union[str, List[str]]],
61
- "transcript_impact": NotRequired[Union[str, List[str]]],
62
- "transcript_id": NotRequired[Union[str, List[str]]],
63
- "transcript_biotype": NotRequired[Union[str, List[str]]],
64
- "transcript_exon_intron_rank": NotRequired[Union[str, List[str]]],
65
- "transcript_hgvs_amino_acid_change": NotRequired[Union[str, List[str]]],
66
- "transcript_nucleotide_change": NotRequired[Union[str, List[str]]],
67
- "transcript_jax_protein_effect": NotRequired[Union[str, List[str]]],
68
- "transcript_jax_knowledge": NotRequired[Union[str, List[str]]],
69
- "cosmic_id": NotRequired[Union[str, List[str]]],
70
- "cosmic_mutation_status": NotRequired[Union[str, List[str]]],
71
- "cosmic_histology": NotRequired[Union[str, List[str]]],
72
- "cosmic_tumor_site": NotRequired[Union[str, List[str]]],
73
- "dbnsfp_fathmm_pred": NotRequired[Union[str, List[str]]],
74
- "dbnsfp_mutationtaster_pred": NotRequired[Union[str, List[str]]],
75
- "dbnsfp_sift_pred": NotRequired[Union[str, List[str]]],
76
- "sample_zygosity": NotRequired[Union[str, List[str]]],
77
- "sample_genotype": NotRequired[Union[str, List[str]]],
78
- "sample_filter": NotRequired[Union[str, List[str]]],
79
- "sample_vendsig": NotRequired[Union[str, List[str]]],
80
- "sequence_type": NotRequired[Union[str, List[str]]],
81
36
  "position": NotRequired[Union[str, List[str]]],
82
- "clinvar_near_variant": NotRequired[Union[str, List[str]]],
83
- "cosmic_near_variant": NotRequired[Union[str, List[str]]],
84
- "minimum_allele_frequency": NotRequired[Union[str, List[str]]],
85
- "maximum_allele_frequency": NotRequired[Union[str, List[str]]],
86
- "population_allele_frequency": NotRequired[Union[str, List[str]]],
87
- "exac_allele_frequency": NotRequired[Union[str, List[str]]],
88
- "exac_homozygous": NotRequired[Union[str, List[str]]],
89
- "dbnsfp_damaging_count": NotRequired[Union[str, List[str]]],
90
- "dbnsfp_damaging_predictor": NotRequired[Union[str, List[str]]],
91
- "dbnsfp_damaging_vote": NotRequired[Union[str, List[str]]],
92
- "dbnsfp_fathmm_rankscore": NotRequired[Union[str, List[str]]],
93
- "dbnsfp_mean_rankscore": NotRequired[Union[str, List[str]]],
94
- "dbnsfp_mean_rankscore_predictor": NotRequired[Union[str, List[str]]],
95
- "dbnsfp_mutationtaster_rankscore": NotRequired[Union[str, List[str]]],
96
- "dbnsfp_sift_rankscore": NotRequired[Union[str, List[str]]],
97
- "sample_allele_frequency": NotRequired[Union[str, List[str]]],
98
- "sample_quality": NotRequired[Union[str, List[str]]],
99
- "sample_read_depth": NotRequired[Union[str, List[str]]],
100
- "sample_alternate_read_depth": NotRequired[Union[str, List[str]]],
101
- "sample_reference_read_depth": NotRequired[Union[str, List[str]]],
102
37
  "nextPageToken": NotRequired[str],
103
38
  "pageSize": NotRequired[float],
39
+ "popAlleleFrequency": NotRequired[str],
40
+ "genesPair": NotRequired[str],
41
+ "clinvarSignificance": NotRequired[Union[str, List[str]]],
104
42
  },
105
43
  )
106
44
 
@@ -212,13 +150,6 @@ class GenomicsServiceClient(BaseClient):
212
150
  kwargs = {"target": "lambda://genomics-service:deployed", **(cfg or {})}
213
151
  super().__init__(**kwargs)
214
152
 
215
- async def get_variant_set(self, id: str):
216
- """Get a variant set by id"""
217
- res = await self.client.request(
218
- path=f"/v1/genomics/variantsets/{quote(id)}", method="GET"
219
- )
220
- return cast(AlphaResponse[GetVariantSetResponse], res)
221
-
222
153
  async def search_variants(self, body: SearchVariantsRequest):
223
154
  """Search for variants"""
224
155
  res = await self.client.request(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fountain-life-service-clients
3
- Version: 3.34.2
3
+ Version: 3.35.1
4
4
  Summary:
5
5
  License: UNLICENSED
6
6
  Author: Fountain Life
@@ -13,7 +13,8 @@ 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=folZvWiDFZltWqcle_4Ch-b_cg53Sw36oSjeeXZSkdY,8041
16
+ fountain_life_service_clients/ga4gh_service.py,sha256=SSFdYM_oW2ZATUOaZT_xjp3jlEJt7rR_ai2US6HolgI,989
17
+ fountain_life_service_clients/genomics_service.py,sha256=Xx5rhgzjEJfdNA_g0Je4xDo26NKZQiIuNC88cUI-v-s,4225
17
18
  fountain_life_service_clients/invitation_service.py,sha256=tKWgb-bGIwT4x3MWSLiVChQRaZURj43S6Uyrg3Lt7HA,2596
18
19
  fountain_life_service_clients/medical_results_service_results.py,sha256=L0clTifU4LWWKgBsIzEfelmkaICxG1_q8sHyrdA5es4,4876
19
20
  fountain_life_service_clients/member_notification_service.py,sha256=wRkgmUqAV59BV81c3Iwz7JxSTuOLagHrcJcXvMbdBco,1814
@@ -25,6 +26,6 @@ fountain_life_service_clients/rules_service.py,sha256=VxPYboYQmw--6Kn78RKu6_9as1
25
26
  fountain_life_service_clients/scheduler_service.py,sha256=IkwRns_QHh6fx1IZWEXZ35DeRiW7OHaROM5wjWubZm4,4440
26
27
  fountain_life_service_clients/survey_service.py,sha256=hxOl3gBDxEdjrsKcMCoPl9RxumQzRT-e4zTbEAA0Iq4,13343
27
28
  fountain_life_service_clients/user_service.py,sha256=rM9xcF-VzdLp9aDOhg1UbecX2VPPMxH9PlgpNpGdC18,4253
28
- fountain_life_service_clients-3.34.2.dist-info/METADATA,sha256=oaAiqWtnGu8Wh0Fl24HXsssry0-e7DThMvSWevjpqH0,1405
29
- fountain_life_service_clients-3.34.2.dist-info/WHEEL,sha256=M5asmiAlL6HEcOq52Yi5mmk9KmTVjY2RDPtO4p9DMrc,88
30
- fountain_life_service_clients-3.34.2.dist-info/RECORD,,
29
+ fountain_life_service_clients-3.35.1.dist-info/METADATA,sha256=2yt9wrkl01wmOW2ukRa-35SRQNETez_y4VZ8H9y5KkI,1405
30
+ fountain_life_service_clients-3.35.1.dist-info/WHEEL,sha256=M5asmiAlL6HEcOq52Yi5mmk9KmTVjY2RDPtO4p9DMrc,88
31
+ fountain_life_service_clients-3.35.1.dist-info/RECORD,,