Giter VIP home page Giter VIP logo

slab.jl's Introduction

SLab.jl

The official implementation of the scheduling method for the S-LAB (scheduling for laboratory automation in biology) problem, introduced in [1].

Requirements

Install the Julia language from the official website. The detailed instructions for installation is also available.

How to run

  1. Get the source code.

    1. If you are familiar with git, simply clone this repository and move into the directory.
      $ git clone https://github.com/labauto/SLab.jl
      $ cd SLab.jl
      $ pwd
      /path/to/SLab.jl
    2. Alternatively,
      1. Download a zip archive.
      2. Extract the archive (a directory named SLab.jl-main will be created).
      3. cd into the directory.
  2. Install the dependency.

    1. Start the Julia REPL.
      $ julia --project=.
    2. Install the dependency.
      julia> using Pkg; Pkg.instantiate(); Pkg.precompile()
      
    3. Exit the REPL.
      julia> exit()
      
  3. Run example cases.

    $ julia --project=. bin/run.jl examples/case_1/case_1_A

    If you see a message like Jobs will be completed in XXX minutes, the computation is done.

    NOTE : Running the program in this way takes long time due to the JIT compilation of Julia scripts. See the next section to speedup the program.

  4. The result is saved as a PDF file in examples/case_1/case_1_A/case_1_A_result.pdf.

Speedup the computation (optional)

To simply invoke the run.jl script takes long time for compiling the scripts. You can shorten this runtime overhead by "pre-compiling" the program.

  1. Windows
    1. Start the Julia REPL.
      $ julia --project=.
    2. Create a sysimage.
      julia> using PackageCompiler
      julia> create_sysimage([:CSV, :Cbc, :DataFrames, :Dates, :JuMP, :Plots, :Serialization, :SLab], sysimage_path="SLab.dll", precompile_execution_file="bin/run.jl")
      julia> exit()
      
    3. Run using the sysimage.
      $ julia --project=. -J SLab.dll bin/run.jl examples/case_1/case_1_A
  2. MacOS
    1. Install XCode Command Line Tools.
      $ xcode-select --install
    2. Start the Julia REPL.
      $ julia --project=.
    3. Create a sysimage.
      julia> using PackageCompiler
      julia> create_sysimage([:CSV, :Cbc, :DataFrames, :Dates, :JuMP, :Plots, :Serialization, :SLab], sysimage_path="SLab.dylib", precompile_execution_file="bin/run.jl")
      julia> exit()
      
    4. Run using the sysimage.
      $ julia --project=. -J SLab.dylib bin/run.jl examples/case_1/case_1_A
  3. Linux
    1. Install gcc or clang.
    2. Start the Julia REPL.
      $ julia --project=.
    3. Create a sysimage.
      julia> using PackageCompiler
      julia> create_sysimage([:CSV, :Cbc, :DataFrames, :Dates, :JuMP, :Plots, :Serialization, :SLab], sysimage_path="SLab.so", precompile_execution_file="bin/run.jl")
      julia> exit()
      
    4. Run using the sysimage.
      $ julia --project=. -J SLab.so bin/run.jl examples/case_1/case_1_A

References

[1] Itoh, TD. and Horinouchi, T., et al., "Optimal scheduling for laboratory automation of life science experiments with time constraints", SLAS Technology, 2021.

slab.jl's People

Contributors

itakeshi avatar yuifu avatar

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.