Hello Chris,
thank you for developing brainGraph, I found it quite easy to use and the user's guide was super helpful and very detailed, I am actually looking forward to using it also for other datasets!
I managed to do everything I wanted on my structural data (T1-weighed only) from almost 500 patients. The dataset was created with a collaboration with other research groups, so it underwent a data harmonisation process before I could use brainGraph or do any kind of analysis on those data. (I used the Desikan atlas and did analyses both on thickness and surface area).
Overall everything worked really well. However, it took me a while to make it work as with the whole dataset I wouldn't manage to get past one of the very first steps, which is the
all.dat.resids <- get.resid(lhrh, covars=covars, exclude.cov='Group')
which returned a error in fastLmPure(lmvars$X, y, method = 2) : NROW(y) == nrow(X) is not TRUE.
I checked everything i could check and eventually decided to re-run the code for each of the datasets part of my dataset.
Eventually I noticed that some subjects from 2 datasets were causing this - i don't know yet how, but after removing those subjects everything else worked smoothly.
I have manually inspected the data but there is nothing wrong with them, so I wanted to know what might have driven this in your opinion, or whether this has happened to someone else before.
Many thanks
Miriam