5555 max : .inf
5656 # Whether a higher value represents a 'better' solution (required)
5757 maximize : false
58-
59- # A unique identifier for your metric (required).
60- # Can contain only lowercase letters or underscores.
61- - name : emd_max_ct_horiz
62- # A relatively short label, used when rendering visualisarions (required)
63- label : EMD Max CT Horizontal
64- # A one sentence summary of how this metric works (required). Used when
65- # rendering summary tables.
66- summary : " Max Earth Mover Distance calculated horizontally across donors for each cell type and marker."
67- # A multi-line description of how this component works (required). Used
68- # when rendering reference documentation.
69- description : |
70- Earth Mover Distance (EMD), also known as the Wasserstein metric, measures the difference
71- between two probability distributions.
72-
73- Here, EMD is used to compare marker expression distributions between paired samples from the same donor
74- quantified across two different batches.
75- For each paired sample, cell type, and marker, the marker expression values are first converted into
76- probability distributions.
77- This is done by binning the expression values into a range from -100 to 100 with a bin width of 0.1.
78- The `wasserstein_distance` function from SciPy is then used to calculate the EMD between the two
79- probability distributions belonging to the same cell type, marker, and a given paired samples.
80- This is then repeated for every cell type, marker, and paired sample.
81- Finally, the maximum of all these EMD values is computed and reported as the metric score.
82-
83- EMD Max CT score reflects the largest difference in marker expression distributions across all cell types,
84- markers, and paired samples.
85- A high score indicates that at least one marker, cell type, or sample pair has a large difference in
86- distribution after batch integration.
87- A low score means that even the most poorly corrected marker expression is well integrated across batches.
88- references :
89- doi :
90- - 10.1023/A:1026543900054
91- links :
92- # URL to the documentation for this metric (required).
93- documentation : https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.wasserstein_distance.html
94- # URL to the code repository for this metric (required).
95- repository : https://github.com/scipy/scipy
96- # The minimum possible value for this metric (required)
97- min : 0
98- # The maximum possible value for this metric (required)
99- max : .inf
100- # Whether a higher value represents a 'better' solution (required)
101- maximize : false
10258
10359 # A unique identifier for your metric (required).
10460 # Can contain only lowercase letters or underscores.
@@ -140,47 +96,6 @@ info:
14096 max : .inf
14197 # Whether a higher value represents a 'better' solution (required)
14298 maximize : false
143-
144- # A unique identifier for your metric (required).
145- # Can contain only lowercase letters or underscores.
146- - name : emd_max_ct_vert
147- # A relatively short label, used when rendering visualisarions (required)
148- label : EMD Max CT Vertical
149- # A one sentence summary of how this metric works (required). Used when
150- # rendering summary tables.
151- summary : " Max Earth Mover Distance across batch corrected samples, cell types, and markers."
152- # A multi-line description of how this component works (required). Used
153- # when rendering reference documentation.
154- description : |
155- Earth Mover Distance (EMD), also known as the Wasserstein metric, measures the difference
156- between two probability distributions.
157-
158- Here, EMD is used to compare marker expression distributions between all integrated
159- samples from the same group.
160- For each pair of samples, cell type, and marker, the marker expression values are first converted into
161- probability distributions.
162- This is done by binning the expression values into a range from -100 to 100 with a bin width of 0.1.
163- The `wasserstein_distance` function from SciPy is then used to calculate the EMD between the two
164- probability distributions belonging to the same cell type, marker, and a given paired samples.
165- This is then repeated for every cell type, marker, and paired sample.
166- Finally, the maximum of all these EMD values is computed and reported as the metric score.
167-
168- A high score indicates there is a pair of samples and marker which show large difference in distribution after batch integration.
169- A low score means that, the worst integrated pair of samples and marker are well integrated.
170- references :
171- doi :
172- - 10.1023/A:1026543900054
173- links :
174- # URL to the documentation for this metric (required).
175- documentation : https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.wasserstein_distance.html
176- # URL to the code repository for this metric (required).
177- repository : https://github.com/scipy/scipy
178- # The minimum possible value for this metric (required)
179- min : 0
180- # The maximum possible value for this metric (required)
181- max : .inf
182- # Whether a higher value represents a 'better' solution (required)
183- maximize : false
18499
185100# Resources required to run the component
186101resources :
@@ -203,4 +118,4 @@ runners:
203118 # Allows turning the component into a Nextflow module / pipeline.
204119 - type : nextflow
205120 directives :
206- label : [midtime,midmem,midcpu ]
121+ label : [lowtime,lowmem,lowcpu ]
0 commit comments