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.
Metadata
Release files for mynhanes 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mynhanes-0.2.2.tar.gz | 2.5 MB | Without provenance | Details for mynhanes-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mynhanes-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for mynhanes-0.2.2-py3-none-any.whl |
Total release size: 5.1 MB
Release files / mynhanes-0.2.2.tar.gz
| Download URL | mynhanes-0.2.2.tar.gz |
|---|---|
| Size | 2.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d54bae6ced1bbb23add1e921a99f70677e12416c08dee8726ccc562030b6cc0c
|
|
BLAKE2b-256 checksum How to use checksums |
efa751f7c500a6852a34ba434a462d74ad6fec6bf9995a478692bd75b0cad0bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.10.3 Darwin/23.4.0
|
Release files / mynhanes-0.2.2-py3-none-any.whl
| Download URL | mynhanes-0.2.2-py3-none-any.whl |
|---|---|
| Size | 2.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
36deddd6e65e50a7458c158aabe7630ba0985a79df72ca04ecdb44b3b5a320d2
|
|
BLAKE2b-256 checksum How to use checksums |
4949816e0b1be602e6e87d9b0ce2a4a27eb2bcd06dc7607d4c641961e0dba834
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.10.3 Darwin/23.4.0
|
Security for mynhanes 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.