Skip to content

Commit 91662fa

Browse files
committed
update mummer_alignment to print message when error
1 parent 51f22bd commit 91662fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

R/cluster_blast.R

-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ get_protein_combinations <- function(data, cluster_pair, rowIDs = NULL) {
6868
#' patterns <- c("ACDEFGHIKLMNPQRSTVWY", "ACDGFHIKLMNPQRSTVWY")
6969
#' subjects <- c("ACDEFGHIKLMNPQRSTVWY", "TCDGFHIKLMNPQRSTVWY")
7070
#' result <- compute_identity(patterns, subjects)
71-
#' print(result)
7271
#'
7372
#' @noRd
7473
compute_identity <- function(patterns, subjects) {

R/mummer_alignment.R

+2-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ mummer_alignment <- function(
173173
return(coords)
174174

175175
}, error = function(e) {
176-
cat(sprintf("Error in aligning %s vs %s: %s\n", pair[1], pair[2], e$message))
176+
warning(sprintf("Error in aligning %s vs %s: %s", pair[1], pair[2], e$message))
177+
return(NULL)
177178
})
178179
})
179180

0 commit comments

Comments
 (0)