Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/computationalphysiology/mps_automation
Scripts for automating the mps analysis
https://github.com/computationalphysiology/mps_automation
Last synced: 7 days ago
JSON representation
Scripts for automating the mps analysis
- Host: GitHub
- URL: https://github.com/computationalphysiology/mps_automation
- Owner: ComputationalPhysiology
- Created: 2021-02-12T14:57:17.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-29T10:35:39.000Z (over 2 years ago)
- Last Synced: 2024-12-01T19:23:36.150Z (2 months ago)
- Language: Python
- Size: 91.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- Contributing: CONTRIBUTING.md
- Authors: AUTHORS.md
Awesome Lists containing this project
README
# MPS Automation Scripts
![CI](https://github.com/ComputationalPhysiology/mps_automation/workflows/CI/badge.svg)
Scripts for automating the mps analysis
* Source code: https://github.com/ComputationalPhysiology/mps_automation
## Install
Create a virtual environment
```
python -m virtualenv venv
```
Activate virtual environment
```
(Unix)
source venv/bin/activate
```
```
(Windows)
.\venv\Scripts\activate
```Install private dependencies
- [mps](https://github.com/finsberg/mps)
- [mps_data_parser](https://github.com/ComputationalPhysiology/mps_data_parser)Install package with its dependencies
```
python -m pip install .
```## Usage
### Command line interface
Once installed you should be able to run the command
```
python -m mps_automation --help
```
and this should display some information about how to run the script.
In brief, if you have a folder. Put the config file (see info below) in the root folder of the folder you want to analyze. For example if you want to analyze `/Users/finsberg/data/experiment1` then you should also have a file at `/Users/finsberg/data/experiment1/config.yaml`. If is also possible to specify a path to this fileTo analyze the the folder you execute the command
```
python -m mps_automation
```
for example
```
python -m mps_automation /Users/finsberg/data/experiment1
```
(note that you can also use relative paths).Once this is done you should see the following files and folder appearing in your experiment folder
- `database.db`
- This is file containing all the information about all the files in the experiment. This is basically a huge table (or SQLite database) where each row is one recording that contains information about chips, media, doses, drugs, pacing, trace type, as well as the full analysis. You can open and inspect this file with to tool like [DB Browser for SQLite](https://sqlitebrowser.org)
- `data.xlsx`
- This is an excel file with a few sheets summarizing the analysis of the folder
- `plots`
- TBW## Credits
This package was created with
[Cookiecutter](https://github.com/audreyr/cookiecutter) and the
[finsberg/cookiecutter-pypackage](https://github.com/finsberg/cookiecutter-pypackage)
project template.