Giter Club home page Giter Club logo

drug_learning's People

Contributors

anasf97 avatar danielsoler93 avatar danisv93 avatar martimunicoy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

drug_learning's Issues

Docs '' in fingerprint conversion

When running python drug_learning/drug_learning/two_dimensions/main_fingerprints.py test_zinc/*.sdf-mo -pq split -ch 1000 -nsp 15it fails with error:

main_fingerprints.py: error: argument split: invalid choice: 'test_zinc/core_1.sdf' (choose from 'split')

If you do python drug_learning/drug_learning/two_dimensions/main_fingerprints.py 'test_zinc/*.sdf'-mo -pq split -ch 1000 -nsp 15 it works.

Please add that to the docs

Parsers different Files

As the architecture allows to run split and fingerprints separately, and in a future we plan to have many more things we could already split the different argparse in different files and join all of them in the main file.

Tasks:

  • generate splite_argparse.py
  • fingerprint_argpares.py
  • main.py

Parallelize with ray

Multiprocessing does not share memory between nodes. @cescgina, proposed Ray as a high level library to implement MPI processes to use several nodes at full capacity. First benchmark was 10M in 14h. (Mordred descriptors).

  • Implement Ray for mordred
  • Change multiprocessing for ray

Cannot parallelize mordred descriptors + remove progress bar

The calculation of mordred descriptors is internally parallelized via a multiprocessing pool, which crashes if called via a script using another pool. To avoid this issue you can set nproc=1 in the call to calc.pandas in fingerprints.py. I don't know however if it is faster to use a external pool or serially process the file and use the mordred internal pool.

Also you can use quiet=False in the calc.pandas function to avoid the progress bar in the output, which will look bad if the output is redirected to a file.

  • Check whether is faster to use mordred pool or and external one
  • Fix paralelization of mordred
  • Use quiet=False to remove progress bar

Unable to write only csv in package to calculate fingerprints

Default value for the --parquet option is true, but I found no way to turn it off since the action in the argparse is store_true. I think the default should be False. Then, if the user has not specified any output format either raise an error or set parquet as the output format.

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.