ftir文件的文件重命名程序
ftir-renamer的Python项目详细描述
ftir文件重命名器
简介
根据严格的命名方案重命名ftir中的文件
虚拟环境
激活ftir重命名器虚拟环境
source ftir_rename/bin/activate
python3 -m venv ftir_rename
source ftir_rename/bin/activate
安装
从要安装程序的文件夹中的命令行:
pip install ftir_renamer
升级
pip install --upgrade ftir_renamer
要求
- 类Unix环境
- ftir相关元数据电子表格(扩展名为.xlsx)
- 与电子表格中的ftir id相对应的.spc输出文件
ftir_重命名
shell脚本自动重命名USB记忆棒中的文件
必需参数
-f
The absolute path to the folder containing the .spc files. Note that either this folder or its parent must contain an Excel file named FTIR.XLSX
that contains all the required metadata for renaming.
运行
运行脚本的命令示例
ftir_rename -f /path/to/FTIR_files
重命名器.py
重命名.spc文件的python脚本
必需参数
-s
The path of the folder containing the FTIR output files
-f
Absolute path to the spreadsheet containing the FTIR metadata
-o
The absolute path of the folder to store the renamed files
运行
运行脚本的命令示例
renamer.py -f /path/to/FTIR.xlsx -s /path/to/files -o /path/to/outputs
用法
usage: renamer.py [-h] -s SPECTRA_PATH -f FILENAME -o OUTPUTPATH
Rename files for FTIR experiments using strict naming scheme
-h, --help show this help message and exit
required arguments:
-s SPECTRA_PATH, --sequencepath SPECTRA_PATH
Path of .spc files to process.
-f FILENAME, --filename FILENAME
Name of .xls(x) file with renaming information. Must
conform to agreed upon format. This file must be in the
supplied sequencepath.
-o OUTPUTPATH, --outputpath OUTPUTPATH
Optionally specify the folder in which the renamed
files are to be stored. Provide the full path e.g.
/path/to/output/files