Commit 4a2b9266 authored by smorabit's avatar smorabit
Browse files

bugfix

parent 8d04b01e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
Package: hdWGCNA
Title: hdWGCNA
Version: 0.2.01
Version: 0.2.02
Authors@R: c(
    person("Sam", "Morabito", , "smorabit@uci.edu", role = c("aut", "cre"),
           comment = c(ORCID = "0000-0002-7768-4856")),
+9 −0
Original line number Diff line number Diff line
# hdWGCNA 0.2.02 (2022-11-01)
## Added
- None

## Changes
- New warning in `SetupForWGCNA` if the user selects a very small number of genes.
- `MetaspotsByGroups` uses sparse matrix format internally.


# hdWGCNA 0.2.01 (2022-10-06)
## Added
- None
+5 −1
Original line number Diff line number Diff line
@@ -135,11 +135,15 @@ ConstructMetaspots <- function(
  agg_X <- do.call(rbind, lapply(1:length(tmp), function(k){tmp[[k]][[3]]}))


  # experimental
  agg_X <- as(agg_X, 'sparseMatrix')

  # print(length(tmp))
  # print(dim(agg_X))

  # transpose expression matrix:
  agg_X <- t(agg_X)
  print(class(agg_X))
  agg_X <- Matrix::t(agg_X)
  colnames(agg_X) <- bcs

  # get metadata:
+6 −0
Original line number Diff line number Diff line
@@ -149,6 +149,12 @@ SetupForWGCNA <- function(
    seurat_obj <- SetWGCNAGenes(seurat_obj, gene_list=features, wgcna_name=wgcna_name)
  }

  # give the user a warning if there's too few genes (under 200?)
  genes_use <- GetWGCNAGenes(seurat_obj, wgcna_name=wgcna_name)
  if(length(genes_use) < 500){
    warning(paste0(length(genes_use), ' features selected. You may wish to change the settings to include more features in your analysis.'))
  }

  if(!is.null(metacell_location)){
    if(!(metacell_location %in% names(seurat_obj@misc))){
      stop('metacell_location not found in seurat_obj@misc')
+1 −1
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@
      </button>
      <span class="navbar-brand">
        <a class="navbar-link" href="https://smorabit.github.io/hdWGCNA/index.html">hdWGCNA</a>
        <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.2.01</span>
        <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.2.02</span>
      </span>
    </div>

Loading