run.py: Rearrange
run.py: Rearrange

Perform group-level analysis within an explicitly-defined function.
Don't write the results of group-level analysis until all calculations have been completed.
Few little fixes to group-level analysis.

BIDS-Apps/MRtrix3_connectome