You can use first example if you already have a phenotype labels file, or use second example if you are interested in gene sets co-expressing with certain gene(s).
make_gsea_input(matrix_file, soft_file, output_dir = ".", gene = NULL)
string. path to GSE series matrix file
string. path to GSE SOFT file
string, path to output directory
character. HUGO gene symbol(s) of your interested gene(s)
NULL
both NA
and Inf
are not allowed in input files (.txt
& .cls
).
if (FALSE) {
make_gsea_input(
system.file('extdata/GSE51280_series_matrix.txt.gz', package = 'rGEO'),
system.file('extdata/GSE51280_family.soft.gz', package = 'rGEO')
)
make_gsea_input(
system.file('extdata/GSE19161_series_matrix.txt.gz', package = 'rGEO'),
system.file('extdata/GSE19161_family.soft.gz', package = 'rGEO'),
'.', 'EIF4G2'
)
}