- Data Import: Load collected activity data (see below for correct formatting)
- Session Management: Save and load sessions to preserve your work.
- Analysis Options:
- Generate single and double actograms.
- Generate periodograms.
- Calculate onset, offset, acrophase, and bathyphase times.
- Save results to CSV for further analysis.
- Interactive Plots:
- Drag and adjust markers on actograms to refine analysis.
- Real-time updates to results upon adjustments.
- Customizable Parameters:
- Use only a section of the data.
- Set threshold percentiles for activity detection.
- Define inactivity and activity durations (N and M hours).
- Choose to use calculated free running period (tau) or manually set values.
We recomend using anaconda for ease of instillation
-
Clone the Repository
git clone https://github.com/Arthurmayo/CAPy.git
-
Navigate to the file location
cd C:path\to\where\you\cloned
-
Create an environment with dependencies
conda env create -f CAPy_env.yaml
-
Activate conda environment
conda activate CAPy
-
Run the Application
python gui.py
-
Launch the Application
Run
python gui.py
in your terminal. -
Load Data Files
- Data must be in the above format with a .csv extension to work in CAPy
- Click on "Select Main Data File" to load your primary activity CSV file.
-
Configure Analysis Parameters
- Choose the section of time to be used for your data in DD:HH format, or leave blank to use the whole data set
- Choose to use the calculated tau or manually enter a tau value.
- Set threshold percentile, N hours of inactivity, and M hours of activity.
- Select tasks such as generating actograms, plotting Fourier analysis, saving results to CSV, or performing comparisons.
-
Run Analysis
Click on "Run Analysis" to perform the selected tasks.
-
Interact with Results
- View generated plots in the "Plots" tab.
- Drag markers on actograms to adjust onset, offset, acrophase, and bathyphase times.
-
Save and Load Sessions
- Use "Save Session" to save your current state.
- Use "Load Session" to resume work from a previous session.
- Python 3.6 or higher
- Packages:
- PyQt5
- pandas
- matplotlib
- numpy
- scipy
Note: Ensure all dependencies are installed as per the Installation section.
This project is licensed under the MIT License.