Skip to content

Commit

Permalink
rename output cols
Browse files Browse the repository at this point in the history
  • Loading branch information
berntpopp committed Oct 9, 2023
1 parent 1c269b9 commit e3d90bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions analyses/functions/stringdb-functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ compute_protein_interactions <- function(protein_ids, refresh = FALSE,
# Sum the scores for each protein
summed_scores <- filtered_data %>%
group_by(protein1) %>%
summarise(sum_score = sum(combined_score)) %>%
summarise(interaction_sum_score = sum(combined_score)) %>%
ungroup()

# Percentile normalize the summed scores
summed_scores$normalized_score <- percent_rank(summed_scores$sum_score)
summed_scores$interaction_normalized_score <- percent_rank(summed_scores$interaction_sum_score)

# Create a string of interacting proteins and scores for each protein1
interaction_strings <- filtered_data %>%
Expand Down

0 comments on commit e3d90bb

Please sign in to comment.