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

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何修复使用高停止条件时的StackOverflowerError   java两个非常好的int被除掉,仍然返回0   java将SpringWeb应用程序(Web.xml)迁移到Springboot 1.5.10   java使用CQL查询的结果集检索整行   java Solr 7:当某些请求命中Solr时,QueuedThreadPool线程数很高   在ActionListener中访问另一个类时发生java NullPointerException   异常处理Java重构类似方法的代码   java Hi我需要帮助在我的JSP页面中传输图像   Android中的java工作线程   覆盖字段值的JavaDB模型策略   带有resteasy的java Spring引导“找不到名为requestMappingHandlerMapping的bean的类型”错误   java如何插入(int)和(date)类型?   Java Swing计时器和ActionEvent   java运行一个没有jUnit作为运行选项的类   java通过解析异常来获取方法名及其包含的参数   与枚举匹配的java Get-from列表元素   我的程序中出现java内存不足错误   java在C中创建jobject不起作用   如何在java中测试这个void方法?