Skip to content

Community Network estimation removes too much due to convert2igraph #14

@AlexChristensen

Description

@AlexChristensen

To Reproduce:

  • Function error occurred in: CN

R and SemNeT versions:

  • R: 4.4.0
  • SemNeT: latest

Operating System:

  • OS: all
  • Version N/A

Additional context and comments
convert2igraph.R is removing parts of the matrix that are 'unconnected', igraph is producing row/column indices that refer to that filtered matrix, but then CN.R is using those row/column indices to subset the original coocurrence matrix (adj). This leads to a mismatch in which nodes are reported as being the largest matrix. If you instead add your removal of unconnected nodes either to the start of the CN.R script or to the end, the problem is resolved.

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions