You can also use other transcriptmic datasets (i.e. GTEx). The data will need to formatted such that each column represents a gene and each row represents an individual.
This will calculate the Pearson's pairwise coexpression data.
Run the following command:
Rscript Permutation.R <genelist.txt> <# of permutations> <phenoname>
genelist.txt is a list of ensembl IDs for your genes of interest.
The # of permutations is how many permutations you want to run. We would suggest at least 1,000,000 permutations.
phenoname is what you want to name your output