肺癌18基因生成报告python代码

rui.li a9fc7acc72 修复判断阅动逻辑错误 1 rok temu
builder 4eb7b11f43 放入builder和runner 1 rok temu
design 6fb65d0b44 New lc18 template and kdb 2 lat temu
fonts f3df09d729 添加黑体字体5.03 1 rok temu
pics 359c0d14d9 first commit 3 lat temu
runner e197b99993 添加run.sh用于测试 1 rok temu
src a9fc7acc72 修复判断阅动逻辑错误 1 rok temu
var_anno cb0bfef843 version 0.2.0 3 lat temu
.gitignore 1d8a24ebff 删掉0.1-2.3版本的模板和配置文件 1 rok temu
README.md 48ff42db14 Fix pyinstaller compile bug. 2 lat temu
pyproject.toml f2a96163f7 bug fixes and pyinstaller package 3 lat temu
requirements.txt 716ad19738 Add missing package. 2 lat temu
setup.py 0265437fc6 添加2.5.3模板,包版本设为0.7.16 1 rok temu

README.md

Build linux package

python setup.py bdist_wheel

Build powershell package

.\build.ps1

Build cli executable

python -m venv venv
.\venv\Scripts\Activate.ps1
python -m pip install dist/lc18report-[version]-cp[py-version]-cp[py-version]-win_amd64.whl
python -m pip install tinyaes
pyinstaller.exe pyinstaller_folder.spec
pyinstaller.exe pyinstaller_onefile.spec
deactivate

Batch running mode

To run this script from cli

python3 -m venv venv
source venv/bin/activate
python3 -m pip install dist/lc18report-[version]-cp[py-version]-cp[py-version]-win_amd64.whl
python3 run.py server_mode -i /path/to/18gene/excel_input.excel -o /ngs/BDA/18gene/自动报告/
deactivate

To run this script within python program

from lc18report import run_server_mode
args = {
	'input_xlsx' = ''
	'output_dir' = ''
	'template_version' = ''
	'kdb_version' = ''
	'log_dir' = ''
	'debug_mode' = ''
	'add_suffix' = ''
}
run_server_mode(args)

Single sample mode (LC18 software mode)