GSEA_genes_report: Function to make a GSEA summary table with Mouse gene symbol...

Description Usage Arguments Details Value Examples

Description

In order fo the results of GSEA to be more comprehensive, we make a function to summarize the results

Usage

1
GSEA_genes_Report(GSEA_summary, name.f, symbol.col="SYMBOL", GSEA_Dir)

Arguments

GSEA_summary

csv amb el summary dels resultats de GSEA generat amb la funció GSEA_report_Make

name.f

Name of the output file

symbol.col

Columna que conté els gene symbols

GSEA_Dir

Directory to save the results

Details

This function makes a summary of the GSEA report, but this time by gene

Value

data.frame ofject

Examples

1
2
3
4
5
6
7
8
inDirFiles <- grep(".csv",list.files(GSEADir, full.names = F), value=T)

for (i in 1:length(inDirFiles)) {
  GSEA_summary <- as.data.frame(fread(file.path(GSEADir, inDirFiles[i]), dec=","))
  print(dim(GSEA_summary))#6354   11
  name_summary <- gsub(".csv", "", inDirFiles[i])
  GSEA_genes_Report(GSEA_summary=GSEA_summary, name.f = name_summary, symbol.col="SYMBOL", GSEA_Dir)
}

machalen/AnalysisFunctions documentation built on Nov. 11, 2019, 10:26 a.m.