sapiopycommons 2024.10.25a345__py3-none-any.whl → 2024.10.29a346__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.
Potentially problematic release.
This version of sapiopycommons might be problematic. Click here for more details.
- sapiopycommons/chem/IndigoMolecules.py +0 -1
- sapiopycommons/chem/Molecules.py +19 -77
- sapiopycommons/customreport/custom_report_builder.py +9 -4
- sapiopycommons/datatype/data_fields.py +61 -0
- sapiopycommons/eln/experiment_handler.py +13 -3
- sapiopycommons/eln/experiment_report_util.py +438 -30
- sapiopycommons/general/aliases.py +16 -9
- sapiopycommons/multimodal/multimodal_data.py +3 -6
- sapiopycommons/processtracking/custom_workflow_handler.py +406 -0
- sapiopycommons/webhook/webhook_context.py +39 -0
- {sapiopycommons-2024.10.25a345.dist-info → sapiopycommons-2024.10.29a346.dist-info}/METADATA +1 -1
- {sapiopycommons-2024.10.25a345.dist-info → sapiopycommons-2024.10.29a346.dist-info}/RECORD +14 -13
- sapiopycommons/flowcyto/flow_cyto.py +0 -77
- sapiopycommons/flowcyto/flowcyto_data.py +0 -75
- {sapiopycommons-2024.10.25a345.dist-info → sapiopycommons-2024.10.29a346.dist-info}/WHEEL +0 -0
- {sapiopycommons-2024.10.25a345.dist-info → sapiopycommons-2024.10.29a346.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import base64
|
|
2
|
-
from enum import Enum
|
|
3
|
-
|
|
4
|
-
from databind.core.dataclasses import dataclass
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
class ChannelStatisticType(Enum):
|
|
8
|
-
"""
|
|
9
|
-
All supported channel statistics type.
|
|
10
|
-
"""
|
|
11
|
-
MEAN = "(Mean) MFI"
|
|
12
|
-
MEDIAN = "(Median) MFI"
|
|
13
|
-
STD_EV = "Std. Dev."
|
|
14
|
-
COEFFICIENT_OF_VARIATION = "CV"
|
|
15
|
-
|
|
16
|
-
display_name: str
|
|
17
|
-
|
|
18
|
-
def __init__(self, display_name: str):
|
|
19
|
-
self.display_name = display_name
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
@dataclass
|
|
23
|
-
class ChannelStatisticsParameterJSON:
|
|
24
|
-
channelNameList: list[str]
|
|
25
|
-
statisticsType: ChannelStatisticType
|
|
26
|
-
|
|
27
|
-
def __init__(self, channel_name_list: list[str], stat_type: ChannelStatisticType):
|
|
28
|
-
self.channelNameList = channel_name_list
|
|
29
|
-
self.statisticsType = stat_type
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
@dataclass
|
|
33
|
-
class ComputeFlowStatisticsInputJson:
|
|
34
|
-
fcsFileRecordIdList: list[int]
|
|
35
|
-
statisticsParameterList: list[ChannelStatisticsParameterJSON]
|
|
36
|
-
|
|
37
|
-
def __init__(self, fcs_file_record_id_list: list[int], statistics_parameter_list: list[ChannelStatisticsParameterJSON]):
|
|
38
|
-
self.fcsFileRecordIdList = fcs_file_record_id_list
|
|
39
|
-
self.statisticsParameterList = statistics_parameter_list
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
@dataclass
|
|
43
|
-
class FlowJoWorkspaceInputJson:
|
|
44
|
-
filePath: str
|
|
45
|
-
base64Data: str
|
|
46
|
-
|
|
47
|
-
def __init__(self, filePath: str, file_data: bytes):
|
|
48
|
-
self.filePath = filePath
|
|
49
|
-
self.base64Data = base64.b64encode(file_data).decode('utf-8')
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
@dataclass
|
|
53
|
-
class UploadFCSInputJson:
|
|
54
|
-
"""
|
|
55
|
-
Request to upload new FCS file
|
|
56
|
-
Attributes:
|
|
57
|
-
filePath: The file name of the FCS file to be uploaded. For FlowJo workspace, this is important to match the file in group (via file names).
|
|
58
|
-
attachmentDataType: the attachment data type that contains already-uploaded FCS data.
|
|
59
|
-
attachmentRecordId: the attachment record ID that contains already-uploaded FCS data.
|
|
60
|
-
associatedRecordDataType: the "parent" association for the FCS. Can either be a workspace or a sample record.
|
|
61
|
-
associatedRecordId: the "parent" association for the FCS. Can either be a workspace or a sample record.
|
|
62
|
-
"""
|
|
63
|
-
filePath: str
|
|
64
|
-
attachmentDataType: str
|
|
65
|
-
attachmentRecordId: int
|
|
66
|
-
associatedRecordDataType: str
|
|
67
|
-
associatedRecordId: int
|
|
68
|
-
|
|
69
|
-
def __init__(self, associated_record_data_type: str, associated_record_id: int,
|
|
70
|
-
file_path: str, attachment_data_type: str, attachment_record_id: int):
|
|
71
|
-
self.filePath = file_path
|
|
72
|
-
self.attachmentDataType = attachment_data_type
|
|
73
|
-
self.attachmentRecordId = attachment_record_id
|
|
74
|
-
self.associatedRecordDataType = associated_record_data_type
|
|
75
|
-
self.associatedRecordId = associated_record_id
|
|
File without changes
|
{sapiopycommons-2024.10.25a345.dist-info → sapiopycommons-2024.10.29a346.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|