cwatson / brainGraph

Graph theory analysis of brain MRI data
173 stars 51 forks source link

vertex_attr_dt error in rbindlist: non existing column(s) 'density' #34

Open chen524 opened 1 year ago

chen524 commented 1 year ago

Hi, thanks for the great package and detailed documents. I'm working with rs-fmri functional connectivity matrices. I've successfully make brainGraphList with 10 thresholds, and saved g/g.group.rds. But something wrong when creating vertex measures:

dt.V <- rbindlist(lapply(g, vertex_attr_dt))
Error in colnamesInt(x, neworder, check_dups = FALSE) : 
  argument specifying columns specify non existing column(s): cols[1]='density'

The graph measures rbindlist(lapply(g, graph_attr_dt)) worked fine:

I checked the documents, seems density is the argument for structural covariance network? I guess the key of rbindlist should be threshold. But I dont know how to fix that.

I'd appreciate your reply. Thank you.