Skip to content

Commit

Permalink
data
Browse files Browse the repository at this point in the history
  • Loading branch information
noriakis committed Mar 28, 2024
1 parent 5ea0265 commit 92ab840
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion R/NMF.R
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,11 @@ NMF <- function(stana, species, rank=3, target="KO", seed=53, method="snmf/r",

cat("Present feature per factor:", apply(basisMat!=0, 2, function(x) sum(x)), "\n")
stana@NMF[[species]] <- res
return(stana)
if (estimate & !nnlm_flag) {
return(list(stana, test))
} else {
return(stana)
}
}

#' plotStackedBarPlot
Expand Down
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ listToNV <- function(l) {
#' @export
#' @return ggplot
plotSNVInfo <- function(stana, sp) {
if (!is.null(stana@includeSNVID)[[sp]]) {cat_subtle("# The set SNV ID information is not used in this function\n")}
if (!is.null(stana@includeSNVID[[sp]])) {cat_subtle("# The set SNV ID information is not used in this function\n")}
d <- stana@snpsInfo[[sp]]
tbl <- data.frame(table(paste0(d$major_allele,"/",d$minor_allele)))
if ("locus_type" %in% colnames(d)) {
Expand Down
Binary file modified inst/extdata/sysdata.rda
Binary file not shown.
3 changes: 3 additions & 0 deletions man/consensusSeqGeneral.Rd

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

0 comments on commit 92ab840

Please sign in to comment.