Skip to content

Commit

Permalink
warning as intended
Browse files Browse the repository at this point in the history
  • Loading branch information
dbdimitrov committed Feb 24, 2023
1 parent 0167d37 commit ab70b34
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions R/liana_tensor.R
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,6 @@ liana_tensor_c2c <- function(sce=NULL,
receptor_col = "receptor.complex",
...){

if(is.null(context_df_dict)){
context_df_dict <- sce@metadata$liana_res
}

if(is.null(context_df_dict) & is.null(sce)){
stop("Please provide a valid `sce` OR `context_df_dict` object")
}
Expand All @@ -139,10 +135,13 @@ liana_tensor_c2c <- function(sce=NULL,
)
}

if(is.null(context_df_dict)){
context_df_dict <- sce@metadata$liana_res
}

# Deal with rank
rank <- if(is.null(rank)){ NULL } else {as.integer(rank)}


c2c_available <-
# Load correct conda env
if(!is.null(conda_env)){
Expand Down

0 comments on commit ab70b34

Please sign in to comment.