Saving results
Module to implement Mixin to get results as a shared state.
SavePipelineResults
Bases: AggPassOnResults
Mixin class to save pipeline results.
Attributes:
Name | Type | Description |
---|---|---|
local_adata |
AnnData
|
Local AnnData object. |
results |
dict
|
Results to share. |
VARM_KEYS |
list
|
List of keys to extract from the varm attribute. |
UNS_KEYS |
list
|
List of keys to extract from the uns attribute. |
Methods:
Name | Description |
---|---|
save_pipeline_results |
Save the pipeline results. These results will be downloaded at the end of the pipeline. They are defined using the VARM_KEYS and UNS_KEYS attributes. |
get_results_from_local_states |
Get the results to share from the local states. |
Source code in fedpydeseq2/core/deseq2_core/save_pipeline_results.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 |
|
get_results_from_local_states(data_from_opener, shared_state)
Get the results to share from the local states.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_from_opener
|
AnnData
|
AnnData returned by the opener. Not used. |
required |
shared_state
|
dict
|
Not used. |
required |
Returns:
Type | Description |
---|---|
dict
|
Shared state containing the gene names, as well as selected fields from the varm and uns attributes. |
Source code in fedpydeseq2/core/deseq2_core/save_pipeline_results.py
save_pipeline_results(train_data_nodes, aggregation_node, local_states, round_idx, clean_models)
Build the results that will be downloaded at the end of the pipeline.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
train_data_nodes
|
List of TrainDataNode. |
required | |
aggregation_node
|
The aggregation node. |
required | |
local_states
|
Local states. Required to propagate intermediate results. |
required | |
round_idx
|
Index of the current round. |
required | |
clean_models
|
Whether to clean the models after the computation. |
required |