Error in startsWith(gmtFile, "http://") : non-character object(s)

28 views
Skip to first unread message

ilian atanassov

unread,
Jul 13, 2023, 4:32:00 AM7/13/23
to webgestalt
Hello,

I am getting the following error:

Error in startsWith(gmtFile, "http://") : non-character object(s)

When running the following code:

quant_data_long %>%
        filter(!is.na(`Gene name`)) %>%
        filter(comparison == "D1 / D0") %>%
        select(`Gene name`, logFC) %>%
        as.data.frame() %>%
        WebGestaltR(enrichMethod = "GSEA",
                    organism = "mmusculus",
                    hostName="https://www.webgestalt.org/",
                    enrichDatabase = "geneontology_Biological_Process_noRedundant",
                    enrichDatabaseType = "genesymbol",
                    collapseMethod = "mean",
                    saveRawGseaResult = TRUE,
                    projectName = "D1_vs_D0")

Does this have to do with the ID mapping? Do I need to map gene symbols to Entres IDs prior to running the GSEA enrichment?

Best wishes,

Ilian

ilian atanassov

unread,
Jul 13, 2023, 8:40:09 AM7/13/23
to webgestalt
Hello,

The error was coming from the way that I was providing the parameters for WebGestaltR. The following code doesn't throw this error:

quant_data_long %>%
        filter(!is.na(`Gene name`)) %>%
        filter(comparison == "D1 / D0") %>%
        select(`Gene name`, logFC) %>%
        write_tsv("D1_vs_D0.rnk", col_names = FALSE)

       
WebGestaltR(enrichMethod = "GSEA",
                    organism = "mmusculus",
                    hostName="https://www.webgestalt.org/",
                    enrichDatabase = "pathway_KEGG",
                    interestGeneFile = "D1_vs_D0.rnk",
                    interestGeneType="genesymbol",

                    collapseMethod = "mean",
                    saveRawGseaResult = TRUE,
                    projectName = "D1_vs_D0")

Best wishes,

Ilian

Yuxing Liao

unread,
Jul 14, 2023, 5:45:11 PM7/14/23
to ilian atanassov, webgestalt
Hi,

It is probably because you mean interestGeneType="genesymbol" instead of enrichDatabaseType = "genesymbol". enrichDatabaseType is for user provided GMT file.

Yuxing

--
You received this message because you are subscribed to the Google Groups "webgestalt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webgestalt+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/webgestalt/e9913d1e-6e16-4be6-8502-c487d27b19ean%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages