Git Product home page Git Product logo

gsea.py's People

Contributors

jacobkimmel avatar mrcinv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gsea.py's Issues

Provide example input file

Hi, thank you so much for writing this GsEA package (it saves me time from having to implement it from scratch) 😁

Any chance you could also provide the input data used for the leukemia and pathways files below? Just so I can see how the format should be like. Thanks a lot

genes, D, C = read_expression_file("data/leukemia.txt")
gene_sets, gene_set_names = read_genesets_file("data/pathways.txt", genes)

Open to PR for multiprocessing?

Hey @mrcinv,

I added optional parallelization support through multiprocessing to speed up computation.
Essentially, it adds a single API change:

from gsea import gsea
# load D, C, S_sets, etc.
# ...

# runs using the existing serial computation
results = gsea(D, C, S_sets, n_jobs=1)
# runs with multiprocessing across gene sets
# using k processors
k = 2
results = gsea(D, C, S_sets, n_jobs=k)
# runs with multiprocessing across gene sets
# using all processors
results = gsea(D, C, S_sets, n_jobs=-1)

Would you be open to a PR incorporating those changes?

If so, I'm happy to make one.

Best,
Jacob

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.