Commit 33d773e5 authored by smorabit's avatar smorabit
Browse files

bugfix in ResetModuleNames

parent b4842b7c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
Package: hdWGCNA
Title: hdWGCNA
Version: 0.2.03
Version: 0.2.04
Authors@R: c(
    person("Sam", "Morabito", , "smorabit@uci.edu", role = c("aut", "cre"),
           comment = c(ORCID = "0000-0002-7768-4856")),
+8 −1
Original line number Diff line number Diff line
# hdWGCNA 0.2.03 (2022-11-010)
# hdWGCNA 0.2.03 (2022-12-15)
## Added
- None

## Changes
- Fixed a bug in `ResetModuleNames`.

# hdWGCNA 0.2.03 (2022-11-10)
## Added
- None

+6 −2
Original line number Diff line number Diff line
@@ -1261,14 +1261,18 @@ ResetModuleNames <- function(
  # update hME table:
  hMEs <- GetMEs(seurat_obj, harmonized=TRUE, wgcna_name)
  if(!is.null(hMEs)){
    colnames(hMEs) <- new_mod_df$new
    me_colnames <- colnames(hMEs)
    ix <- match(me_colnames, new_mod_df$old)
    colnames(hMEs) <- new_mod_df$new[ix]
    seurat_obj <- SetMEs(seurat_obj, hMEs, harmonized=TRUE, wgcna_name)
  }

  # update ME table
  MEs <- GetMEs(seurat_obj, harmonized=FALSE, wgcna_name)
  if(!is.null(MEs)){
    colnames(MEs) <- new_mod_df$new
    me_colnames <- colnames(MEs)
    ix <- match(me_colnames, new_mod_df$old)
    colnames(MEs) <- new_mod_df$new[ix]
    seurat_obj <- SetMEs(seurat_obj, MEs, harmonized=FALSE, wgcna_name)
  }

+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ one of the most ubiquitous formats for single-cell data. Check out the [hdWGCNA
write [GitHub issues](https://docs.github.com/en/issues/tracking-your-work-with-issues/creating-an-issue)
to report bugs, ask for help, and to request potential enhancements.

If you use hdWGCNA in your research, please cite the following papers:
If you use hdWGCNA in your research, please cite the following papers in addition to the original WGCNA publication:

* [Morabito et al. bioRxiv 2022](https://www.biorxiv.org/content/10.1101/2022.09.22.509094v1)
* [Morabito & Miyoshi et al. Nature Genetics 2021](https://doi.org/10.1038/s41588-021-00894-z)
+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.03</span>
        <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.2.04</span>
      </span>
    </div>

Loading