seer-pas-sdk 0.3.4__py3-none-any.whl → 1.1.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.
- seer_pas_sdk/auth/auth.py +174 -15
- seer_pas_sdk/common/__init__.py +46 -5
- seer_pas_sdk/core/sdk.py +1474 -183
- seer_pas_sdk/core/unsupported.py +415 -223
- seer_pas_sdk/objects/__init__.py +1 -0
- seer_pas_sdk/objects/headers.py +144 -0
- seer_pas_sdk/objects/volcanoplot.py +3 -2
- {seer_pas_sdk-0.3.4.dist-info → seer_pas_sdk-1.1.0.dist-info}/METADATA +1 -2
- seer_pas_sdk-1.1.0.dist-info/RECORD +19 -0
- seer_pas_sdk-0.3.4.dist-info/RECORD +0 -18
- {seer_pas_sdk-0.3.4.dist-info → seer_pas_sdk-1.1.0.dist-info}/WHEEL +0 -0
- {seer_pas_sdk-0.3.4.dist-info → seer_pas_sdk-1.1.0.dist-info}/licenses/LICENSE.txt +0 -0
- {seer_pas_sdk-0.3.4.dist-info → seer_pas_sdk-1.1.0.dist-info}/top_level.txt +0 -0
seer_pas_sdk/objects/__init__.py
CHANGED
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
# headers.py
|
|
2
|
+
# # This file contains entity headers for the Seer PAS SDK.
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
PLATE_COLUMNS = [
|
|
6
|
+
"id",
|
|
7
|
+
"plate_name",
|
|
8
|
+
"plate_id",
|
|
9
|
+
"description",
|
|
10
|
+
"notes",
|
|
11
|
+
"created_by",
|
|
12
|
+
"created_timestamp",
|
|
13
|
+
"last_modified_by",
|
|
14
|
+
"last_modified_timestamp",
|
|
15
|
+
"space",
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
PROJECT_COLUMNS = [
|
|
19
|
+
"id",
|
|
20
|
+
"project_name",
|
|
21
|
+
"description",
|
|
22
|
+
"notes",
|
|
23
|
+
"created_by",
|
|
24
|
+
"created_timestamp",
|
|
25
|
+
"last_modified_by",
|
|
26
|
+
"last_modified_timestamp",
|
|
27
|
+
"plates",
|
|
28
|
+
"sampleTypes",
|
|
29
|
+
"space",
|
|
30
|
+
]
|
|
31
|
+
|
|
32
|
+
SAMPLE_COLUMNS = [
|
|
33
|
+
"id",
|
|
34
|
+
"plate_id",
|
|
35
|
+
"sample_name",
|
|
36
|
+
"sample_id",
|
|
37
|
+
"sample_type",
|
|
38
|
+
"species",
|
|
39
|
+
"description",
|
|
40
|
+
"notes",
|
|
41
|
+
"created_by",
|
|
42
|
+
"created_timestamp",
|
|
43
|
+
"last_modified_by",
|
|
44
|
+
"last_modified_timestamp",
|
|
45
|
+
"sample_receipt_date",
|
|
46
|
+
"sample_collection_date",
|
|
47
|
+
"condition",
|
|
48
|
+
"plate_name",
|
|
49
|
+
"biological_replicate",
|
|
50
|
+
"technical_replicate",
|
|
51
|
+
"well_location",
|
|
52
|
+
"control",
|
|
53
|
+
"space",
|
|
54
|
+
]
|
|
55
|
+
|
|
56
|
+
ANALYSIS_COLUMNS = [
|
|
57
|
+
"id",
|
|
58
|
+
"analysis_name",
|
|
59
|
+
"description",
|
|
60
|
+
"notes",
|
|
61
|
+
"analysis_protocol_id",
|
|
62
|
+
"analyzed_by",
|
|
63
|
+
"start_time",
|
|
64
|
+
"end_time",
|
|
65
|
+
"last_modified_by",
|
|
66
|
+
"last_modified_timestamp",
|
|
67
|
+
"status",
|
|
68
|
+
"result_folder",
|
|
69
|
+
"job_id",
|
|
70
|
+
"space",
|
|
71
|
+
"project_id",
|
|
72
|
+
"number_msdatafile",
|
|
73
|
+
"protein_group_count",
|
|
74
|
+
"single_protein_group_count",
|
|
75
|
+
"possible_protein_set_size",
|
|
76
|
+
"peptides_count",
|
|
77
|
+
"contains_control",
|
|
78
|
+
"job_log_stream_name",
|
|
79
|
+
"contains_sample",
|
|
80
|
+
"is_folder",
|
|
81
|
+
"folder_id",
|
|
82
|
+
"number_sample",
|
|
83
|
+
"total_file_size_mb",
|
|
84
|
+
"msdatafile_extensions",
|
|
85
|
+
"fasta",
|
|
86
|
+
]
|
|
87
|
+
|
|
88
|
+
ANALYSIS_PROTOCOL_COLUMNS = [
|
|
89
|
+
"id",
|
|
90
|
+
"analysis_protocol_name",
|
|
91
|
+
"analysis_type",
|
|
92
|
+
"version_number",
|
|
93
|
+
"description",
|
|
94
|
+
"notes",
|
|
95
|
+
"created_by",
|
|
96
|
+
"created_timestamp",
|
|
97
|
+
"parameter_file_path",
|
|
98
|
+
"species",
|
|
99
|
+
"alg_version",
|
|
100
|
+
"analysis_engine",
|
|
101
|
+
"offering_name",
|
|
102
|
+
"based_on",
|
|
103
|
+
"retired",
|
|
104
|
+
"use_normalization",
|
|
105
|
+
"pipeline_w_version",
|
|
106
|
+
"archived",
|
|
107
|
+
"last_modified_by",
|
|
108
|
+
"last_modified_timestamp",
|
|
109
|
+
"go_version",
|
|
110
|
+
"space",
|
|
111
|
+
"fasta",
|
|
112
|
+
]
|
|
113
|
+
|
|
114
|
+
MSRUN_COLUMNS = [
|
|
115
|
+
"id",
|
|
116
|
+
"raw_file_path",
|
|
117
|
+
"sample_id",
|
|
118
|
+
"sample_id_tracking",
|
|
119
|
+
"well_location",
|
|
120
|
+
"nanoparticle",
|
|
121
|
+
"nanoparticle_id",
|
|
122
|
+
"control",
|
|
123
|
+
"control_id",
|
|
124
|
+
"instrument_name",
|
|
125
|
+
"date_sample_prep",
|
|
126
|
+
"sample_volume",
|
|
127
|
+
"peptide_concentration",
|
|
128
|
+
"peptide_mass_sample",
|
|
129
|
+
"dilution_factor",
|
|
130
|
+
"kit_id",
|
|
131
|
+
"created_by",
|
|
132
|
+
"created_timestamp",
|
|
133
|
+
"last_modified_by",
|
|
134
|
+
"last_modified_timestamp",
|
|
135
|
+
"injection_timestamp",
|
|
136
|
+
"ms_instrument_sn",
|
|
137
|
+
"recon_volume",
|
|
138
|
+
"gradient",
|
|
139
|
+
"assay_product",
|
|
140
|
+
"method_set_id",
|
|
141
|
+
"assay_method_id",
|
|
142
|
+
"sample_tube_id",
|
|
143
|
+
"space",
|
|
144
|
+
]
|
|
@@ -147,14 +147,15 @@ class VolcanoPlotBuilder:
|
|
|
147
147
|
Returns:
|
|
148
148
|
dict: The row data
|
|
149
149
|
"""
|
|
150
|
-
|
|
150
|
+
if "gene" in data:
|
|
151
|
+
self.protein_gene_map[data[self.feature_type_index]] = data["gene"]
|
|
151
152
|
|
|
152
153
|
row = dict(
|
|
153
154
|
logFD=data["logFD"],
|
|
154
155
|
negativeLog10P=data["negativeLog10P"],
|
|
155
156
|
dataIndex=i,
|
|
156
157
|
rowID=json.dumps(data),
|
|
157
|
-
gene=data
|
|
158
|
+
gene=data.get("gene", ""),
|
|
158
159
|
group=self.get_contrast_group_string(data),
|
|
159
160
|
significant=self.get_significance_class(data),
|
|
160
161
|
euclideanDistance=self.calculate_euclidean_distance(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: seer-pas-sdk
|
|
3
|
-
Version:
|
|
3
|
+
Version: 1.1.0
|
|
4
4
|
Summary: SDK for Seer Proteograph Analysis Suite (PAS)
|
|
5
5
|
Author-email: Ryan Sun <rsun@seer.bio>
|
|
6
6
|
License:
|
|
@@ -194,7 +194,6 @@ License-File: LICENSE.txt
|
|
|
194
194
|
Requires-Dist: boto3>=1.26.152
|
|
195
195
|
Requires-Dist: botocore>=1.29.152
|
|
196
196
|
Requires-Dist: pandas>=2.0.1
|
|
197
|
-
Requires-Dist: numpy<2.0.0,>=1.5.3
|
|
198
197
|
Requires-Dist: PyJWT>=2.8.0
|
|
199
198
|
Requires-Dist: python-dotenv>=1.0.0
|
|
200
199
|
Requires-Dist: Requests>=2.31.0
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
seer_pas_sdk/__init__.py,sha256=Ie6atdmdBV-OmdHHXjhrGhdFGXiyP3JKhKrr3hyvSsA,563
|
|
2
|
+
seer_pas_sdk/auth/__init__.py,sha256=e_eM4jJnnyKUdg4Nggzi9ypt2MLWcEJ8CmCPkUaQDSs,23
|
|
3
|
+
seer_pas_sdk/auth/auth.py,sha256=_SI5CdEkfqfr4o5BQ79BuPbxGeI9p7tqxJd7mUqSAkI,8854
|
|
4
|
+
seer_pas_sdk/common/__init__.py,sha256=8r-xF0alzIdCRdtpQCWKs6pQFrOi9KYnO7EwP8Pm94A,23475
|
|
5
|
+
seer_pas_sdk/common/errors.py,sha256=4HFORWnaQQCMXRE8kwdsJWvQRB_3KFEZ7yMb391e4gA,142
|
|
6
|
+
seer_pas_sdk/common/groupanalysis.py,sha256=DxB-gbQfYzl7p9MTYWDIqghcH-IeakzdYdrRZrlIHek,1730
|
|
7
|
+
seer_pas_sdk/core/__init__.py,sha256=rxbKgg-Qe24OaxX2zyHHYPYgDCTEKE_-41bB2wvpvL4,25
|
|
8
|
+
seer_pas_sdk/core/sdk.py,sha256=OKN7z11hm0Uzx-1yO3YxiN4OCar_4tjDwpKQBjzXeD0,160092
|
|
9
|
+
seer_pas_sdk/core/unsupported.py,sha256=7iAY2vrOq49YNXLzSMrEOK3f9wJhpTx8UyGBjMymLxI,68919
|
|
10
|
+
seer_pas_sdk/objects/__init__.py,sha256=r-lY7axLTzToAI-Dme019YfcJLDe2ok1f_e6OQx3j64,130
|
|
11
|
+
seer_pas_sdk/objects/groupanalysis.py,sha256=x3D_5NmYBoPDilNCQqUoCFARIfIeUq4FBY3_N6u8tfM,994
|
|
12
|
+
seer_pas_sdk/objects/headers.py,sha256=RilNzB_Nhid3U8j93BxJYcRrgDmd_1bAuI0P465xd0g,2727
|
|
13
|
+
seer_pas_sdk/objects/platemap.py,sha256=8IvJPAecs_e_FyqibzhCw-O4zjCFnf-zMUp_5krTEsg,5864
|
|
14
|
+
seer_pas_sdk/objects/volcanoplot.py,sha256=lTrTOVg74nT3uo-P1edQJC1ZbdoiLMtQ3VJd9CnzmoM,9396
|
|
15
|
+
seer_pas_sdk-1.1.0.dist-info/licenses/LICENSE.txt,sha256=DVQuDIgE45qn836wDaWnYhSdxoLXgpRRKH4RuTjpRZQ,10174
|
|
16
|
+
seer_pas_sdk-1.1.0.dist-info/METADATA,sha256=wcrzQ-A0gt3XJV3_km9Cuo02K2wOUBoCJb2NFrmHwSc,13413
|
|
17
|
+
seer_pas_sdk-1.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
18
|
+
seer_pas_sdk-1.1.0.dist-info/top_level.txt,sha256=-2kZ-KFMGtXwr8H1O5llMKlcJ8gRKohEmrIvazXB61s,13
|
|
19
|
+
seer_pas_sdk-1.1.0.dist-info/RECORD,,
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
seer_pas_sdk/__init__.py,sha256=Ie6atdmdBV-OmdHHXjhrGhdFGXiyP3JKhKrr3hyvSsA,563
|
|
2
|
-
seer_pas_sdk/auth/__init__.py,sha256=e_eM4jJnnyKUdg4Nggzi9ypt2MLWcEJ8CmCPkUaQDSs,23
|
|
3
|
-
seer_pas_sdk/auth/auth.py,sha256=C9XQWg2dScHcvvypqnjmluRlH-GEuc4D9rYyG9_OnN0,2965
|
|
4
|
-
seer_pas_sdk/common/__init__.py,sha256=jA5qm-t9x3qXMp5Q6v7vV2kZdLw32-lnbtf0fPY4lIw,22482
|
|
5
|
-
seer_pas_sdk/common/errors.py,sha256=4HFORWnaQQCMXRE8kwdsJWvQRB_3KFEZ7yMb391e4gA,142
|
|
6
|
-
seer_pas_sdk/common/groupanalysis.py,sha256=DxB-gbQfYzl7p9MTYWDIqghcH-IeakzdYdrRZrlIHek,1730
|
|
7
|
-
seer_pas_sdk/core/__init__.py,sha256=rxbKgg-Qe24OaxX2zyHHYPYgDCTEKE_-41bB2wvpvL4,25
|
|
8
|
-
seer_pas_sdk/core/sdk.py,sha256=NHhUCxuhea_KhCd3FLpojCwkOZDIZuvjU7K52h695KY,108508
|
|
9
|
-
seer_pas_sdk/core/unsupported.py,sha256=XAPZ3tidqjnsgftf3NUdTGIzvnsjHy0e_eGRCAo6GPo,59890
|
|
10
|
-
seer_pas_sdk/objects/__init__.py,sha256=HJLS6sOr7DfzdI14fv5dWcITEj5QQsKcdfED3YNvUrY,107
|
|
11
|
-
seer_pas_sdk/objects/groupanalysis.py,sha256=x3D_5NmYBoPDilNCQqUoCFARIfIeUq4FBY3_N6u8tfM,994
|
|
12
|
-
seer_pas_sdk/objects/platemap.py,sha256=8IvJPAecs_e_FyqibzhCw-O4zjCFnf-zMUp_5krTEsg,5864
|
|
13
|
-
seer_pas_sdk/objects/volcanoplot.py,sha256=tKuCWDIdoO8FLJlhpXhuwHn0aMYnvudTugxAslDXyGs,9357
|
|
14
|
-
seer_pas_sdk-0.3.4.dist-info/licenses/LICENSE.txt,sha256=DVQuDIgE45qn836wDaWnYhSdxoLXgpRRKH4RuTjpRZQ,10174
|
|
15
|
-
seer_pas_sdk-0.3.4.dist-info/METADATA,sha256=QuSAislG3NV9SE66n1xNF4Kf7Nk704jSEPCyefSoP_E,13448
|
|
16
|
-
seer_pas_sdk-0.3.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
17
|
-
seer_pas_sdk-0.3.4.dist-info/top_level.txt,sha256=-2kZ-KFMGtXwr8H1O5llMKlcJ8gRKohEmrIvazXB61s,13
|
|
18
|
-
seer_pas_sdk-0.3.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|