Skip to content

Commit

Permalink
fix line wrap issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ahl27 committed Oct 17, 2024
1 parent 821bc8f commit cb4b19c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/letterFrequency.R
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,8 @@ setMethod("consensusMatrix", "XStringSet",
removeUnused <- FALSE
}
if(length(x) == 0){
ans <- matrix(ifelse(as.prob, 0, 0L), nrow=0, ncol=ifelse(removeUnused, 0, length(codes)))
ans <- matrix(ifelse(as.prob, 0, 0L), nrow=0,
ncol=ifelse(removeUnused, 0, length(codes)))
if(!removeUnused) colnames(ans) <- names(codes)
} else {
ans <- .Call2("XStringSet_consensus_matrix",
Expand Down

0 comments on commit cb4b19c

Please sign in to comment.