Skip to content

Commit

Permalink
fixed a bug in getTopFeatures()
Browse files Browse the repository at this point in the history
  • Loading branch information
QingfeiPan committed Nov 13, 2024
1 parent 07ffa04 commit a2d02bc
Show file tree
Hide file tree
Showing 64 changed files with 501 additions and 261 deletions.
2 changes: 1 addition & 1 deletion R/differential_analysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ getTopFeatures <- function(input_table,
for (i in 1:length(grps)) {
table.sel <- input_table.sorted[input_table.sorted[, group_by] %in% c(grps[i]), , drop = FALSE]
if (nrow(table.sel) >= number) {
if (i == 1) {table_res <- table.sel[c(1:number),]} else {table_res <- rbind(table_res, table.sel[number,])}
if (i == 1) {table_res <- table.sel[c(1:number),]} else {table_res <- rbind(table_res, table.sel[c(1:number),])}
} else {
if (i == 1) {table_res <- table.sel} else {table_res <- rbind(table_res, table.sel)}
}
Expand Down
13 changes: 5 additions & 8 deletions R/network_analysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -396,15 +396,12 @@ generateSJARACNeInput <- function(input_eset,
#'
#' @examples
#' \dontrun{
#' ## 1. assess the quality of network from network files
#' drawNetworkQC(network_file = /project_space/SJARACNE/B/SIG/b100/consensus_network_ncol_.txt, generate_html = TRUE)
#' drawNetworkQC(network_file = /project_space/SJARACNE/B/SIG/b100/consensus_network_ncol_.txt, generate_html = TRUE,
#' outdir = "/path-to-cutomized-folder")
#' drawNetworkQC(network_file = /project_space/SJARACNE/B/SIG/b100/consensus_network_ncol_.txt, generate_html = TRUE,
#' prefix = "PBMC14")
#' ## 1. Assess the quality of network from network files
#' drawNetworkQC(network_file = "/project_space/SJARACNE/B/SIG/b100/consensus_network_ncol_.txt", generate_html = TRUE,
#' outdir = "/folder-to-save-report_file", prefix = "PBMC14")
#'
#' ## 2. assess the quality of network from the directory of network files
#' drawNetworkQC(sjaracne_dir = /project_space/SJARACNE, generate_html = TRUE)
#' ## 2. Assess the quality of network from the directory of network files
#' drawNetworkQC(sjaracne_dir = "/project_space/SJARACNE", generate_html = TRUE)
#' }
#'
drawNetworkQC <- function(network_file = NULL,
Expand Down
2 changes: 1 addition & 1 deletion docs/404.html

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

2 changes: 1 addition & 1 deletion docs/LICENSE.html

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

2 changes: 1 addition & 1 deletion docs/articles/index.html

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

50 changes: 25 additions & 25 deletions docs/articles/quick_tutorial.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/authors.html

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

2 changes: 1 addition & 1 deletion docs/index.html

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

8 changes: 8 additions & 0 deletions docs/pkgdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,11 @@ async function searchFuse(query, callback) {
});
});
})(window.jQuery || window.$)

document.addEventListener('keydown', function(event) {
// Check if the pressed key is '/'
if (event.key === '/') {
event.preventDefault(); // Prevent any default action associated with the '/' key
document.getElementById('search-input').focus(); // Set focus to the search input
}
});
4 changes: 2 additions & 2 deletions docs/pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
pandoc: 3.1.11
pkgdown: 2.1.0
pkgdown: 2.1.1
pkgdown_sha: ~
articles:
quick_tutorial: quick_tutorial.html
last_built: 2024-09-20T19:02Z
last_built: 2024-11-13T18:54Z
urls:
reference: https://jyyulab.github.io/scMINER/reference
article: https://jyyulab.github.io/scMINER/articles
2 changes: 1 addition & 1 deletion docs/reference/MICAplot.html

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

2 changes: 1 addition & 1 deletion docs/reference/SparseExpressionSet-class.html

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

5 changes: 2 additions & 3 deletions docs/reference/addMICAoutput.html

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

12 changes: 9 additions & 3 deletions docs/reference/cal_Activity.html

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

10 changes: 6 additions & 4 deletions docs/reference/combinePvalVector.html

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

Loading

0 comments on commit a2d02bc

Please sign in to comment.