# Pathfinder [![DOI](https://zenodo.org/badge/188258387.svg)](https://zenodo.org/badge/latestdoi/188258387)
Morris Water Maze search strategy and entropy analysis.
Created by **Matthew Cooke** at **The University of British Columbia**, **Jason Snyder Lab**
**For more information about the features and usage of Pathfinder please visit our [wiki](https://github.com/MatthewBCooke/Pathfinder/wiki)**
## Synopsis
The Pathfinder package is a search strategy analysis tool for the Morris Water Maze, and can be expanded for other spatial navigation tasks. The program analyses X-Y coordinate data exported from commercially available tracking software. Pathfinder currently supports outputs from: Ethovision, Anymaze, WaterMaze, and ezTrack. We then calculate the best-fit search strategy for the trial. Trials are fit into one of: Direct Swim, Directed Search, Focal Search, Spatial indirect, Chaining, Scanning, Thigmotaxis, and Random Search.
## Citing
If you use Pathfinder, please cite: Cooke MB, O'Leary TP, Harris P et al. (2019) Pathfinder: open source software for analyzing spatial navigation search strategies. F1000Research, 8:1521. https://doi.org/10.12688/f1000research.20352.2
### Launching Pathfinder
1. The program can be opened by calling pathfinder.
2. This will open up the GUI window.
![pathfinder_launch](https://user-images.githubusercontent.com/7039454/86947608-d5d6b400-c100-11ea-970c-f1ec05833de7.gif)
3. You can then select an inividual file or a directory containing files from the File dropdown menu. These files must be Excel files if you are using Ethovision tracking software, and CSV files if you are using Anymaze, Watermaze, or ezTrack software. Define supports both Excel and CSV files.
### Search Strategy Analysis
1. For search strategy analysis we have multiple options. To set your own strategy parameters, click custom.
2. (Settings) The settings button will spawn a parameters panel
![pathfinder_settings_pane](https://user-images.githubusercontent.com/7039454/86947641-e4bd6680-c100-11ea-8263-3a20f429d2bf.gif)
3. In the custom parameters pane, you can select and deselect any of the search strategies. Deselecting Strategies will remove them from consideration. You can also define the cutoff values for each strategy. See https://github.com/MatthewBCooke/Pathfinder/wiki/Description-of-Parameters for detailed description of parameters
4. Once you have chosen your parameters, be sure to select your tracking software. Ethovision, Anymaze, ezTrack and Watermaze are currently supported. We also have a "Define" button that allows users to import most non-supported files.
5. You may then alter the main values to suit your data. Platform position, pool centre, and pool diameter can be automatically calculated for groups of trials using one constant platform location. For all other data you must manually define these values (Example: `Platform Position (x,y) | 6.53,-17.3`).
![pathfinder_goal_pos_change](https://user-images.githubusercontent.com/7039454/86947673-f3a41900-c100-11ea-82a5-c1245e0d02af.gif)
6. There are 3 checkboxes above the **Calculate** button. The first, *Scale Values* is used to automatically scale the default values in an attempt to better match your data. This uses the Pixels/cm and the pool diameter to determine a constant C with which to multiply some parameters. (*Note: If you are using custom values, it is best to disable scaling*) The two other checkboxes enable manual categorization. Manual categorization can be used for trials in which our algorithm was unable to make a determination (**Manual categorization for uncategorized trials**) or for all trials (**Manual categorization for all trials**).
![manual categorization](http://snyderlab.com/pathfinder/manual.jpg)
7. Once you are satisfied with your parameters, click calculate. This will begin the process of determining search strategies for the trials. Once calculation is complete you will be shown a display of the results.
![pathfinder_calculate](https://user-images.githubusercontent.com/7039454/86947699-00287180-c101-11ea-978c-89d4bd95e3c5.gif)
8. Your results will be saved as a `.csv` file with whatever name was chosen in the *Output File* field. You will also receive a log file of the excecution ("Logs" folder), and any generated paths from manual catagorization will be saved under "Paths" in your present working directory.
### Heatmaps
![Heatmap parameters](http://snyderlab.com/pathfinder/heatmapparams.jpg)
1. The parameters panel lets you tailor the output to your needs:
1. Grid size. This roughly translates into how many bins to put the data in. For more information on grid size see matplotlib documentation: http://matplotlib.org/devdocs/api/_as_gen/matplotlib.axes.Axes.hexbin.html
2. Maximum Value. This will allow you to change at which value the points in the heatmap will become their most saturated (dark red). Setting 'Auto' will dynamically assign the maximum value to be equal to the value of the maximum grid.
3. Day: A day or range of days to use for calculating the heatmaps. (E.g. 1 or 3-6 or All)
4. Trial: A trial or range of trials on the above selected days. (E.g. All or 1-4 or 2)
2. You can then click generate, and our software will plot a heatmap of your trial data. These will be saved in the "Heatmaps" subfolder.
![heatmap display](http://snyderlab.com/pathfinder/heatmap.jpg)
### Multiple ROI
![ROI](http://snyderlab.com/pathfinder/pathfinder_addROI.png)
1. You can use the 'Add Goal...' button to add an unlimited number of goal locations or regions of interest. The will allow Pathfinder to calculate relative to each position.
### Defining Software
Defining software allows Pathfinder to accept data from CSV or Excel that we haven't yet added support for. This works by prompting the user to select a sample file, and by selecting relevant cells, instructs Pathfinder where to look when dealing with the dataset.
![pathfinder_define](https://user-images.githubusercontent.com/7039454/86947754-0f0f2400-c101-11ea-8489-b06b47634c97.gif)
1. You can use the "Define.." button if Pathfinder is unable to read your software files.
2. Click on the Define button on the main View pane and a popup will appear. Select a sample file that is the same format as your dataset.
3. A window will open asking you to select a sample file from your dataset.
1. You will then select the appropriate X, Y, and Time columns in your sample file.
4. IT IS IMPORTANT THAT YOU THEN RE-OPEN THE DATASET USING THE FILE MENU, EITHER BY OPEN DIRECTORY OR FILE, BEFORE ATTEMPTING TO CALCULATE.
![pathfinder_open_directory](https://user-images.githubusercontent.com/7039454/86947834-2e0db600-c101-11ea-8e7c-f12d2117f3b8.gif)
## Motivation
This program was developed in order to simplify as well as remove inconsistencies in Morris Water Maze search strategy analysis.
## Installation
Installing the program is easy for both macOS and Windows users.
Pathfinder requires you to have Python 3.6 or later. We highly recommend installing Conda for python via the Anaconda 🐍 package https://www.anaconda.com/distribution/. Once installed, the installation of Pathfinder is easy.
For the most recent stable version, cloning the GitHub repository or installing via PyPi is possible. For the most recent beta version of the software, the develop branch of the GitHub repository will host the version currently being worked on.
Installation Instructions:
Windows:
Installing from the Python Package Index:
Launch a CMD window by launching `run` from the start menu, and typing `CMD` in Run.
Once the CMD shell has opened, type `pip install jsl-pathfinder`
Press enter
Installing from GitHub
Download and install Git here: https://git-scm.com
Open Git Bash.
Change the current working directory to the location where you want the cloned directory to be made.
Type `git clone https://github.com/MatthewBCooke/Pathfinder`
Press enter
***
Mac:
Installing from the Python Package Index:
Open a terminal window (located in your utilities folder under the Applications directory.
Type `pip install jsl-pathfinder`
Press return
Installing from GitHub
Open a terminal window Navigate to the folder you wish to install Pathfinder into
Type `git clone https://github.com/MatthewBCooke/Pathfinder/`
press return
## License
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Raw data
{
"_id": null,
"home_page": "https://github.com/MatthewBCooke/Pathfinder",
"name": "jsl-pathfinder",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "morris water maze jason snyder lab search strategy strategies analysis",
"author": "Matthew Cooke",
"author_email": "matthew.cooke@ubc.ca",
"download_url": "https://files.pythonhosted.org/packages/4e/c1/d02d0d1a6cf9de3e0dc7a0e62d418917d3eda505d9df94508d0bb7eb9687/jsl-pathfinder-1.5.0.tar.gz",
"platform": null,
"description": "# Pathfinder [![DOI](https://zenodo.org/badge/188258387.svg)](https://zenodo.org/badge/latestdoi/188258387)\n\nMorris Water Maze search strategy and entropy analysis.\n\nCreated by **Matthew Cooke** at **The University of British Columbia**, **Jason Snyder Lab**\n\n**For more information about the features and usage of Pathfinder please visit our [wiki](https://github.com/MatthewBCooke/Pathfinder/wiki)**\n\n## Synopsis\n\nThe Pathfinder package is a search strategy analysis tool for the Morris Water Maze, and can be expanded for other spatial navigation tasks. The program analyses X-Y coordinate data exported from commercially available tracking software. Pathfinder currently supports outputs from: Ethovision, Anymaze, WaterMaze, and ezTrack. We then calculate the best-fit search strategy for the trial. Trials are fit into one of: Direct Swim, Directed Search, Focal Search, Spatial indirect, Chaining, Scanning, Thigmotaxis, and Random Search.\n\n## Citing\n\nIf you use Pathfinder, please cite: Cooke MB, O'Leary TP, Harris P et al. (2019) Pathfinder: open source software for analyzing spatial navigation search strategies. F1000Research, 8:1521. https://doi.org/10.12688/f1000research.20352.2\n\n### Launching Pathfinder\n\n1. The program can be opened by calling pathfinder.\n2. This will open up the GUI window.\n\n![pathfinder_launch](https://user-images.githubusercontent.com/7039454/86947608-d5d6b400-c100-11ea-970c-f1ec05833de7.gif)\n\n3. You can then select an inividual file or a directory containing files from the File dropdown menu. These files must be Excel files if you are using Ethovision tracking software, and CSV files if you are using Anymaze, Watermaze, or ezTrack software. Define supports both Excel and CSV files.\n\n### Search Strategy Analysis\n\n1. For search strategy analysis we have multiple options. To set your own strategy parameters, click custom.\n\n2. (Settings) The settings button will spawn a parameters panel\n\n![pathfinder_settings_pane](https://user-images.githubusercontent.com/7039454/86947641-e4bd6680-c100-11ea-8263-3a20f429d2bf.gif)\n\n3. In the custom parameters pane, you can select and deselect any of the search strategies. Deselecting Strategies will remove them from consideration. You can also define the cutoff values for each strategy. See https://github.com/MatthewBCooke/Pathfinder/wiki/Description-of-Parameters for detailed description of parameters\n\n4. Once you have chosen your parameters, be sure to select your tracking software. Ethovision, Anymaze, ezTrack and Watermaze are currently supported. We also have a \"Define\" button that allows users to import most non-supported files.\n\n5. You may then alter the main values to suit your data. Platform position, pool centre, and pool diameter can be automatically calculated for groups of trials using one constant platform location. For all other data you must manually define these values (Example: `Platform Position (x,y) | 6.53,-17.3`).\n\n![pathfinder_goal_pos_change](https://user-images.githubusercontent.com/7039454/86947673-f3a41900-c100-11ea-82a5-c1245e0d02af.gif)\n\n6. There are 3 checkboxes above the **Calculate** button. The first, *Scale Values* is used to automatically scale the default values in an attempt to better match your data. This uses the Pixels/cm and the pool diameter to determine a constant C with which to multiply some parameters. (*Note: If you are using custom values, it is best to disable scaling*) The two other checkboxes enable manual categorization. Manual categorization can be used for trials in which our algorithm was unable to make a determination (**Manual categorization for uncategorized trials**) or for all trials (**Manual categorization for all trials**). \n\n![manual categorization](http://snyderlab.com/pathfinder/manual.jpg)\n\n7. Once you are satisfied with your parameters, click calculate. This will begin the process of determining search strategies for the trials. Once calculation is complete you will be shown a display of the results.\n\n![pathfinder_calculate](https://user-images.githubusercontent.com/7039454/86947699-00287180-c101-11ea-978c-89d4bd95e3c5.gif)\n\n8. Your results will be saved as a `.csv` file with whatever name was chosen in the *Output File* field. You will also receive a log file of the excecution (\"Logs\" folder), and any generated paths from manual catagorization will be saved under \"Paths\" in your present working directory.\n\n### Heatmaps\n\n![Heatmap parameters](http://snyderlab.com/pathfinder/heatmapparams.jpg)\n\n1. The parameters panel lets you tailor the output to your needs:\n\n 1. Grid size. This roughly translates into how many bins to put the data in. For more information on grid size see matplotlib documentation: http://matplotlib.org/devdocs/api/_as_gen/matplotlib.axes.Axes.hexbin.html\n\n 2. Maximum Value. This will allow you to change at which value the points in the heatmap will become their most saturated (dark red). Setting 'Auto' will dynamically assign the maximum value to be equal to the value of the maximum grid.\n\n\n 3. Day: A day or range of days to use for calculating the heatmaps. (E.g. 1 or 3-6 or All)\n\n 4. Trial: A trial or range of trials on the above selected days. (E.g. All or 1-4 or 2)\n\n2. You can then click generate, and our software will plot a heatmap of your trial data. These will be saved in the \"Heatmaps\" subfolder.\n\n![heatmap display](http://snyderlab.com/pathfinder/heatmap.jpg)\n\n\n### Multiple ROI\n\n![ROI](http://snyderlab.com/pathfinder/pathfinder_addROI.png)\n\n1. You can use the 'Add Goal...' button to add an unlimited number of goal locations or regions of interest. The will allow Pathfinder to calculate relative to each position.\n\n### Defining Software\n\nDefining software allows Pathfinder to accept data from CSV or Excel that we haven't yet added support for. This works by prompting the user to select a sample file, and by selecting relevant cells, instructs Pathfinder where to look when dealing with the dataset. \n\n![pathfinder_define](https://user-images.githubusercontent.com/7039454/86947754-0f0f2400-c101-11ea-8489-b06b47634c97.gif)\n\n1. You can use the \"Define..\" button if Pathfinder is unable to read your software files.\n\n2. Click on the Define button on the main View pane and a popup will appear. Select a sample file that is the same format as your dataset.\n\n3. A window will open asking you to select a sample file from your dataset.\n 1. You will then select the appropriate X, Y, and Time columns in your sample file.\n4. IT IS IMPORTANT THAT YOU THEN RE-OPEN THE DATASET USING THE FILE MENU, EITHER BY OPEN DIRECTORY OR FILE, BEFORE ATTEMPTING TO CALCULATE.\n\n![pathfinder_open_directory](https://user-images.githubusercontent.com/7039454/86947834-2e0db600-c101-11ea-8e7c-f12d2117f3b8.gif)\n\n\n## Motivation\n\nThis program was developed in order to simplify as well as remove inconsistencies in Morris Water Maze search strategy analysis. \n\n## Installation\n\nInstalling the program is easy for both macOS and Windows users.\n\nPathfinder requires you to have Python 3.6 or later. We highly recommend installing Conda for python via the Anaconda \ud83d\udc0d package https://www.anaconda.com/distribution/. Once installed, the installation of Pathfinder is easy.\n\nFor the most recent stable version, cloning the GitHub repository or installing via PyPi is possible. For the most recent beta version of the software, the develop branch of the GitHub repository will host the version currently being worked on.\n\nInstallation Instructions:\n\nWindows:\n\nInstalling from the Python Package Index:\nLaunch a CMD window by launching `run` from the start menu, and typing `CMD` in Run.\n\nOnce the CMD shell has opened, type `pip install jsl-pathfinder`\n\nPress enter\n\nInstalling from GitHub\n\nDownload and install Git here: https://git-scm.com\n\nOpen Git Bash.\n\nChange the current working directory to the location where you want the cloned directory to be made.\n\nType `git clone https://github.com/MatthewBCooke/Pathfinder`\n\nPress enter\n\n***\n\nMac:\n\nInstalling from the Python Package Index:\n\nOpen a terminal window (located in your utilities folder under the Applications directory.\n\nType `pip install jsl-pathfinder`\n\nPress return\n\nInstalling from GitHub\n\nOpen a terminal window Navigate to the folder you wish to install Pathfinder into\n\nType `git clone https://github.com/MatthewBCooke/Pathfinder/`\n\npress return\n\n\n## License\n\nGNU GENERAL PUBLIC LICENSE\n Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n",
"bugtrack_url": null,
"license": "GNU",
"summary": "Morris Water Maze Search Strategy Analysis",
"version": "1.5.0",
"project_urls": {
"Homepage": "https://github.com/MatthewBCooke/Pathfinder"
},
"split_keywords": [
"morris",
"water",
"maze",
"jason",
"snyder",
"lab",
"search",
"strategy",
"strategies",
"analysis"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4ec1d02d0d1a6cf9de3e0dc7a0e62d418917d3eda505d9df94508d0bb7eb9687",
"md5": "f8c446b63a6ba7fcd675e2f43f48f785",
"sha256": "57a60980782c82f7114cee28becd3e2e22d60ffd443ec1028b4292e047e0230b"
},
"downloads": -1,
"filename": "jsl-pathfinder-1.5.0.tar.gz",
"has_sig": false,
"md5_digest": "f8c446b63a6ba7fcd675e2f43f48f785",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 49699,
"upload_time": "2024-05-27T18:29:57",
"upload_time_iso_8601": "2024-05-27T18:29:57.467170Z",
"url": "https://files.pythonhosted.org/packages/4e/c1/d02d0d1a6cf9de3e0dc7a0e62d418917d3eda505d9df94508d0bb7eb9687/jsl-pathfinder-1.5.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-27 18:29:57",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "MatthewBCooke",
"github_project": "Pathfinder",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "jsl-pathfinder"
}