Mercurial > repos > deepakjadmin > mayatool3_test2
comparison docs/scripts/txt/ElementalAnalysisTextFiles.txt @ 0:4816e4a8ae95 draft default tip
Uploaded
author | deepakjadmin |
---|---|
date | Wed, 20 Jan 2016 09:23:18 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4816e4a8ae95 |
---|---|
1 NAME | |
2 ElementalAnalysisTextFiles.pl - Perform elemental analysis using formula | |
3 column in TextFile(s) | |
4 | |
5 SYNOPSIS | |
6 ElementalAnalysisTextFiles.pl TextFile(s)... | |
7 | |
8 ElementalAnalysisTextFiles.pl [-c, --colmode colnum | collabel] [-d, | |
9 --detail infolevel] [-f, --fast] [-f, --formulacol colnum | collabel] | |
10 [-h, --help] [--indelim comma | semicolon] [-m, --mode All | | |
11 "ElementalAnysis, [MolecularWeight, ExactMass]"] [-o, --overwrite] | |
12 [--outdelim comma | tab | semicolon] [-p, --precision number] [-q, | |
13 --quote yes | no] [-r, --root rootname] [-s, --startcol colnum | | |
14 collabel] [--startcolmode before | after] -v --valuecollabels [Name, | |
15 Label, [Name, Label,...]] [-w, --workingdir dirname] TextFile(s)... | |
16 | |
17 DESCRIPTION | |
18 Perform elemental analysis using molecular formula column specified by a | |
19 column number or label in *TextFile(s)*. | |
20 | |
21 In addition to straightforward molecular formulas - H2O, HCl, C3H7O2N - | |
22 other supported variations are: Ca3(PO4)2, [PCl4]+, [Fe(CN)6]4-, | |
23 C37H42N2O6+2, Na2CO3.10H2O, 8H2S.46H2O, and so on. Charges are simply | |
24 ignored. Isotope symbols in formulas specification, including D and T, | |
25 are not supported. | |
26 | |
27 The valid file extensions are *.csv* and *.tsv* for comma/semicolon and | |
28 tab delimited text files respectively. All other file names are ignored. | |
29 All the text files in a current directory can be specified by **.csv*, | |
30 **.tsv*, or the current directory name. The --indelim option determines | |
31 the format of *TextFile(s)*. Any file which doesn't correspond to the | |
32 format indicated by --indelim option is ignored. | |
33 | |
34 OPTIONS | |
35 -c, --colmode *colnum | collabel* | |
36 Specify how columns are identified in *TextFile(s)*: using column | |
37 number or column label. Possible values: *colnum or collabel*. | |
38 Default value: *colnum*. | |
39 | |
40 -d, --detail *infolevel* | |
41 Level of information to print about lines being ignored. Default: | |
42 *1*. Possible values: *1, 2 or 3*. | |
43 | |
44 -h, --help | |
45 Print this help message. | |
46 | |
47 --fast | |
48 In this mode, the formula column specified using -f, --formulacol | |
49 option is assumed to contain valid molecular formula data and | |
50 initial formula validation check is skipped. | |
51 | |
52 -f, --formulacol *col number | col name* | |
53 This value is mode specific. It specifies molecular formula column | |
54 to use for performing elemental analysis on *TextFile(s)*. Possible | |
55 values: *col number or col label*. Default value: *first column | |
56 containing the word formula in its column label*. | |
57 | |
58 -m, --mode *All | "ElementalAnalysis,[MolecularWeight,ExactMass]"* | |
59 Specify what values to calculate using molecular formula in | |
60 *TextFile(s)*: calculate all supported values or specify a comma | |
61 delimited list of values. Possible values: *All | | |
62 "ElementalAnalysis, [MolecularWeight, ExactMass]"*. Default: *All* | |
63 | |
64 --indelim *comma | semicolon* | |
65 Input delimiter for CSV *TextFile(s)*. Possible values: *comma or | |
66 semicolon*. Default value: *comma*. For TSV files, this option is | |
67 ignored and *tab* is used as a delimiter. | |
68 | |
69 -o, --overwrite | |
70 Overwrite existing files. | |
71 | |
72 --outdelim *comma | tab | semicolon* | |
73 Output text file delimiter. Possible values: *comma, tab, or | |
74 semicolon* Default value: *comma*. | |
75 | |
76 -p, --precision *number* | |
77 Precision of calculated values in the output file. Default: up to | |
78 *2* decimal places. Valid values: positive integers. | |
79 | |
80 -q, --quote *yes | no* | |
81 Put quotes around column values in output text file. Possible | |
82 values: *yes or no*. Default value: *yes*. | |
83 | |
84 -r, --root *rootname* | |
85 New text file name is generated using the root: <Root>.<Ext>. | |
86 Default new file name: <InitialTextFileName>ElementalAnalysis.<Ext>. | |
87 The csv, and tsv <Ext> values are used for comma/semicolon, and tab | |
88 delimited text files respectively. This option is ignored for | |
89 multiple input files. | |
90 | |
91 -s, --startcol *colnum | collabel* | |
92 This value is mode specific. It specifies the column in text files | |
93 which is used for start adding calculated column values. For | |
94 *colnum* mode, specify column number and for *collabel* mode, | |
95 specify column label. | |
96 | |
97 Default value: *last*. Start merge after the last column. | |
98 | |
99 --startcolmode *before | after* | |
100 Start adding calculated column values after the -s, --startcol | |
101 value. Possible values: *before or after*. Default value: *after*. | |
102 | |
103 -v --valuecollabels *Name,Label,[Name,Label,...]* | |
104 Specify column labels to use for calculated values. In general, it's | |
105 a comma delimited list of value name and column label pairs. | |
106 Supported value names: *ElementalAnalysis, MolecularWeight, and | |
107 ExactMass*. Default labels: *ElementalAnalysis, MolecularWeight, and | |
108 ExactMass*. | |
109 | |
110 -w, --workingdir *dirname* | |
111 Location of working directory. Default: current directory. | |
112 | |
113 EXAMPLES | |
114 To perform elemental analysis, calculate molecular weight and exact mass | |
115 using formulas in a column with the word Formula in its column label and | |
116 generate a new CSV text file NewSample1.csv, type: | |
117 | |
118 % ElementalAnalysisTextFiles.pl -o -r NewSample1 Sample1.csv | |
119 | |
120 To perform elemental analysis using formulas in column number two, use | |
121 column label Analysis for calculated data, and generate a new CSV text | |
122 file NewSample1.csv, type: | |
123 | |
124 % ElementalAnalysisTextFiles.pl --m ElementalAnalysis --formulacol 2 | |
125 --valuecollabels "ElementalAnalysis,Analysis" -o -r NewSample1 | |
126 Sample1.csv | |
127 | |
128 To calculate molecular weight using formula in column label Formula with | |
129 four decimal precision and generate a new CSV text file NewSample1.csv, | |
130 type | |
131 | |
132 % ElementalAnalysisTextFiles.pl --m MolecularWeight --colmode collabel | |
133 --formulacol Formula --precision 4 -o -r NewSample1 Sample1.csv | |
134 | |
135 To calculate exact mass using formula in column label Formula with four | |
136 decimal precision, adding column for exact mass right after Formula | |
137 column, and generate a new CSV text file NewSample1.csv, type | |
138 | |
139 % ElementalAnalysisTextFiles.pl --m ExactMass --colmode collabel | |
140 --formulacol Formula --precision 4 --startcolmode after | |
141 --startcol Formula -o -r NewSample1 Sample1.csv | |
142 | |
143 AUTHOR | |
144 Manish Sud <msud@san.rr.com> | |
145 | |
146 SEE ALSO | |
147 AnalyzeTextFilesData.pl, InfoTextFiles.pl, ExtractFromTextFiles.pl | |
148 | |
149 COPYRIGHT | |
150 Copyright (C) 2015 Manish Sud. All rights reserved. | |
151 | |
152 This file is part of MayaChemTools. | |
153 | |
154 MayaChemTools is free software; you can redistribute it and/or modify it | |
155 under the terms of the GNU Lesser General Public License as published by | |
156 the Free Software Foundation; either version 3 of the License, or (at | |
157 your option) any later version. | |
158 |