Closed choijamtsmunkhzul closed 4 years ago
hey @choijamtsmunkhzul, do you mind sharing the input data? It is possible that no enrichment for any pathway was found because the background genes is not large enough
Hello, Sure,
Here is input data, mice gene set: input_genes_for_mmuKEGG.rds compressed as ZIP file. input_genes_for_mmuKEGG.zip
Thank you
I've tried a larger background gene set (the mmu STRING PIN genes) but there is no significant enrichment for any pathways after p-value adjustment. One other point: for not mismatching any gene symbols, pathfindR (run_pathfindR
) turns all symbols to upper case so I did that manually.
To obtain results for this dataset, I suggest (a) using a different correction method (tried but did not work) (b) changing the enrichment threshold to be less stringent or (c) both.
Hope this helps, -E
library(pathfindR)
input_data <- readRDS("misc/issues/issue54/input_genes_for_mmuKEGG.RDS")
input_vec <- toupper(input_data$genes)
fetch_gene <- fetch_gene_set(
gene_sets = "mmu_KEGG",
min_gset_size = 10,
max_gset_size = 300)
mmu_descriptions <- fetch_gene$term_descriptions
mmu_genes <- fetch_gene$genes_by_term
sif_path <- return_pin_path("mmu_STRING")
pin_df <- read.delim(sif_path, header = FALSE)
bg_genes_vec <- unique(c(pin_df$V1, pin_df$V3))
result_df1 <- enrichment(input_genes = input_vec,
genes_by_term = mmu_genes,
term_descriptions = mmu_descriptions,
adj_method = "bonferroni",
enrichment_threshold = 0.05,
sig_genes_vec = input_vec,
background_genes = bg_genes_vec)
Hello egeulgen
Thank you so much for helping me to understand for using this package.
However I got into some problem with pathfindR enrichment() function:
So i have only mouse gene lists: Here is my input data:
As you can see i have higher number of mouse single gene sets.
Then after that as you suggested i used fetch_gene():
lets check "term descriptions" and "genes by term"
Looks good, Now lets use enrichment()
But every time i run i always gets NULL, is it possible? even though I have larger gene sets?
Also i tried other way:
Is it normal to have NULL output even though i have large gene set?
Thank you so much