fountain-life-service-clients 3.34.2__tar.gz → 3.35.1__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.
- {fountain_life_service_clients-3.34.2 → fountain_life_service_clients-3.35.1}/PKG-INFO +1 -1
- fountain_life_service_clients-3.35.1/fountain_life_service_clients/ga4gh_service.py +34 -0
- {fountain_life_service_clients-3.34.2 → fountain_life_service_clients-3.35.1}/fountain_life_service_clients/genomics_service.py +4 -73
- {fountain_life_service_clients-3.34.2 → fountain_life_service_clients-3.35.1}/pyproject.toml +1 -1
- {fountain_life_service_clients-3.34.2 → fountain_life_service_clients-3.35.1}/README.md +0 -0
- {fountain_life_service_clients-3.34.2 → fountain_life_service_clients-3.35.1}/fountain_life_service_clients/__init__.py +0 -0
- {fountain_life_service_clients-3.34.2 → fountain_life_service_clients-3.35.1}/fountain_life_service_clients/_base_client.py +0 -0
- {fountain_life_service_clients-3.34.2 → fountain_life_service_clients-3.35.1}/fountain_life_service_clients/account_service.py +0 -0
- {fountain_life_service_clients-3.34.2 → fountain_life_service_clients-3.35.1}/fountain_life_service_clients/account_service_policy_attributes.py +0 -0
- {fountain_life_service_clients-3.34.2 → fountain_life_service_clients-3.35.1}/fountain_life_service_clients/agents_api_service.py +0 -0
- {fountain_life_service_clients-3.34.2 → fountain_life_service_clients-3.35.1}/fountain_life_service_clients/ai_template_service.py +0 -0
- {fountain_life_service_clients-3.34.2 → fountain_life_service_clients-3.35.1}/fountain_life_service_clients/claimed_domains_service.py +0 -0
- {fountain_life_service_clients-3.34.2 → fountain_life_service_clients-3.35.1}/fountain_life_service_clients/cohorts_service.py +0 -0
- {fountain_life_service_clients-3.34.2 → fountain_life_service_clients-3.35.1}/fountain_life_service_clients/ehr_ingestion_wearables_api.py +0 -0
- {fountain_life_service_clients-3.34.2 → fountain_life_service_clients-3.35.1}/fountain_life_service_clients/ehr_service.py +0 -0
- {fountain_life_service_clients-3.34.2 → fountain_life_service_clients-3.35.1}/fountain_life_service_clients/email_service_email.py +0 -0
- {fountain_life_service_clients-3.34.2 → fountain_life_service_clients-3.35.1}/fountain_life_service_clients/email_service_sms.py +0 -0
- {fountain_life_service_clients-3.34.2 → fountain_life_service_clients-3.35.1}/fountain_life_service_clients/fhir_post_processor_service.py +0 -0
- {fountain_life_service_clients-3.34.2 → fountain_life_service_clients-3.35.1}/fountain_life_service_clients/fhir_search_service.py +0 -0
- {fountain_life_service_clients-3.34.2 → fountain_life_service_clients-3.35.1}/fountain_life_service_clients/file_service.py +0 -0
- {fountain_life_service_clients-3.34.2 → fountain_life_service_clients-3.35.1}/fountain_life_service_clients/invitation_service.py +0 -0
- {fountain_life_service_clients-3.34.2 → fountain_life_service_clients-3.35.1}/fountain_life_service_clients/medical_results_service_results.py +0 -0
- {fountain_life_service_clients-3.34.2 → fountain_life_service_clients-3.35.1}/fountain_life_service_clients/member_notification_service.py +0 -0
- {fountain_life_service_clients-3.34.2 → fountain_life_service_clients-3.35.1}/fountain_life_service_clients/member_operations_service_members.py +0 -0
- {fountain_life_service_clients-3.34.2 → fountain_life_service_clients-3.35.1}/fountain_life_service_clients/member_scheduling_service_scheduling_prompts.py +0 -0
- {fountain_life_service_clients-3.34.2 → fountain_life_service_clients-3.35.1}/fountain_life_service_clients/oauth_apps_service.py +0 -0
- {fountain_life_service_clients-3.34.2 → fountain_life_service_clients-3.35.1}/fountain_life_service_clients/patient_service.py +0 -0
- {fountain_life_service_clients-3.34.2 → fountain_life_service_clients-3.35.1}/fountain_life_service_clients/rules_service.py +0 -0
- {fountain_life_service_clients-3.34.2 → fountain_life_service_clients-3.35.1}/fountain_life_service_clients/scheduler_service.py +0 -0
- {fountain_life_service_clients-3.34.2 → fountain_life_service_clients-3.35.1}/fountain_life_service_clients/survey_service.py +0 -0
- {fountain_life_service_clients-3.34.2 → fountain_life_service_clients-3.35.1}/fountain_life_service_clients/user_service.py +0 -0
@@ -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
|
-
"
|
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(
|
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
|
File without changes
|