Skip to content

Commit

Permalink
🔖 v1.0.18
Browse files Browse the repository at this point in the history
  • Loading branch information
ShixiangWang committed Sep 15, 2020
1 parent 862c822 commit 5aed104
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# sigminer 1.0.18

- Fixed bugs when outputing only 1 signatures.
- Fixed label inverse bug in `add_labels()`, thanks to TaoTao for reporting.

# sigminer 1.0.17
Expand Down
4 changes: 4 additions & 0 deletions R/get_sig_exposure.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ get_sig_exposure <- function(Signature,
return(h)
} else {
h.norm <- apply(h, 2, function(x) x / sum(x))
if (nrow(h) == 1L) {
h.norm <- t(as.matrix(h.norm))
rownames(h.norm) <- rownames(h)
}
h.norm <- t(h.norm) %>%
as.data.frame() %>%
tibble::rownames_to_column(var = "sample") %>%
Expand Down
2 changes: 1 addition & 1 deletion R/get_sig_similarity.R
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ get_sig_similarity <- function(Signature, Ref = NULL,

if (set_order) {
all_matches <- unique(all_matches)
corMat <- corMat[, c(all_matches, setdiff(colnames(corMat), all_matches))]
corMat <- corMat[, c(all_matches, setdiff(colnames(corMat), all_matches)), drop = FALSE]
}

res <- list(
Expand Down
1 change: 1 addition & 0 deletions docs/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5aed104

Please sign in to comment.