A python package for data analysis related to LEXI
Project description
A python package for data analysis related to LEXI.
Installation Guide
The next section of this document will guide you through the installation process of lexi.
Though it is not necessary, we strongly recommend that you install lexi in a virtual environment.
This will prevent any conflicts with other Python packages you may have installed.
A virtual environment is a self-contained directory tree that contains a Python installation for a particular version of Python, plus a number of additional packages. You can install packages into a virtual environment without affecting the system's Python installation. This is especially useful when you need to install packages that might conflict with other packages you have installed.
Creating a virtual environment
There are several ways to create a virtual environment. We recommend using python3 to do so.
For this exercise, we will assume that you have a directory called Documents/lexi where you will
install lexi and create your virtual environment. Please replace Documents/lexi with the actual
path to the directory where you want to install lexi and create your virtual environment.
- cd into
Documents/lexi
Using python3
You can create a virtual environment called lexi_venv (or any other name you might like) using
python3 by running the following command:
python3 -m venv lexi_venv
You can activate the virtual environment by running the following command:
on Linux/MacOS:
source lexi_venv/bin/activate
on Windows:
.\lexi_venv\Scripts\activate
You can deactivate the virtual environment by running the following command:
deactivate
Installing lexi
Installing from PyPI
After you have created and activated your virtual environment, you can install lexi from PyPI by running the following command:
pip install lexi_bu
Installing from source
After you have created and activated your virtual environment, you can install lexi directly from
GitHub by running the following command:
pip install git+https://github.com/Lexi-BU/lexi
NOTE: This will install the latest version of lexi from the main branch. If you want to install a
specific version, please append the version number to the URL.
For example, if you want to install version 0.3.1, you can run the following command:
pip install git+https://github.com/Lexi-BU/lexi@0.3.1
Installing from a local copy
We don't recommend this, however if you must, here are the details.
After you have created and activated your virtual environment, you can install lexi from a local copy
by following these steps:
NOTE: We will use version 0.3.4 as an example. Please replace 0.3.4 with the actual version number
you want to install.
-
Download
lexi-0.3.4.tar.gzdirectory from the following link: Download LEXI Software -
Copy the
lexi-0.3.4.tar.gzfile intoDocuments/lexi(or any other directory where you want to installlexiin). -
Activate your virtual environment using the instructions above.
-
Install
lexiby running the following command (NOTE: replacelexi-0.3.4.tar.gzwith the actual name of the file you downloaded):pip install lexi-0.3.4.tar.gz
This will install lexi and all its dependencies.
Verifying the installation
You can verify that lexi was installed by running the following command:
pip show lexi_bu
which should produce output similar to the following:
Name: lexi_bu
Version: 0.0.1
Summary: Main repository for all data analysis related to LEXI
Home-page:
Author: qudsiramiz
Author-email: qudsiramiz@gmail.com
License: GNU GPLv3
Location: /home/cephadrius/Desktop/lexi_code_test_v2/lexi_test_v2/lib/python3.10/site-packages
Requires: cdflib, matplotlib, pandas, pytest, toml
Required-by:
You can also verify that lexi was installed by running the following command:
pip list
which should produce output similar to the following:
Package Version
--------------- -------
.....................
kiwisolver 1.4.5
lexi_bu 0.0.1
matplotlib 3.8.2
numpy 1.26.4
.....................
You can open a Python shell and import lexi by running the following command:
python
import lexi_bu as lexi
lexi.__version__
which should produce output similar to the following:
'0.0.1'
If that worked, congratulations! You have successfully installed lexi.
Using LEXI Software
NOTE: We will add more examples and tutorials in the future. For now, we will use a Jupyter Notebook
to demonstrate how to use lexi to analyze data from LEXI.
Using the Example Jupyter Notebook
-
If you haven't already, download the example folder from the following link: Download LEXI Examples and extract it to a directory of your choice. We will refer to this directory as
examplesfor the rest of this document. -
Activate your virtual environment. If you haven't already created a virtual environment, please refer to the creating a virtual environment section for instructions on how to do so. Remember that you can activate your virtual environment by running the following command:
on Linux/MacOS:
source lexi_venv/bin/activate
on Windows:
.\lexi_venv\Scripts\activate
-
cdinto theexamplesdirectory and -
If you haven't already, install Jupyter Notebook by running the following command:
pip install jupyter
- Open the Jupyter Notebook by running the following command:
jupyter notebook lexi_tutorial.ipynb
- This will open a new tab in your web browser and will look like the image below:
- You can now run the cells in the Jupyter Notebook to see how to use
lexito analyze data from LEXI.
Citation
If you use lexi in your research, please cite the following paper:
@software{ramiz_qudsi_2025_14585868,
author = {Ramiz Qudsi and
Zoe Chitty and
Cadin Connor and
Brian Walsh},
title = {Lexi-BU/lexi: v0.3.4},
month = jan,
year = 2025,
publisher = {Zenodo},
version = {v0.3.4},
doi = {10.5281/zenodo.14585868},
url = {https://doi.org/10.5281/zenodo.14585868},
swhid = {swh:1:dir:0f71ede7ba2db5f1548c45f330b2c945af59794b
;origin=https://doi.org/10.5281/zenodo.14582915;vi
sit=swh:1:snp:6552c7107029bb957e1e2592742d13109209
1a11;anchor=swh:1:rel:5ca1c846400ca145a0d2599c9951
04421046558a;path=Lexi-BU-lexi-74dd3c2
},
}
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lexi_bu-0.3.4.tar.gz.
File metadata
- Download URL: lexi_bu-0.3.4.tar.gz
- Upload date:
- Size: 1.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.6 importlib-metadata/7.0.1 keyring/24.3.0 pkginfo/1.9.6 readme-renderer/34.0 requests-toolbelt/0.10.1 requests/2.31.0 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.18 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eda081227a92c3c2ca2d59a6b22d03b46b3f40fc3ede10fdae0816dd39c0a5ef
|
|
| MD5 |
76bdac3527545bbb12d2794505c8987a
|
|
| BLAKE2b-256 |
4670b249f8f37fee2e21ebb8969252140d3277af8e87b58537a7136f20b1a767
|
File details
Details for the file lexi_bu-0.3.4-py3-none-any.whl.
File metadata
- Download URL: lexi_bu-0.3.4-py3-none-any.whl
- Upload date:
- Size: 1.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.6 importlib-metadata/7.0.1 keyring/24.3.0 pkginfo/1.9.6 readme-renderer/34.0 requests-toolbelt/0.10.1 requests/2.31.0 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.18 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5f256533288a96bf155e53d42043f9605cb2f165f042e8b27849c242b190451
|
|
| MD5 |
07d69d619f985968bf423c4986168ffb
|
|
| BLAKE2b-256 |
2f9bc9ad6a5d75c55dd8df82be61df1af73b032d16e1942c6942221de2cd1fb5
|