EEMs-toolkit - 0.2.0
EEMs-toolkit是一个可以在Python上对三维荧光(EEM)进行平行因子分析(PARAFAC)的工具包,功能大致类似于MATLAB的drEEM toolbox。
开发环境
Windows 10,Python 3.11.7,采用的额外的包及版本见下表:
| 包 | 版本 |
|---|---|
| numpy | 2.4.6 |
| pandas | 3.1.1 |
| matplotlib | 3.11.2 |
| scipy | 1.17.1 |
| tensorly | 0.10.0 |
| tlviz | 0.1.1 |
| xlrd | 2.0.2 |
| openpyxl | 3.1.5 |
安装EEMs-toolkit
pip install EEMs-toolkit
功能简介
1. 数据导入
- 样本导入
- 空白导入
- 紫外光谱导入
2. 预处理
2.1 内滤效应校正
原始数据
校正后
2.2 扣除空白
2.3 拉曼单位化
2.4 去除不需要的波长部分
2.5 稀释因子校正
2.6 去除瑞丽(Rayleigh)散射和拉曼(Raman)散射
2.7 缺失值插值
(可选)荧光矩阵平滑(高斯核)
3. PARAFAC分析
- 采用非负约束计算不同组分数的模型
- 绘制异常样本测试图
- 去除异常样本
- 重新计算模型,再次绘制异常样本测试图
- 观察残差、核一致性……
- 运行分半分析(S4C6T3)
- 分半检验
- 确认组分数
4. 结果
- 组分图绘制
- 载荷图绘制
- 模型结果导出,包括FMax,Em loadings,Ex loadings,组分图数据
5. 其他功能
-
预处理后样本数据导出
-
OpenFluor文件导出,可上传对比数据库
-
区域积分(FRI)计算,结果导出
-
荧光指数(Fluorescence index、Freshness index、Humification index,Biological index)计算,结果导出
-
光谱斜率SR计算,结果导出
测试示例
见 demo1.ipynb
Releases 中应用程序教程
引用 Cite
Machine Learning-Assisted Source Tracing in Domestic-Industrial Wastewater: A Fluorescence Information-Based Approach
DOI: 10.1016/j.watres.2024.122618
Star History
Metadata
Release files for eems-toolkit 0.2.0
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 |
|---|---|---|---|---|
| eems_toolkit-0.2.0.tar.gz | 20.3 kB | Without provenance | Details for eems_toolkit-0.2.0.tar.gz |
Release files / eems_toolkit-0.2.0.tar.gz
| Download URL | eems_toolkit-0.2.0.tar.gz |
|---|---|
| Size | 20.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
04779e35ccf64c03b4e25fa1435b9273145284c42ed4cee0d619b269b7b0ac32
|
|
BLAKE2b-256 checksum How to use checksums |
91ead617788be326d9a52d78f70102977a144bfa5d65ca1e986db1d884ba807e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.7
|
Security for eems-toolkit 0.2.0
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.