diff --git a/3rd-party-tools/star-merge-npz/scripts/combine_shard_metrics.py b/3rd-party-tools/star-merge-npz/scripts/combine_shard_metrics.py index d0653686..326b2218 100644 --- a/3rd-party-tools/star-merge-npz/scripts/combine_shard_metrics.py +++ b/3rd-party-tools/star-merge-npz/scripts/combine_shard_metrics.py @@ -93,8 +93,8 @@ def merge_matrices(summary_file, align_file, cell_reads, counting_mode, uniform_ total_genes_unique_detected = len(unique_rows) - percent_target = estimated_cells/expected_cells - percent_intronic_reads = reads_mapped_confidently_to_intronic_regions/n_reads + percent_target = estimated_cells/expected_cells*100 + percent_intronic_reads = reads_mapped_confidently_to_intronic_regions/n_reads*100 data = { "number_of_reads": [n_reads], diff --git a/tools/scripts/add_library_tso_doublets.py b/tools/scripts/add_library_tso_doublets.py index 60f956ce..27fead1f 100755 --- a/tools/scripts/add_library_tso_doublets.py +++ b/tools/scripts/add_library_tso_doublets.py @@ -127,8 +127,8 @@ def process_gex_data(gex_h5ad_modified, gex_nhash_id, library_csv, input_id, dou dictionary['keeper_cells'] = keeper_cells dictionary['keeper_mean_reads_per_cell'] = keeper_mean_reads_per_cell dictionary['keeper_median_genes'] = keeper_median_genes - dictionary['percent_keeper'] = percent_keeper - dictionary['percent_usable'] = percent_usable + dictionary['percent_keeper'] = percent_keeper*100 + dictionary['percent_usable'] = percent_usable*100 new_dictionary = {"NHashID": [gex_nhash_id]} # This line is fine, it already has a list # Update other scalar values to lists