
Creation of m:Explorer input data frame from GMT files
prepare_gmt_input(gmt_filename, min_genes = NA, max_genes = NA)
Path to GMT file to convert.
Numeric indicating to discard pathways with less than min_genes genes. If NA, there is no lower bound on the number of genes. Default is NA.
Numeric indicating to discard pathways with more than max_genes genes. If NA, there is no upper bound on the number of genes. Default is NA.
Data frame with pathways as columns, genes as rows. Gene/pathway combinations are marked with "pw" if that gene is in the pathway, or "." if not.
# NOT RUN {
# Create m:Explorer input data frame from GMT "small_gmt.gmt," discarding
# pathways with less than 5 genes and more than 1000 genes
gmt_file = system.file("extdata", "small_gmt.gmt", package = "mExplorer")
gmt = prepare_gmt_input(gmt_file, 5, 1000)
# }
Run the code above in your browser using DataLab