WGCNA Preservation error
0
0
Entering edit mode
Sara • 0
@ca2e707b
Last seen 2.3 years ago
United States

Hi all,

I'm trying out a preservation analysis in WGCNA. I constructed modules from two different treatments (same genes, different samples) and now want to compare the modules. But, I'm running into this error with R version 4.0.0. I had the same error when importing the RData of module colors from previous network analyses:


# Expression data files for two treatments
# columns = genes, rows = samples
multiExpr = multiData(Set1 = datExprHot, Set2 = datExprCold)

# Input module files
# one column for geneID, one for assigned module
Hotmodule=read.csv("PTR_hot_modulelist.csv", header=TRUE) 
Coldmodule=read.csv("PTR_cold_modulelist.csv", header=TRUE) 

# Create list holding module labels for each set
colorList = list(Set1 = Hotmodule, Set2 = Coldmodule)

# Calculate module preservation statistics
system.time( {
  mp = modulePreservation(multiExpr, colorList,
                          referenceNetworks = c(1:2),
                          loadPermutedStatistics = FALSE,
                          networkType = "signed hybrid",
                          nPermutations = 200,
                          verbose = 3)
} );

Error in modulePreservation(multiExpr, colorList, referenceNetworks = c(1:2),  : 
  Color vector for set 1 does not have the correct number of entries. 
Timing stopped at: 0.033 0.008 0.04
preservation WGCNA • 1.0k views
ADD COMMENT
0
Entering edit mode

Hi did you ever solve this problem? I have the exact same problem now-- please email me at imhillaryg@gmail.com

ADD REPLY

Login before adding your answer.

Traffic: 724 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6