Skip to content

Commit

Permalink
argument row_order removed
Browse files Browse the repository at this point in the history
  • Loading branch information
cparsania committed Jul 31, 2024
1 parent 7798de9 commit 65a6f53
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 19 deletions.
13 changes: 2 additions & 11 deletions R/chip_related.R
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,6 @@ import_topn_bed_features <- function(bed_feature_file,topn = 5000, center = TRUE
#' @param heatmap_axis_name_rot internally passed to \code{axis_name_rot} argument of [EnrichedHeatmap::EnrichedHeatmap()].
#' @param heatmap_axis_name_gp internally passed to \code{axis_name_gp} argument of [EnrichedHeatmap::EnrichedHeatmap()].
#' @param heatmap_border internally passed to \code{border} argument of [EnrichedHeatmap::EnrichedHeatmap()].
#' @param row_order internally passed to \code{row_order} argument of [EnrichedHeatmap::EnrichedHeatmap()].
#'
#' @return a HeatmapList.
#' @export
Expand All @@ -298,7 +297,6 @@ import_topn_bed_features <- function(bed_feature_file,topn = 5000, center = TRUE
#' }
#'
make_enriched_heatmap_list <- function(x,
row_order = NULL,
cluster_targets_by_rpm = TRUE,
cluster_by = NULL,
n_clust = 2,
Expand Down Expand Up @@ -401,9 +399,7 @@ make_enriched_heatmap_list <- function(x,
pos_line = heatmap_pos_line,
pos_line_gp = heatmap_pos_line_gp,
axis_name_rot = heatmap_axis_name_rot,
border = heatmap_border,
row_order = ifelse(is.null(row_order),
order(enriched_score(assays(x)[[..1]]), decreasing = TRUE), row_order)))
border = heatmap_border))



Expand All @@ -430,13 +426,8 @@ make_enriched_heatmap_list <- function(x,
}

# if row_order NULL then split by clusters , else default row order
if(is.null(row_order)){
hm_list_draw <- ComplexHeatmap::draw(hm_list, split = peak_clust$clust)
} else {
hm_list_draw <- ComplexHeatmap::draw(hm_list)
}


hm_list_draw <- ComplexHeatmap::draw(hm_list, split = peak_clust$clust)

return(hm_list_draw)

Expand Down
5 changes: 0 additions & 5 deletions docs/reference/make_enriched_heatmap_list.html

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

3 changes: 0 additions & 3 deletions man/make_enriched_heatmap_list.Rd

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

0 comments on commit 65a6f53

Please sign in to comment.