Skip to content

Commit

Permalink
add package check for complexheatmap in heatmSpatialCorFeats
Browse files Browse the repository at this point in the history
  • Loading branch information
RubD committed Mar 12, 2024
1 parent 4191915 commit c0680fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/spatial_genes.R
Original file line number Diff line number Diff line change
Expand Up @@ -3812,6 +3812,9 @@ heatmSpatialCorFeats = function(gobject,
stop('\n spatCorObject needs to be the output from detectSpatialCorFeats() \n')
}

## package check for ComplexHeatmap
package_check(pkg_name = 'ComplexHeatmap', repository = 'CRAN')

## create correlation matrix
cor_DT = spatCorObject[['cor_DT']]
cor_DT_dc = data.table::dcast.data.table(cor_DT, formula = feat_ID~variable, value.var = 'spat_cor')
Expand Down

0 comments on commit c0680fd

Please # to comment.