diff --git a/.gitignore b/.gitignore deleted file mode 100644 index ffdebf3..0000000 --- a/.gitignore +++ /dev/null @@ -1,145 +0,0 @@ -# ---> Python -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -wheels/ -share/python-wheels/ -*.egg-info/ -.installed.cfg -*.egg -MANIFEST - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.nox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*.cover -*.py,cover -.hypothesis/ -.pytest_cache/ -cover/ - -# Translations -*.mo -*.pot - -# Django stuff: -*.log -local_settings.py -db.sqlite3 -db.sqlite3-journal - -# Flask stuff: -instance/ -.webassets-cache - -# Scrapy stuff: -.scrapy - -# Sphinx documentation -docs/_build/ - -# PyBuilder -.pybuilder/ -target/ - -# Jupyter Notebook -.ipynb_checkpoints - -# IPython -profile_default/ -ipython_config.py - -# pyenv -# For a library or package, you might want to ignore these files since the code is -# intended to run in multiple environments; otherwise, check them in: -# .python-version - -# pipenv -# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. -# However, in case of collaboration, if having platform-specific dependencies or dependencies -# having no cross-platform support, pipenv may install dependencies that don't work, or not -# install all needed dependencies. -#Pipfile.lock - -# PEP 582; used by e.g. github.com/David-OConnor/pyflow -__pypackages__/ - -# Celery stuff -celerybeat-schedule -celerybeat.pid - -# SageMath parsed files -*.sage.py - -# Environments -.env -.venv -env/ -venv/ -ENV/ -env.bak/ -venv.bak/ - -# Spyder project settings -.spyderproject -.spyproject - -# Rope project settings -.ropeproject - -# mkdocs documentation -/site - -# mypy -.mypy_cache/ -.dmypy.json -dmypy.json - -# Pyre type checker -.pyre/ - -# pytype static type analyzer -.pytype/ - -# Cython debug symbols -cython_debug/ - - -# custom -Data/* -.idea/ -history/ diff --git a/README.md b/README.md index 1b69eb3..eb8c85d 100644 --- a/README.md +++ b/README.md @@ -19,12 +19,20 @@ Quality_Relabel 主目录 ``` ## 测试数据集 + 670 [测试数据集](https://kod.server.marques22.com/#s/799gDeDw) +## 程序流程框图 + +![流程框图](graph/Quality_Relabel.svg) + ## TODO + 2022-03-27 22:27 -1. 完成启动入口(预计半天) -2. 完成参数说明(预计半天) + +1. ~~完成启动入口(预计半天)~~ +2. ~~完成参数说明(预计半天)~~ 3. 导出PSG所有标签(额外的工作) 4. 迁移BCG标签,中文字符切换目前已经完成目前存在ubuntu,需要文件重命名(预计一小时) -5. 完成日志记录模块(预计半天) \ No newline at end of file +5. ~~完成日志记录模块(预计半天)~~ + diff --git a/graph/Quality_Relabel.svg b/graph/Quality_Relabel.svg new file mode 100644 index 0000000..257866a --- /dev/null +++ b/graph/Quality_Relabel.svg @@ -0,0 +1,608 @@ + + + + + + + + + + + + + + + + + + + + + + + + + 页-1 + + + + + 开始/结束 + 开始 + + + + + + + + + + + + + + + + + + + 开始 + + 数据 + 输入心晓信号 心晓事件标签 + + + + + + + + + + + + + + + + + + + 输入心晓信号心晓事件标签 + + 数据.5 + 输入PSG信号 PSG事件标签 + + + + + + + + + + + + + + + + + + + 输入PSG信号PSG事件标签 + + 动态连接线.7 + + + 流程 + 20Hz三阶巴特沃斯低通滤波器 + + + + + + + + + + + + + + + + + + + 20Hz三阶巴特沃斯低通滤波器 + + 流程.9 + 0.7Hz三阶巴特沃斯低通滤波器 + + + + + + + + + + + + + + + + + + + 0.7Hz三阶巴特沃斯低通滤波器 + + 流程.11 + 根据采样率 重采样 + + + + + + + + + + + + + + + + + + + 根据采样率重采样 + + 动态连接线.17 + + + + 动态连接线.18 + + + + 动态连接线.19 + + + + 动态连接线 + + + + 动态连接线.21 + + + + 数据.24 + 提取获得 心晓 心晓呼吸 ABD THO Flow T Flow P SpO2 + + + + + + + + + + + + + + + + + + + + 提取获得心晓心晓呼吸ABDTHOFlow TFlow PSpO2 + + 动态连接线.25 + + + + 动态连接线.26 + + + + 动态连接线.27 + + + + 判定 + 根据心晓事件个数遍历 + + + + + + + + + + + + + + + + + + + 根据心晓事件个数遍历 + + 开始/结束.30 + 结束 + + + + + + + + + + + + + + + + + + + 结束 + + 流程.31 + 获取PSG事件 长度、标签 + + + + + + + + + + + + + + + + + + + 获取PSG事件长度、标签 + + 流程.32 + 获取心晓事件 长度、标签 + + + + + + + + + + + + + + + + + + + 获取心晓事件长度、标签 + + 流程.33 + 向前、向后 获取一分钟 + + + + + + + + + + + + + + + + + + + 向前、向后获取一分钟 + + 流程.34 + 向前、向后 获取一分钟+与PSG信号长度差值/2 + + + + + + + + + + + + + + + + + + + 向前、向后获取一分钟+PSG信号长度差值/2 + + 流程.36 + 事件上色标注 + + + + + + + + + + + + + + + + + + + 事件上色标注 + + 流程.38 + 事件上色标注 + + + + + + + + + + + + + + + + + + + 事件上色标注 + + 流程.39 + 显示 + + + + + + + + + + + + + + + + + + + 显示 + + 动态连接线.40 + + + + 动态连接线.41 + + + + 动态连接线.42 + + + + 动态连接线.43 + + + + 动态连接线.44 + + + + 动态连接线.45 + + + + 动态连接线.46 + + + + 动态连接线.47 + + + + 动态连接线.48 + + + + 动态连接线.49 + + + + 动态连接线.51 + + + +