comparison docs/scripts/man1/ElementalAnalysis.1 @ 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 .\" Automatically generated by Pod::Man 2.25 (Pod::Simple 3.22)
2 .\"
3 .\" Standard preamble:
4 .\" ========================================================================
5 .de Sp \" Vertical space (when we can't use .PP)
6 .if t .sp .5v
7 .if n .sp
8 ..
9 .de Vb \" Begin verbatim text
10 .ft CW
11 .nf
12 .ne \\$1
13 ..
14 .de Ve \" End verbatim text
15 .ft R
16 .fi
17 ..
18 .\" Set up some character translations and predefined strings. \*(-- will
19 .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
20 .\" double quote, and \*(R" will give a right double quote. \*(C+ will
21 .\" give a nicer C++. Capital omega is used to do unbreakable dashes and
22 .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
23 .\" nothing in troff, for use with C<>.
24 .tr \(*W-
25 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
26 .ie n \{\
27 . ds -- \(*W-
28 . ds PI pi
29 . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
30 . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
31 . ds L" ""
32 . ds R" ""
33 . ds C` ""
34 . ds C' ""
35 'br\}
36 .el\{\
37 . ds -- \|\(em\|
38 . ds PI \(*p
39 . ds L" ``
40 . ds R" ''
41 'br\}
42 .\"
43 .\" Escape single quotes in literal strings from groff's Unicode transform.
44 .ie \n(.g .ds Aq \(aq
45 .el .ds Aq '
46 .\"
47 .\" If the F register is turned on, we'll generate index entries on stderr for
48 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
49 .\" entries marked with X<> in POD. Of course, you'll have to process the
50 .\" output yourself in some meaningful fashion.
51 .ie \nF \{\
52 . de IX
53 . tm Index:\\$1\t\\n%\t"\\$2"
54 ..
55 . nr % 0
56 . rr F
57 .\}
58 .el \{\
59 . de IX
60 ..
61 .\}
62 .\"
63 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
64 .\" Fear. Run. Save yourself. No user-serviceable parts.
65 . \" fudge factors for nroff and troff
66 .if n \{\
67 . ds #H 0
68 . ds #V .8m
69 . ds #F .3m
70 . ds #[ \f1
71 . ds #] \fP
72 .\}
73 .if t \{\
74 . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
75 . ds #V .6m
76 . ds #F 0
77 . ds #[ \&
78 . ds #] \&
79 .\}
80 . \" simple accents for nroff and troff
81 .if n \{\
82 . ds ' \&
83 . ds ` \&
84 . ds ^ \&
85 . ds , \&
86 . ds ~ ~
87 . ds /
88 .\}
89 .if t \{\
90 . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
91 . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
92 . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
93 . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
94 . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
95 . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
96 .\}
97 . \" troff and (daisy-wheel) nroff accents
98 .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
99 .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
100 .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
101 .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
102 .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
103 .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
104 .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
105 .ds ae a\h'-(\w'a'u*4/10)'e
106 .ds Ae A\h'-(\w'A'u*4/10)'E
107 . \" corrections for vroff
108 .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
109 .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
110 . \" for low resolution devices (crt and lpr)
111 .if \n(.H>23 .if \n(.V>19 \
112 \{\
113 . ds : e
114 . ds 8 ss
115 . ds o a
116 . ds d- d\h'-1'\(ga
117 . ds D- D\h'-1'\(hy
118 . ds th \o'bp'
119 . ds Th \o'LP'
120 . ds ae ae
121 . ds Ae AE
122 .\}
123 .rm #[ #] #H #V #F C
124 .\" ========================================================================
125 .\"
126 .IX Title "ELEMENTALANALYSIS 1"
127 .TH ELEMENTALANALYSIS 1 "2015-03-29" "perl v5.14.2" "MayaChemTools"
128 .\" For nroff, turn off justification. Always turn off hyphenation; it makes
129 .\" way too many mistakes in technical documents.
130 .if n .ad l
131 .nh
132 .SH "NAME"
133 ElementalAnalysis.pl \- Perform elemental analysis using specified formulas
134 .SH "SYNOPSIS"
135 .IX Header "SYNOPSIS"
136 ElementalAnalysis.pl Formula(s)...
137 .PP
138 ElementalAnalysis.pl [\fB\-h, \-\-help\fR]
139 [\fB\-m, \-\-mode\fR All | \*(L"ElementalAnalysis, [MolecularWeight, ExactMass]\*(R"]
140 [\fB\-\-outdelim\fR comma | tab | semicolon]
141 [\fB\-\-output\fR \s-1STDOUT\s0 | File] [\fB\-\-outputstyle\fR FormulaBlock | FormulaRows]
142 [\fB\-o, \-\-overwrite\fR] [\fB\-\-precision\fR number] [\fB\-q, \-\-quote\fR yes | no] [\fB\-r, \-\-root\fR rootname]
143 [\fB\-v \-\-valuelabels\fR [Name, Label, [Name, Label,...]]
144 [\fB\-w, \-\-workingdir\fR dirname] Formula(s)...
145 .SH "DESCRIPTION"
146 .IX Header "DESCRIPTION"
147 Perform elemental analysis using molecular formula(s) specified on the command line.
148 .PP
149 In addition to straightforward molecular formulas \- H2O, HCl, C3H7O2N \-
150 other supported variations are: Ca3(\s-1PO4\s0)2, [PCl4]+, [Fe(\s-1CN\s0)6]4\-, C37H42N2O6+2, Na2CO3.10H2O,
151 8H2S.46H2O, and so on. Charges are simply ignored. Isotope symbols in formulas specification, including
152 D and T, are not supported.
153 .SH "PARAMETERS"
154 .IX Header "PARAMETERS"
155 .IP "\fBFormulas\fR \fIFormula1 [Formula2...]\fR" 4
156 .IX Item "Formulas Formula1 [Formula2...]"
157 \&\fIFormulas\fR is a space delimited list of molecular formulas to use for elemental analysis.
158 .Sp
159 Input value format is: \fIFormula1 [Formula2 Formula3...]\fR. Default: \fIH2O\fR.
160 Examples:
161 .Sp
162 .Vb 3
163 \& HCl
164 \& HCl, C3H7O2N
165 \& H2O2 Ca3(PO4)2 [PCl4]+
166 .Ve
167 .SH "OPTIONS"
168 .IX Header "OPTIONS"
169 .IP "\fB\-h, \-\-help\fR" 4
170 .IX Item "-h, --help"
171 Print this help message.
172 .IP "\fB\-\-fast\fR" 4
173 .IX Item "--fast"
174 In this mode, the specified formulas are considered valid and initial formula
175 validation check is skipped.
176 .ie n .IP "\fB\-m, \-\-mode\fR \fIAll | ""ElementalAnalysis,[MolecularWeight,ExactMass]""\fR" 4
177 .el .IP "\fB\-m, \-\-mode\fR \fIAll | ``ElementalAnalysis,[MolecularWeight,ExactMass]''\fR" 4
178 .IX Item "-m, --mode All | ElementalAnalysis,[MolecularWeight,ExactMass]"
179 Specify what values to calculate using molecular formulas specified on command
180 line: calculate all supported values or specify a comma delimited list of values. Possible
181 values: \fIAll | \*(L"ElementalAnalysis, [MolecularWeight, ExactMass]\*(R"\fR. Default: \fIAll\fR.
182 .IP "\fB\-\-outdelim\fR \fIcomma | tab | semicolon\fR" 4
183 .IX Item "--outdelim comma | tab | semicolon"
184 Output text file delimiter. Possible values: \fIcomma, tab, or semicolon\fR
185 Default value: \fIcomma\fR.
186 .IP "\fB\-\-output\fR \fI\s-1STDOUT\s0 | File\fR" 4
187 .IX Item "--output STDOUT | File"
188 List information at \s-1STDOUT\s0 or write it to a file. Possible values: \fI\s-1STDOUT\s0 or File\fR. Default:
189 \&\fI\s-1STDOUT\s0\fR. \fB\-r, \-\-root\fR option is used to generate output file name.
190 .IP "\fB\-\-outputstyle\fR \fIFormulaBlock | FormulaRows\fR" 4
191 .IX Item "--outputstyle FormulaBlock | FormulaRows"
192 Specify how to list calculated values: add a new line for each property and present it as a block
193 for each formula; or include all properties in one line and show it as a single line.
194 .Sp
195 Possible values: \fIFormulaBlock | FormulaRows\fR. Default: \fIFormulaBlock\fR
196 .Sp
197 An example for \fIFormulaBlock\fR output style:
198 .Sp
199 .Vb 7
200 \& Formula: H2O
201 \& ElementalAnalysis: H: H: 11.1898%; O: 88.8102%
202 \& MolecularWeight: 18.0153
203 \& ExactMass: 18.0106
204 \& ... ...
205 \& ... ...
206 \& ... ...
207 \&
208 \& Formula: H2O2
209 \& ElementalAnalysis: H: 5.9265%; O: 94.0735%
210 \& MolecularWeight: 34.0147
211 \& ExactMass: 34.0055
212 \& ... ...
213 \& ... ...
214 \& ... ...
215 .Ve
216 .Sp
217 An example for \fIFormulaRows\fR output style:
218 .Sp
219 .Vb 3
220 \& Formula,ElementalAnalysis,MolecularWeight,ExactMass
221 \& H2O,H: 11.1898%; O: 88.8102%,18.0153,18.0106
222 \& H2O2,H: 5.9265%; O: 94.0735%,34.0147,34.0055
223 .Ve
224 .IP "\fB\-o, \-\-overwrite\fR" 4
225 .IX Item "-o, --overwrite"
226 Overwrite existing files.
227 .IP "\fB\-\-precision\fR \fInumber\fR" 4
228 .IX Item "--precision number"
229 Precision for listing numerical values. Default: up to \fI4\fR decimal places.
230 Valid values: positive integers.
231 .IP "\fB\-r, \-\-root\fR \fIrootname\fR" 4
232 .IX Item "-r, --root rootname"
233 New text file name is generated using the root: <Root>.<Ext>. File name is only
234 used during \fIFile\fR value of \fB\-o, \-\-output\fR option.
235 .Sp
236 Default file name: FormulsElementalAnalysis.<Ext>. The csv, and tsv
237 <Ext> values are used for comma/semicolon, and tab delimited text files respectively.
238 .IP "\fB\-v \-\-valuelabels\fR \fIName,Label,[Name,Label,...]\fR" 4
239 .IX Item "-v --valuelabels Name,Label,[Name,Label,...]"
240 Specify labels to use for calculated values. In general, it's a comma delimited
241 list of value name and column label pairs. Supported value names: \fIElementalAnalysis,
242 MolecularWeight, and ExactMass\fR. Default labels: \fIElementalAnalysis, MolecularWeight,
243 and ExactMass\fR.
244 .IP "\fB\-w, \-\-workingdir\fR \fIdirname\fR" 4
245 .IX Item "-w, --workingdir dirname"
246 Location of working directory. Default: current directory.
247 .SH "EXAMPLES"
248 .IX Header "EXAMPLES"
249 To perform elemental analysis, calculate molecular weight and exact mass for H2O,
250 type:
251 .PP
252 .Vb 1
253 \& % ElementalAnalysis.pl
254 .Ve
255 .PP
256 To perform elemental analysis, calculate molecular weight and exact mass for
257 Ca3(\s-1PO4\s0)2 and [PCl4]+, type:
258 .PP
259 .Vb 1
260 \& % ElementalAnalysis.pl "Ca3(PO4)2" "[PCl4]+"
261 .Ve
262 .PP
263 To perform elemental analysis, use label analysis for calculated data, and generate a
264 new \s-1CSV\s0 file ElementalAnalysis.csv for H2O and H2O2, type:
265 .PP
266 .Vb 3
267 \& % ElementalAnalysis.pl \-\-m ElementalAnalysis \-\-output File
268 \& \-\-valuelabels "ElementalAnalysis,Analysis" \-o \-r ElementalAnalysis.csv
269 \& H2O H2O2
270 .Ve
271 .PP
272 To calculate molecular weight and exact mass with four decimal precision and
273 generate a new \s-1CSV\s0 file WeightAndMass.csv with data rows for H2O and H2O2, type:
274 .PP
275 .Vb 3
276 \& % ElementalAnalysis.pl \-\-m "MolecularWeight,ExactMass" \-\-output File
277 \& \-\-outputstyle FormulaRows \-o \-r WeightAndMass.csv
278 \& H2O H2O2
279 .Ve
280 .SH "AUTHOR"
281 .IX Header "AUTHOR"
282 Manish Sud <msud@san.rr.com>
283 .SH "SEE ALSO"
284 .IX Header "SEE ALSO"
285 ElementalAnalysisSDFiles.pl, ElementalAnalysisTextFiles.pl
286 .SH "COPYRIGHT"
287 .IX Header "COPYRIGHT"
288 Copyright (C) 2015 Manish Sud. All rights reserved.
289 .PP
290 This file is part of MayaChemTools.
291 .PP
292 MayaChemTools is free software; you can redistribute it and/or modify it under
293 the terms of the \s-1GNU\s0 Lesser General Public License as published by the Free
294 Software Foundation; either version 3 of the License, or (at your option)
295 any later version.