How to run postGGIR?


(1) create the template file in R 
 
library(postGGIR) 
create.postGGIR()

(2) cat STUDYNAME_part0.maincall.R > Example_part0.maincall.R

(3) fill in the paramters in Example_part0.maincall.R 
 
currentdir =  
studyname =
bindir =
binfile.list = NULL
outputdir =  
QCdays.alpha = 0
QChours.alpha = 0

   ......


(4)  Call Example_part0.maincall.R to create all template files 


R --no-save --no-restore --args  < Example_part0.maincall.R  0

The following files are created, 
   part5_Example_postGGIR.report.Rmd
   part6_Example_postGGIR.nonwear.report.Rmd
   part7a_Example_postGGIR_JIVE_1_somefeatures.Rmd
   part7b_Example_postGGIR_JIVE_2_allfeatures.Rmd
   part7c_Example_postGGIR_JIVE_3_excelReport.Rmd
   part7d_Example_postGGIR_JIVE_4_outputReport.Rmd
   part7e_Example_postGGIR_JIVE_5_somefeatures_weekday.Rmd
   part9_swarm.sh

(5) Submit all jobs to the cluster or run that one by one

sbatch --time=100:00:00 --mem=120g    part9_swarm.sh   


Note. Due to small sample size in the example data, some features such as functional PCA may not able to run successfully.
