Skip to content

Commit

Permalink
fix show(),cc
Browse files Browse the repository at this point in the history
  • Loading branch information
lgatto committed Mar 19, 2024
1 parent b0dc449 commit dddc179
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: PSMatch
Title: Handling and Managing Peptide Spectrum Matches
Version: 1.7.1
Version: 1.7.2
Authors@R:
c(person(given = "Laurent", family = "Gatto",
email = "[email protected]",
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# PSMatch 1.7

## PSMatch 1.7.2

- Fix connected component dim names in `show()`.

## PSMatch 1.7.1

- In `addFragments()` use `...` to pass parameters to
Expand Down
2 changes: 1 addition & 1 deletion R/ConnectedComponent-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ setMethod("show", "ConnectedComponents",
cat(sprintf("An instance of class %s", class(object)), "\n")
cat(" Number of proteins:", nrow(ccMatrix(object)), "\n")
cat(" Number of components:", length(connectedComponents(object)), "\n")
cat(" Number of components [peptide x peptides]:\n ")
cat(" Number of components [peptide x proteins]:\n ")
dim_mat <- dims(object)
cat(paste0(sum(dim_mat[, 1] == 1 & dim_mat[, 2] == 1), "[1 x 1] "))
cat(paste0(sum(dim_mat[, 1] == 1 & dim_mat[, 2] > 1), "[1 x n] "))
Expand Down

0 comments on commit dddc179

Please sign in to comment.