Skip to content

Commit

Permalink
Update utils.R
Browse files Browse the repository at this point in the history
  • Loading branch information
zktuong committed Dec 6, 2023
1 parent 3f90fb4 commit 55913f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,8 @@ SPECIAL_SEP <- paste0(rep(DEFAULT_SEP, 3), collapse = "")
.swap_ligand_receptor <- function(df) {
is_r_a <- as.logical(df$receptor_a)
is_r_b <- as.logical(df$receptor_b)
lg <- df$ligand
rp <- df$receptor
lg <- gsub(paste0(".*", SPECIAL_SEP), "", df$ligand)
rp <- gsub(paste0(".*", SPECIAL_SEP), "", df$receptor)
from <- df$from
to <- df$to
prd <- df$producer
Expand Down

0 comments on commit 55913f7

Please sign in to comment.