Welcome,
here you can find the more detailed description on the code I used for my master's thesis.
These two scripts can be run in parallel:
This script can be used after the first three scripts have run.
Next comes the GAT Analysis with 6 run in R.
In the end comes the GO-Analysis with 8 and 9 run in R.