Commit b8ef25b4 authored by smorabit's avatar smorabit
Browse files

docstring for PlotKMEs/

parent 4bfaa5eb
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -813,6 +813,10 @@ ModuleConnectivity <- function(
  genes_use <- GetWGCNAGenes(seurat_obj, wgcna_name)
  params <- GetWGCNAParams(seurat_obj, wgcna_name)

  # exclude the grey module:
  #modules <- subset(modules, module != 'grey')
  #MEs <- MEs[,colnames(MEs) != 'grey']

  if(is.null(assay)){assay <- seurat_obj@active.assay}

  if(!is.null(group.by)){
@@ -830,6 +834,8 @@ ModuleConnectivity <- function(
  )[genes_use,cells.use]

  datExpr <- t(as.matrix(exp_mat))
  print(dim(datExpr))
  print('running signedKME...')

  kMEs <- WGCNA::signedKME(
    datExpr,
+1 −1
Original line number Diff line number Diff line
@@ -1157,7 +1157,7 @@ ModuleUMAPPlot <- function(
    gene2 = as.character(edge_df[i,'Var2'])

    col1 <- selected_modules[selected_modules$gene_name == gene1, 'color']
    col2 <- selected_modules[sfelected_modules$gene_name == gene2, 'color']
    col2 <- selected_modules[selected_modules$gene_name == gene2, 'color']

    if(col1 == col2){
      col = col1
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ articles:
  network_visualizations: network_visualizations.html
  projecting_modules: projecting_modules.html
  projecting_modules_cross: projecting_modules_cross.html
last_built: 2022-05-09T17:14Z
last_built: 2022-05-11T04:53Z
urls:
  reference: https://smorabit.github.io/scWGCNA/reference
  article: https://smorabit.github.io/scWGCNA/articles
+1 −1
Original line number Diff line number Diff line
@@ -234,7 +234,7 @@
<span class="r-out co"><span class="r-pr">#&gt;</span>     }</span>
<span class="r-out co"><span class="r-pr">#&gt;</span>     out</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> }</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> &lt;bytecode: 0x7fb69569ee40&gt;</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> &lt;bytecode: 0x7f94403e8d98&gt;</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> &lt;environment: namespace:hdWGCNA&gt;</span>
</code></pre></div>
    </div>
+1 −1
Original line number Diff line number Diff line
@@ -221,7 +221,7 @@ using Seurat's DoHeatmap, and then assembles them all into one big heatmap.</p>
<span class="r-out co"><span class="r-pr">#&gt;</span>     }</span>
<span class="r-out co"><span class="r-pr">#&gt;</span>     out</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> }</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> &lt;bytecode: 0x7fb69bde9ca0&gt;</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> &lt;bytecode: 0x7f94408191c8&gt;</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> &lt;environment: namespace:hdWGCNA&gt;</span>
</code></pre></div>
    </div>
Loading