@@ -2016,29 +2016,24 @@ def update_results_with_suffix(current_results, new_results, suffix):
2016
2016
if sum_matrices and sum_matrices != 'none' :
2017
2017
# Sum up multiple matrices
2018
2018
sums = {}
2019
- updated_prefixes = []
2020
2019
if sum_matrices == 'cell' or sum_matrices == 'total' :
2021
2020
sums ['cell' ] = do_sum_matrices (
2022
2021
count_result [prefixes .index ('processed' )]['mtx' ],
2023
2022
count_result [prefixes .index ('ambiguous' )]['mtx' ],
2024
2023
f'{ counts_prefix } .cell.mtx' , em or mm
2025
2024
)
2026
- updated_prefixes = ['cell' , 'unprocessed' ]
2027
2025
if sum_matrices == 'nucleus' or sum_matrices == 'total' :
2028
2026
sums ['nucleus' ] = do_sum_matrices (
2029
2027
count_result [prefixes .index ('unprocessed' )]['mtx' ],
2030
2028
count_result [prefixes .index ('ambiguous' )]['mtx' ],
2031
2029
f'{ counts_prefix } .nucleus.mtx' , em or mm
2032
2030
)
2033
- updated_prefixes = ['processed' , 'nucleus' ]
2034
2031
if sum_matrices == 'total' :
2035
2032
sums ['total' ] = do_sum_matrices (
2036
2033
f'{ counts_prefix } .mature.mtx' ,
2037
2034
f'{ counts_prefix } .nucleus.mtx' ,
2038
2035
f'{ counts_prefix } .total.mtx' , em or mm
2039
2036
)
2040
- updated_prefixes = prefixes
2041
- prefixes = updated_prefixes
2042
2037
for prefix , f in sums .items ():
2043
2038
res = copy .deepcopy (count_result [0 ])
2044
2039
res ['mtx' ] = f
@@ -2184,29 +2179,24 @@ def update_results_with_suffix(current_results, new_results, suffix):
2184
2179
if sum_matrices and sum_matrices != 'none' :
2185
2180
# Sum up multiple matrices
2186
2181
sums = {}
2187
- updated_prefixes = []
2188
2182
if sum_matrices == 'cell' or sum_matrices == 'total' :
2189
2183
sums ['cell' ] = do_sum_matrices (
2190
2184
count_result [prefixes .index ('processed' )]['mtx' ],
2191
2185
count_result [prefixes .index ('ambiguous' )]['mtx' ],
2192
2186
f'{ filtered_counts_prefix } .cell.mtx' , em or mm
2193
2187
)
2194
- updated_prefixes = ['cell' , 'unprocessed' ]
2195
2188
if sum_matrices == 'nucleus' or sum_matrices == 'total' :
2196
2189
sums ['nucleus' ] = do_sum_matrices (
2197
2190
count_result [prefixes .index ('unprocessed' )]['mtx' ],
2198
2191
count_result [prefixes .index ('ambiguous' )]['mtx' ],
2199
2192
f'{ filtered_counts_prefix } .nucleus.mtx' , em or mm
2200
2193
)
2201
- updated_prefixes = ['processed' , 'nucleus' ]
2202
2194
if sum_matrices == 'total' :
2203
2195
sums ['total' ] = do_sum_matrices (
2204
2196
f'{ filtered_counts_prefix } .mature.mtx' ,
2205
2197
f'{ filtered_counts_prefix } .nucleus.mtx' ,
2206
2198
f'{ filtered_counts_prefix } .total.mtx' , em or mm
2207
2199
)
2208
- updated_prefixes = prefixes
2209
- prefixes = updated_prefixes
2210
2200
for prefix , f in sums .items ():
2211
2201
res = copy .deepcopy (count_result [0 ])
2212
2202
res ['mtx' ] = f
0 commit comments