annotate mayachemtools/docs/scripts/txt/ElementalAnalysis.txt @ 0:73ae111cf86f draft

Uploaded
author deepakjadmin
date Wed, 20 Jan 2016 11:55:01 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
1 NAME
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
2 ElementalAnalysis.pl - Perform elemental analysis using specified
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
3 formulas
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
4
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
5 SYNOPSIS
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
6 ElementalAnalysis.pl Formula(s)...
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
7
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
8 ElementalAnalysis.pl [-h, --help] [-m, --mode All | "ElementalAnalysis,
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
9 [MolecularWeight, ExactMass]"] [--outdelim comma | tab | semicolon]
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
10 [--output STDOUT | File] [--outputstyle FormulaBlock | FormulaRows] [-o,
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
11 --overwrite] [--precision number] [-q, --quote yes | no] [-r, --root
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
12 rootname] [-v --valuelabels [Name, Label, [Name, Label,...]] [-w,
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
13 --workingdir dirname] Formula(s)...
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
14
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
15 DESCRIPTION
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
16 Perform elemental analysis using molecular formula(s) specified on the
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
17 command line.
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
18
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
19 In addition to straightforward molecular formulas - H2O, HCl, C3H7O2N -
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
20 other supported variations are: Ca3(PO4)2, [PCl4]+, [Fe(CN)6]4-,
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
21 C37H42N2O6+2, Na2CO3.10H2O, 8H2S.46H2O, and so on. Charges are simply
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
22 ignored. Isotope symbols in formulas specification, including D and T,
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
23 are not supported.
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
24
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
25 PARAMETERS
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
26 Formulas *Formula1 [Formula2...]*
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
27 *Formulas* is a space delimited list of molecular formulas to use
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
28 for elemental analysis.
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
29
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
30 Input value format is: *Formula1 [Formula2 Formula3...]*. Default:
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
31 *H2O*. Examples:
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
32
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
33 HCl
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
34 HCl, C3H7O2N
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
35 H2O2 Ca3(PO4)2 [PCl4]+
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
36
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
37 OPTIONS
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
38 -h, --help
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
39 Print this help message.
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
40
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
41 --fast
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
42 In this mode, the specified formulas are considered valid and
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
43 initial formula validation check is skipped.
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
44
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
45 -m, --mode *All | "ElementalAnalysis,[MolecularWeight,ExactMass]"*
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
46 Specify what values to calculate using molecular formulas specified
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
47 on command line: calculate all supported values or specify a comma
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
48 delimited list of values. Possible values: *All |
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
49 "ElementalAnalysis, [MolecularWeight, ExactMass]"*. Default: *All*.
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
50
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
51 --outdelim *comma | tab | semicolon*
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
52 Output text file delimiter. Possible values: *comma, tab, or
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
53 semicolon* Default value: *comma*.
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
54
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
55 --output *STDOUT | File*
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
56 List information at STDOUT or write it to a file. Possible values:
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
57 *STDOUT or File*. Default: *STDOUT*. -r, --root option is used to
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
58 generate output file name.
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
59
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
60 --outputstyle *FormulaBlock | FormulaRows*
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
61 Specify how to list calculated values: add a new line for each
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
62 property and present it as a block for each formula; or include all
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
63 properties in one line and show it as a single line.
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
64
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
65 Possible values: *FormulaBlock | FormulaRows*. Default:
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
66 *FormulaBlock*
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
67
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
68 An example for *FormulaBlock* output style:
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
69
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
70 Formula: H2O
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
71 ElementalAnalysis: H: H: 11.1898%; O: 88.8102%
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
72 MolecularWeight: 18.0153
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
73 ExactMass: 18.0106
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
74 ... ...
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
75 ... ...
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
76 ... ...
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
77
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
78 Formula: H2O2
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
79 ElementalAnalysis: H: 5.9265%; O: 94.0735%
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
80 MolecularWeight: 34.0147
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
81 ExactMass: 34.0055
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
82 ... ...
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
83 ... ...
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
84 ... ...
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
85
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
86 An example for *FormulaRows* output style:
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
87
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
88 Formula,ElementalAnalysis,MolecularWeight,ExactMass
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
89 H2O,H: 11.1898%; O: 88.8102%,18.0153,18.0106
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
90 H2O2,H: 5.9265%; O: 94.0735%,34.0147,34.0055
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
91
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
92 -o, --overwrite
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
93 Overwrite existing files.
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
94
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
95 --precision *number*
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
96 Precision for listing numerical values. Default: up to *4* decimal
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
97 places. Valid values: positive integers.
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
98
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
99 -r, --root *rootname*
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
100 New text file name is generated using the root: <Root>.<Ext>. File
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
101 name is only used during *File* value of -o, --output option.
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
102
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
103 Default file name: FormulsElementalAnalysis.<Ext>. The csv, and tsv
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
104 <Ext> values are used for comma/semicolon, and tab delimited text
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
105 files respectively.
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
106
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
107 -v --valuelabels *Name,Label,[Name,Label,...]*
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
108 Specify labels to use for calculated values. In general, it's a
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
109 comma delimited list of value name and column label pairs. Supported
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
110 value names: *ElementalAnalysis, MolecularWeight, and ExactMass*.
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
111 Default labels: *ElementalAnalysis, MolecularWeight, and ExactMass*.
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
112
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
113 -w, --workingdir *dirname*
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
114 Location of working directory. Default: current directory.
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
115
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
116 EXAMPLES
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
117 To perform elemental analysis, calculate molecular weight and exact mass
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
118 for H2O, type:
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
119
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
120 % ElementalAnalysis.pl
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
121
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
122 To perform elemental analysis, calculate molecular weight and exact mass
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
123 for Ca3(PO4)2 and [PCl4]+, type:
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
124
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
125 % ElementalAnalysis.pl "Ca3(PO4)2" "[PCl4]+"
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
126
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
127 To perform elemental analysis, use label analysis for calculated data,
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
128 and generate a new CSV file ElementalAnalysis.csv for H2O and H2O2,
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
129 type:
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
130
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
131 % ElementalAnalysis.pl --m ElementalAnalysis --output File
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
132 --valuelabels "ElementalAnalysis,Analysis" -o -r ElementalAnalysis.csv
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
133 H2O H2O2
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
134
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
135 To calculate molecular weight and exact mass with four decimal precision
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
136 and generate a new CSV file WeightAndMass.csv with data rows for H2O and
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
137 H2O2, type:
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
138
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
139 % ElementalAnalysis.pl --m "MolecularWeight,ExactMass" --output File
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
140 --outputstyle FormulaRows -o -r WeightAndMass.csv
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
141 H2O H2O2
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
142
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
143 AUTHOR
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
144 Manish Sud <msud@san.rr.com>
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
145
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
146 SEE ALSO
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
147 ElementalAnalysisSDFiles.pl, ElementalAnalysisTextFiles.pl
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
148
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
149 COPYRIGHT
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
150 Copyright (C) 2015 Manish Sud. All rights reserved.
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
151
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
152 This file is part of MayaChemTools.
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
153
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
154 MayaChemTools is free software; you can redistribute it and/or modify it
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
155 under the terms of the GNU Lesser General Public License as published by
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
156 the Free Software Foundation; either version 3 of the License, or (at
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
157 your option) any later version.
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
158