Skip to main content

Tool for analyzing and visualizing circadian cycle data

Project description

Welcome to Circadipy!

=======================================

Introducing CircadiPy, a Python package for chronobiological analysis! With seamless integration of powerful time series plotting libraries, it enables researchers to visualise and study circadian cycles with unrivalled versatility.

Currently, the package supports the visualisation of biological rhythms and their synchronisation with external cues using

  1. Actograms: An actogram is a graphical representation of an organism's activity or physiological data over time. It typically shows activity or physiological measurements (e.g. hormone levels, temperature) on the y-axis and time on the x-axis. Actograms are often used to visualise circadian rhythms and patterns of activity/rest cycles.

  2. Cosinor Analysis Plot: This plot is used to analyse and display the presence of rhythmic patterns in the data. It's a graphical representation of cosinor analysis, which fits a cosine curve to the data to estimate rhythm parameters such as amplitude, acrophase (peak time) and period.

  3. Raster plot: A raster plot shows individual events or occurrences (such as action potentials in neurons) over time. In chronobiology this can be used to show the timing of specific events in relation to the circadian cycle.

  4. Histogram: A histogram can be used to show the distribution of events or measurements over a period of time. In chronobiology this could be the distribution of activity bouts or physiological measurements over different time bins.


CircadiPy installation:

* This guide is in a simplified format, for a more detailed guide and much more please visit our documentation page: https://circadipy.readthedocs.io/en/latest/

Before Installation

Install Visual Studio Build Tools

CircadiPy requires the installation of the PyMICE library to read Intellicage data. Additionally, PyMICE requires the installation of Visual Studio Build Tools on Windows. You can download the Visual Studio Build Tools from the following link:

Visual Studio Build Tools

After downloading the Visual Studio Build Tools, you can install it by running the installer. Once the installation is completed, you can proceed to the following steps.

  1. Select the "desktop development with C++" workload.

    Build Tools

  2. On the right side of the window, select only the "MSVC" (e.g. "MSVC v142 - VS 2019 C++ x64/x86 build tools") and "Windows X SDK" components.

  3. Click on the "Install" button to start the installation.


Package and Environment Management System

We recommend using either Miniconda or Mamba to install Python and create a new environment. In this tutorial, we will use Mamba, but the steps are the same for Miniconda.

To install Python using Mamba, you need the Mambaforge installer. You can download it from the Mambaforge GitHub page.

There, scroll to the Mambaforge section and download the installer for your operating system. This will install the Mambaforge package and environment management system with Mamba installed in the base environment, as shown in this image:

Mambaforge GitHub Page

Figure: The section where the user will download the Mambaforge installer. You can observe that there are options for different operating systems, including Linux, macOS, and Windows. The user should download the installer for their operating system. In this case, download the Windows installer, Mambaforge-Windows-x86_64.

After the download is completed, run the installer and follow the instructions. Once the installation is completed, a new program called "Miniforge Prompt" will appear in your start menu. (Alternatively, you can type "miniforge" into your operating system's search bar to find the prompt.) Open it and use the Mambaforge terminal to create a new environment with the required dependencies.


Environment Creation and Installation

  1. Create a new environment by following these steps:

    • Open the Mambaforge terminal (also known as 'Miniforge Prompt') and type:

      (base) $ mamba create -n circadipy_env python=3.8
      

      Note: Python version must be 3.8 because PyMICE, a dependency of CircadiPy for reading Intellicage data, is not compatible with Python versions higher than 3.8.

    • Press 'y' when prompted.

    • After the environment is created, activate it by typing:

      (base) $ mamba activate circadipy_env
      
  2. Install the dependencies from the PyPI repository by typing:

    (circadipy_env) $ pip install circadipy
    

CircadiPy also has a built-in simulated data generator that allows the creation of custom data sets for testing, experimentation and comparison purposes.

Please visit our documentation page for more information: https://circadipy.readthedocs.io/en/latest/

There you will find:

  1. A more in depth guide on how to use CircadiPy using the simulated data generator in the tutorial section
  2. How to use the package to analyse your own data leveraging Jupiter notebooks.
  3. A description of the API

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

circadipy-0.1.11.tar.gz (59.3 kB view details)

Uploaded Source

Built Distribution

circadipy-0.1.11-py3-none-any.whl (58.8 kB view details)

Uploaded Python 3

File details

Details for the file circadipy-0.1.11.tar.gz.

File metadata

  • Download URL: circadipy-0.1.11.tar.gz
  • Upload date:
  • Size: 59.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for circadipy-0.1.11.tar.gz
Algorithm Hash digest
SHA256 d5d0301091e4b93042483ad9554dcb229e9fb6731b984a40540dacd29242afc5
MD5 0d66db1dc097ca5c73427b5dfe9b9589
BLAKE2b-256 4606eaa5d47bbd1f6b61f3da7a8dd855cebabb9e743025cdb59b9ee69c2a56cf

See more details on using hashes here.

File details

Details for the file circadipy-0.1.11-py3-none-any.whl.

File metadata

  • Download URL: circadipy-0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 58.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for circadipy-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 8fdbade7232bf5a7dd6203e54aaabea9f0f9bd2bd05bcc6a6a039ca1c2931c90
MD5 fc7490f2c5ea53faf8a436fad0c74ade
BLAKE2b-256 f5bdb819d05277c8030a1b1447bf790487448b68684a6edd4bbe46421bfb7dd1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page