将原始文本数据文件转换为CONTIN-CD输入文件。
项目描述
txt2contincd 将原始文本数据文件转换为 CONTIN-CD 输入文件。它使用 maidenhair 读取原始文本文件,因此如果存在maidenhair插件,任何类型的原始文本文件都可以使用。
安装
使用 pip 如下
$ pip install txt2contincd
快速使用
假设您已按照以下条件测量了远紫外CD光谱
The number of residues (amino acids): 260 aa The molecular weight of the protein: 29.07 kDa The concentration of the protein: 0.303 mg/mL The length of the light pathway: 0.1 cm
然后运行 txt2contincd:
% txt2contincd -n 260 -m 29.07 -c 0.303 -L 0.1 <raw CD spectrum>
它将生成 contin-cd.in 文件。
使用方法
usage: txt2contincd [-h] [-v] [-p PARSER] [-l LOADER] [-u USING] [-a] [-s] [-o OUTPUT] [-n NUMBER] [-m MOLECULAR_WEIGHT] [-c CONCENTRATION] [--molar-concentration MOLAR_CONCENTRATION] [-L LENGTH] pathname positional arguments: pathname An unix grob style filename pattern for the data files optional arguments: -h, --help show this help message and exit -v, --version show program's version number and exit Reading options: -p PARSER, --parser PARSER A maidenhair parser name which will be used to parse the raw text data. -l LOADER, --loader LOADER A maidenhair loader name which will be used to load the raw text data. -u USING, --using USING A colon (:) separated column indexes. It is used for limiting the reading columns. -a, --average Calculate the average value of the specified data. -s, --no-strict Do not strict the wavelength range into 190-240 . -o OUTPUT, --output OUTPUT A output filename. The default is "contin-cd.in". Experimental properties: -n NUMBER, --number NUMBER The number of residues (amino acids) in the sample. -m MOLECULAR_WEIGHT, --molecular-weight MOLECULAR_WEIGHT A molecular weight of the sample in kDa (=kg/mol). -c CONCENTRATION, --concentration CONCENTRATION A concentration of the sample in g/L. See --molar- concentration as an alternative. --molar-concentration MOLAR_CONCENTRATION A molar concentration of the sample in mol/L. It is used as an alternative option of --concentration. -L LENGTH, --length LENGTH A light pathway length (cuvette length) in centimeter
首选项
您可以将配置文件创建为 ~/.config/txt2contincd/txt2contincd.cfg (Linux), ~/.txt2contincd.cfg (Mac), 或 %APPDATA%\txt2contincd\txt2contincd.cfg (Windows)。
默认首选项等于以下配置文件
[default] parser = 'parsers.PlainParser' loader = 'loaders.PlainLoader' using = None average = False strict = True output = 'contin-cd.in' [experiment] number = None molecular_weight = None concentration = None molar_concentration = None length = None
我没有使用Microsoft Windows,所以Windows中配置文件的路径可能不正确。如果有任何错误,请告诉我。
项目详情
关闭
txt2contincd-0.1.0.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | c0f489841ff38237f1dacecc8f60357bbc8a7b6e43bb5f78d8cff0b43f39d6ef |
|
MD5 | 735d37f5cc42a4350ace57c0da9b9549 |
|
BLAKE2b-256 | c4c93ed6082beb0cb1bf2fc2966d8d5313cc6aa10aac543caa4a467bef8bc901 |