I am new to bioinformatics, I want to code GSEA using gene profiles derived from the GEO database and using my custom gene set. How do I calculate the Enrichment score for each of the cohort in the GEO data set and get the p-values for distributions generated from k random permutations
Read the FAQ: http://software.broadinstitute.org/cancer/software/gsea/wiki/index.php/FAQ
The various scenario of running GSEA are clearly explained there.