No project description provided
Project description
User Guide: MyNHANES
Introduction
Welcome to MyNHANES, a powerful tool designed to facilitate the management and analysis of NHANES data. MyNHANES provides an integrated environment to manage master data, work processes, and apply transformations on NHANES datasets. This guide will help you get started with installing MyNHANES, setting up your environment, and using its key features.
Installation
To install MyNHANES, we recommend using Python 3.12 or above. Follow these steps:
-
Create a virtual environment (optional but recommended):
python -m venv mynhanes_env source mynhanes_env/bin/activate # On Windows use `mynhanes_env\Scripts\activate`
-
Install MyNHANES via pip:
pip install mynhanes
Initial Setup
After installation, navigate to the package directory and run the following command to set up the database, create a user, and load the master data and global transformation rules:
cd path_to_mynhanes_package # Replace with the actual path
python manage.py deploy --type local
This command will initialize the SQLite database and populate it with the necessary data.
Running the Web Server
Once the setup is complete, you can start the web server to access the MyNHANES system via a web browser:
python manage.py runserver
Visit http://127.0.0.1:8000/admin in your web browser to log in and begin using MyNHANES.
Core Modules
Master Data Management
MyNHANES uses master data such as cycles, datasets, variables, and tags to organize NHANES data. These elements are crucial for managing and navigating the data efficiently.
- Cycles: Represent different NHANES survey periods.
- Datasets: Collections of data for each cycle.
- Variables: Individual variables within the datasets.
- Tags: Used to categorize and filter datasets and variables.
WorkProcess
The WorkProcess module manages the lifecycle of datasets, from downloading to processing.
- Activating a Dataset: In the admin interface, you can activate datasets for download by setting their status and managing their lifecycle.
- Ingestion: Once a dataset is activated, you can ingest the data into the system for further analysis.
Transformations
Transformations allow you to apply predefined rules to the NHANES data, modifying or normalizing it for analysis.
- Running Transformations: Transformations can be triggered through the admin interface, where you select the relevant rules to apply to the data.
- Custom Rules: You can create and manage custom transformation rules based on your analytical needs.
Queries and Data Export
MyNHANES provides tools for creating dynamic queries and exporting the results.
- Query Builder: Use the query builder to define custom queries across cycles, datasets, and variables.
- Data Export: Export query results to CSV or other formats directly from the admin interface.
Storage
MyNHANES uses SQLite as the default database for storing all data, which makes it easy to manage and share data files.
Project details
Release history Release notifications | RSS feed
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 mynhanes-0.2.2.tar.gz.
File metadata
- Download URL: mynhanes-0.2.2.tar.gz
- Upload date:
- Size: 2.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.3 Darwin/23.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d54bae6ced1bbb23add1e921a99f70677e12416c08dee8726ccc562030b6cc0c
|
|
| MD5 |
72811a78bf64590981f34818e4f0775c
|
|
| BLAKE2b-256 |
efa751f7c500a6852a34ba434a462d74ad6fec6bf9995a478692bd75b0cad0bb
|
File details
Details for the file mynhanes-0.2.2-py3-none-any.whl.
File metadata
- Download URL: mynhanes-0.2.2-py3-none-any.whl
- Upload date:
- Size: 2.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.3 Darwin/23.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36deddd6e65e50a7458c158aabe7630ba0985a79df72ca04ecdb44b3b5a320d2
|
|
| MD5 |
c7f328ee3eb32d971020a046c2d24b74
|
|
| BLAKE2b-256 |
4949816e0b1be602e6e87d9b0ce2a4a27eb2bcd06dc7607d4c641961e0dba834
|