Skip to content

Commit

Permalink
enable single feature heatmaps #32
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichl authored Mar 6, 2025
1 parent dad6777 commit 4752861
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workflow/scripts/heatmap.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ rownames(adjp_df) <- adjp_df$feature
adjp_df$feature <- NULL

# subset dataframes according to feature list
lfc_df <- lfc_df[feature_list, ]
adjp_df <- adjp_df[feature_list, ]
lfc_df <- lfc_df[feature_list, ,drop = FALSE]
adjp_df <- adjp_df[feature_list, ,drop = FALSE]

# set NA values to 0 (NA because below LFC threshold during testing or filtering)
lfc_df[is.na(lfc_df)] <- 0
Expand Down

0 comments on commit 4752861

Please sign in to comment.