brainGraph_permute function error

6 views
Skip to first unread message

Daniel J. King

unread,
Oct 16, 2018, 7:46:18 PM10/16/18
to brainGraph-help
Hi Chris,
I have a slight issue with the brainGraph_permute function which seems to be putting out a weird error, essentially saying it it is outputting a longer set of regions than intended? (The custom atlas has 308 regions).

myPerms <- permute::shuffleSet(n=nrow(all.dat.resids$resids.all), nset=kNumPerms)
perms.btwn <- brainGraph_permute(median.density, all.dat.resids, perms=myPerms, level='vertex')
Error in setnames(res.perm, 2:ncol(res.perm), regions) : 
  'old' is length 309 but 'new' is length 308

I am running R version 3.5.0 (2018-04-23) and BrainGraph version 2.2.0.

Any help or advice would be greatly received!

BW
Danz

Chris Watson

unread,
Oct 17, 2018, 1:29:21 AM10/17/18
to brainGr...@googlegroups.com
If you send me the data required to recreate the bug, I will take a look. You may send it off-list if you prefer.
Chris

--
You received this message because you are subscribed to the Google Groups "brainGraph-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brainGraph-he...@googlegroups.com.
To post to this group, send email to brainGr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brainGraph-help/4b49622f-0941-4278-a9b0-f6adc1f83473%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages