Skip to main content

Tool for LMT data analysis

Reason this release was yanked:

1.0.3 is better

Project description

LMT Widget Tool (LWT)

LMT Widget Tool is as tool for the Live Mouse Tracker (LMT) data analysis for users without programming experience.

You will find more information about LMT on its website and publication.

In our tool, we use the LMT-Analysis v1.0.5 with few changes in files for our tool to work.

1. Download

First of all, you will need to download the folder which contains all of the files to run the tool:

alt_download

First of all, move the zipped folder on your desktop. Once it's done, make sure to unzip the zipped folder you just download (download 7-Zip for free to unzip zipped folders if you don't have it already on your computer).
To unzip, you have to do a right-click on the folder, then click on "7-Zip" and "Extract here". If you are using a Windows 11 version, do a right-click on the zipped folder, then click on "Show more options", then "7-Zip" and "Extract here".

2. Installation

2.1. Python

To make the tool work, you will need a specific version of Python. Download the 3.10 Python version here. Go down until the 'Files' section and install 'Windows installer (64-bit)' (64-bit is recommended but if your computer is on a 32-bit OS you should download the 32-bit version).

alt_python

Then, execute the .exe file you just downloaded.

:warning: WARNING

During the installation, make sure to check the box "Add python.exe to PATH" and click on "Install now" until Python is installed:

alt_path

2.2. Jupyter Lab

Once you have installed Python, open your command prompt. To open the command prompt, press the keys Windows + R, then type "cmd" and press Enter. Here, put the following command :

pip install jupyterlab==3.5.0

2.3. Python Requirements (See requirements.txt)

Here is a visualisation of the packages that will be downloaded later :

  • lxml==4.9.1
  • affine==2.3.1
  • networkx==2.8.5
  • matplotlib==3.5.2
  • pandas==1.4.3
  • seaborn==0.11.2
  • dabest==2023.2.14
  • statsmodels==0.13.2
  • tabulate==0.8.10
  • ipywidgets==8.0.3

In your command prompt, you need to change your directory path to install these packages. To do that, you have to copy the path of the downloaded folder into (e.g. : C:\Users\guest\Desktop\LMT_Widget_Tool-LWT-main) and paste the path you just copied in your command prompt (yes, there is a space between 'cd' and your pasted path):

cd paste\your\path\here

Then, to install all the packages from the previous list in your command prompt, do it with the command:

pip install -r requirements.txt

3. Launch Jupyter Lab

Each time you want to launch Jupyter Lab, you will have to open you command prompt and use the following command :

jupyter lab

4. Launch the tool

Once Jupyter Lab is launched, open the folder '...\LMT_Widget_Tool-LWT-main\scripts' in Jupter Lab and open the file :

LMT_Widget_Tool.ipynb

:warning: WARNING

Before using the tool, make sure to restart the kernel to clear it :

alt_restart_kernel

Sometimes you will need to restart the kernel when it seems that the tool crashed, but don’t do it when it’s running !

First, you will have to execute the first cell code to install the packages for the tool. Once all the packages are installed, close JupyterLab and close the Kernel by pressing the keys "Ctrl + C" inside of your command prompt. Then restart JupyterLab in your command prompt using :

jupyter lab

Here you can enjoy the analysis !

Order for analysis

Rebuild databases and convert into csv files

alt_rebuil_plus_export

The first part will rebuild the databases by deleting the data and rebuild them using the detections and export these data into csv files. It is recommanded to do timebins of 5 or 10 minutes for each bin

:warning: Warning

alt_only_export

The second part is optional. It is usefull only if you want to convert your data into csv using different timebins. So be careful with this code cell, use it only if you want to change the timebins of your data.

alt_merge The third part will merge the csv files created into one csv file which will be used by the tool for the analysis.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

LMT_Widget_Tool is released under the GNU GPL v3.0 licence. See the LICENSE file.

Copyright (C) 2023 IGF - CNRS - INSERM - Université de Montpellier

LMT_Widget_Tool uses the LMT-analysis code provided on GitHub. This code is also under the GNU GPL v3.0 licence. GNU GPL ?

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

LWTools-1.0.2.tar.gz (96.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

LWTools-1.0.2-py3-none-any.whl (135.7 kB view details)

Uploaded Python 3

File details

Details for the file LWTools-1.0.2.tar.gz.

File metadata

  • Download URL: LWTools-1.0.2.tar.gz
  • Upload date:
  • Size: 96.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for LWTools-1.0.2.tar.gz
Algorithm Hash digest
SHA256 0a58bd8487cd3fa0efb83c9c1095c84dc4693c832d20ea20e6baf7481fccea50
MD5 325e48c73d8b1d70c91dc45a1beb114a
BLAKE2b-256 015f6aea5e70e9e659099c25da532172db1cfe5a8515ae799ffa4c10dc764b8d

See more details on using hashes here.

File details

Details for the file LWTools-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: LWTools-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 135.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for LWTools-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e4a0a646ddd33419b79f230e6a04c809f93b21de2bce63fd96f2feb4693a0a41
MD5 a5f82f32ae732fdc1e491c4a94e3d925
BLAKE2b-256 11e043bb2f245ca0d14b3313b3d9f6cd96041d78220150aa0849b9801280b46f

See more details on using hashes here.

Supported by

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