SEM path diagram (using igraph)
(Hao slack, Jan 7th 2021)
(Hao slack, Jan 7th 2021)
Saved on server: /space/chen-syn01/1/data/cinliu/plots/path_diagrams_igraph
original data from:
/space/chen-syn01/1/data/haowang/glus_gwas/genomicSEM/*.Rdata
/space/chen-syn01/1/data/haowang/glus_gwas/genomicSEM/results_CommonFactor_UKB_raw/*.Rdata
The goal is to make a total of 9 plots using igraph.
7 plots plotting 1 factor only.
2 plots plotting 2 factors.
Sample of 1 factor plots
ABCD_EUR_DWLs.tiff:
List of the 7 plots (1 factor):
2 Factor plots: UKB_raw_area_CFA.tiff and UKB_thickness_CFA.tiff
*instructions given through zoom call
Hao made SEM calculations using GenomicSEM package (https://github.com/MichelNivard/GenomicSEM/wiki/3.-Models-without-Individual-SNP-effects), and now wishes to use semPlot to make path diagram
After exploring I was unable to find way to use semPlot with our results (I think GenomicsSEM is not a package semPlots/ lavvan supports just yet; so I've made the plots in igraph for now
Files are given in .Rdata from. There were 2 sets of data:
/space/chen-syn01/1/data/haowang/glus_gwas/genomicSEM/*.Rdata
7 .Rdata files. We will produce 7 plots from this directory.
/space/chen-syn01/1/data/haowang/glus_gwas/genomicSEM/results_CommonFactor_UKB_raw/*.Rdata
4 .Rdata files. We will use it to produce 4 graphs total