Giter Site home page Giter Site logo

jefworks / liger Goto Github PK

View Code? Open in Web Editor NEW
56.0 56.0 11.0 8.45 MB

Lightweight Iterative Gene set Enrichment in R

Home Page: https://CRAN.R-project.org/package=liger

License: GNU General Public License v3.0

R 75.19% C++ 24.81%
bioinformatics cran enrichment gene-sets gsea pathway-enrichment-analysis rstats

liger's People

Contributors

jefworks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

liger's Issues

Add title to plot

Add a 'main' parameter to GSEA plots to allow gene set names to be printed as a title.

 The weight on enrichment score calculation

Hi, I am trying to understand GSEA algorithm by your code .
I found that in the code functions.R line 41
es <- (abs(values) ^ power) * weight
is not like the paper's formula where a weight variable is added on .
The raw formula of P_hit(S, i) in the paper is like
es <- (abs(values ^ power) .
Am I miss something ?

Tutorial Webpages Missing

Hi Dr. Fan,

It appears that the webpages for the tutorials in the ReadME no longer work (or point towards current addresses). Hoping this can be restored?

Thanks!
Sam

Different p value estimates between bulk and single gene set testing

Thanks for creating this tool, I'm finding it very useful for my analysis. I am trying to first screen a number of gene sets using the bulk option and then visualize specific ones that are significant. However, I noticed that for the same gene set the p value being shown on the plot is different from the bulk testing. I understand that these are empirical p values so the exact values may not match. However, they are different by an order of magnitude (see below). Do you have insights into why this is the case?

gsea_out = bulk.gsea(
    values = fold_changes %>% 
        filter(gene %in% expressed_genes) %>%
        filter(!is.infinite(logFC)) %>% 
        {setNames(.$logFC, .$gene)},
    set.list = h_gene_sets,
    mc.cores = 10
)

Screen Shot 2022-01-09 at 9 14 39 AM

for (gs in c('INTERFERON_GAMMA_RESPONSE', 'INTERFERON_ALPHA_RESPONSE')) {

    gsea(
        fold_changes %>% 
            filter(gene %in% expressed_genes) %>% 
            filter(!is.infinite(logFC)) %>% 
            {setNames(.$logFC, .$gene)},
        h_gene_sets[[gs]],
        main = str_remove(gs, 'HALLMARK_')
    )
  
}

Screen Shot 2022-01-09 at 9 15 36 AM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.