Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion R/ConstructNetwork.R
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ ConstructNetwork <- function(
seurat_obj <- SetWGCNAParams(seurat_obj, params, wgcna_name)

# append working directory to the TOM file so it has the full path:
net$TOMFiles <- paste0(getwd(), '/', renamed)
net$TOMFiles <- ifelse(test = substr(renamed,1,1) == "/",
yes = renamed,
no = paste0(getwd(), '/', renamed))

# add network to seurat obj
seurat_obj <- SetNetworkData(seurat_obj, net, wgcna_name)
Expand Down