Git Product home page Git Product logo

entrainment's Introduction

entrainment

Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public. Documentation Status License: MIT Contributor Covenant

Overview

entrainment is a rule-based model created on Python to test and to demonstrate the 24h light/dark cycle entrainment phenomenon.

Prerequisites

You need to have some familiarity with the Python programming language to use entrainment main functions.

In case you don’t feel comfortable with Python, we strongly recommend checking Jake VanderPlas free and online book Python Data Science Handbook and the Coursera course from Google Crash Course on Python (free for audit students).

Installation

You can install entrainment from GitHub with:

pip install git+https://github.com/giperbio/entrainment.git#egg=entrainment

We don’t intend to publish this package on PyPI.

Usage

The following example illustrates how to run the model.

Please note that in this example all of the model arguments are assigned. You don’t need to assign values to all arguments, you can just use the default values. Check run_model() documentation to learn more.

import entrainment

model = entrainment.run_model(
    n = 10**3, # Number of subjects/turtles to create
    tau_range = (23.5, 24.6), # Limits for assigning 'Tau' values
    tau_mean = 24.15, # Mean value for the 'Tau' distribution
    tau_sd = 0.2, # Standard deviation value for the 'Tau' distribution
    k_range = (0.001, 0.01), # Limits for assigning the 'k' values
    k_mean = 0.001, # Mean value for the 'k' distribution
    k_sd = 0.005, # Standard deviation value for the 'k' distribution
    lam_c = 3750, # Critical 'lambda' value
    labren_id = 1, # LABREN id of the global horizontal irradiation means
    by = "season", # Series resolution (choices: "month", "season", "year")
    n_cycles = 3, # Number of cycles to run
    start_at = 0, # Index number indicating the start of the series
    repetitions = 10**2, # Number of repetitions
    plot = True, # Activate or deactivate the plot output
    show_progress = True # Activate or deactivate verbose mode
    )

24h light/dark cycle entrainment of a population located at the south of Brazil by season

You can learn more about the available functions going to the package documentation website.

Citation

If you use entrainment in your research, please consider citing it. We put a lot of work to build and maintain a free and open-source Python package. You can find the citation below.

Vartanian, D. (2023). {entrainment}: rule-based model of the 24h light/dark cycle entrainment phenomenon. Python package version 0.0.0.9000. https://github.com/giperbio/entrainment

A BibTeX entry for LaTeX users is

@Unpublished{,
    title = {{entrainment}: rule-based model of the 24h light/dark cycle entrainment phenomenon},
    author = {Daniel Vartanian},
    year = {2023},
    url = {https://github.com/giperbio/entrainment},
    note = {Python package version 0.0.0.9000},
}

Contributing

We welcome contributions, including bug reports.

Take a moment to review our Guidelines for Contributing.

Acknowledgments

The initial development of entrainment was supported by a scholarship provided by the University of Sao Paulo (USP) (❤️).

This model was initially created for the SCX5002 - Complex System I class of the Graduate Program in Modeling Complex Systems (PPG-SCX) of the University of Sao Paulo (USP), under the guidance of Prof. Dr. Camilo Rodrigues Neto.


Become an entrainment supporter!

Click here to make a donation. Please indicate the entrainment package in your donation message.

entrainment's People

Contributors

danielvartan avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

entrainment's Issues

Finish the report

Comments in English, Spanish, or Portuguese are welcome.
Comentarios en inglés, español o portugués son bienvenidos.
Comentários em inglês, espanhol ou português são bem-vindos.


Checklist

  • Update the report data.

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.