Skip to content

Commit

Permalink
updated percents to actual percents
Browse files Browse the repository at this point in the history
  • Loading branch information
ekiernan committed Sep 21, 2024
1 parent 8d2d663 commit ef9e2ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
4 changes: 2 additions & 2 deletions tools/scripts/add_library_tso_doublets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ef9e2ff

Please sign in to comment.