Skip to content

Commit

Permalink
update mummer_alignment to print message when error
Browse files Browse the repository at this point in the history
  • Loading branch information
nvelden committed Dec 20, 2024
1 parent 51f22bd commit 91662fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion R/cluster_blast.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ get_protein_combinations <- function(data, cluster_pair, rowIDs = NULL) {
#' patterns <- c("ACDEFGHIKLMNPQRSTVWY", "ACDGFHIKLMNPQRSTVWY")
#' subjects <- c("ACDEFGHIKLMNPQRSTVWY", "TCDGFHIKLMNPQRSTVWY")
#' result <- compute_identity(patterns, subjects)
#' print(result)
#'
#' @noRd
compute_identity <- function(patterns, subjects) {
Expand Down
3 changes: 2 additions & 1 deletion R/mummer_alignment.R
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ mummer_alignment <- function(
return(coords)

}, error = function(e) {
cat(sprintf("Error in aligning %s vs %s: %s\n", pair[1], pair[2], e$message))
warning(sprintf("Error in aligning %s vs %s: %s", pair[1], pair[2], e$message))
return(NULL)
})
})

Expand Down

0 comments on commit 91662fa

Please sign in to comment.