Skip to content

Commit

Permalink
Merge pull request #21 from bento-platform/fix/tpm_notmalization
Browse files Browse the repository at this point in the history
fix: normalization TPM
  • Loading branch information
v-rocheleau authored Feb 4, 2025
2 parents 378ca3e + 3d0eebe commit 53aac3f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions transcriptomics_data_service/routers/normalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,10 @@ async def _update_normalized_values(
)
raw_count_dict = {(expr.gene_code, expr.sample_id): expr.raw_count for expr in existing_expressions}

normalized_df = normalized_df.reset_index().melt(
id_vars="GeneID", var_name="SampleID", value_name="NormalizedValue"
normalized_df = (
normalized_df.reset_index()
.melt(id_vars="GeneID", var_name="SampleID", value_name="NormalizedValue")
.dropna(subset=["NormalizedValue"])
)

expressions = []
Expand Down

0 comments on commit 53aac3f

Please sign in to comment.