annotate docs/modules/txt/WeightAndMassDescriptors.txt @ 3:90ea638ce878 draft default tip

Uploaded
author deepakjadmin
date Wed, 20 Jan 2016 09:11:59 -0500
parents 2abf0d43254d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
1 NAME
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
2 WeightAndMassDescriptors
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
3
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
4 SYNOPSIS
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
5 use MolecularDescriptors::WeightAndMassDescriptors;
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
6
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
7 use MolecularDescriptors::WeightAndMassDescriptors qw(:all);
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
8
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
9 DESCRIPTION
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
10 WeightAndMassDescriptors class provides the following methods:
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
11
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
12 new, GenerateDescriptors, GetDescriptorNames,
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
13 StringifyWeightAndMassDescriptors
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
14
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
15 WeightAndMassDescriptors is derived from MolecularDescriptors class
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
16 which in turn is derived from ObjectProperty base class that provides
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
17 methods not explicitly defined in WeightAndMassDescriptors,
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
18 MolecularDescriptors or ObjectProperty classes using Perl's AUTOLOAD
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
19 functionality. These methods are generated on-the-fly for a specified
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
20 object property:
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
21
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
22 Set<PropertyName>(<PropertyValue>);
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
23 $PropertyValue = Get<PropertyName>();
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
24 Delete<PropertyName>();
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
25
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
26 WeightAndMassDescriptors calculates molecular weight and exact mass
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
27 descriptors using methods available in Molecule class.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
28
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
29 METHODS
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
30 new
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
31 $NewWeightAndMassDescriptors = new MolecularDescriptors::
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
32 WeightAndMassDescriptors(
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
33 %NamesAndValues);
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
34
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
35 Using specified *WeightAndMassDescriptors* property names and values
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
36 hash, new method creates a new object and returns a reference to
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
37 newly created WeightAndMassDescriptors object. By default, the
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
38 following properties are initialized:
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
39
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
40 Molecule = ''
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
41 Type = 'WeightAndMass'
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
42 WeightPrecision = 2;
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
43 MassPrecision = 4;
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
44
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
45 @DescriptorNames = ('MolecularWeight', 'ExactMass')
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
46 @DescriptorValues = ('None', 'None')
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
47
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
48 Examples:
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
49
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
50 $WeightAndMassDescriptors = new MolecularDescriptors::
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
51 WeightAndMassDescriptors(
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
52 'Molecule' => $Molecule);
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
53
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
54 $WeightAndMassDescriptors = new MolecularDescriptors::
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
55 WeightAndMassDescriptors();
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
56
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
57 $WeightAndMassDescriptors->SetMolecule($Molecule);
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
58 $WeightAndMassDescriptors->GenerateDescriptors();
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
59 print "WeightAndMassDescriptors: $WeightAndMassDescriptors\n";
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
60
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
61 GenerateDescriptors
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
62 $WeightAndMassDescriptors->GenerateDescriptors();
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
63
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
64 Calculates molecular weight and exact mass of a molecule and returns
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
65 *WeightAndMassDescriptors*.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
66
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
67 GetDescriptorNames
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
68 @DescriptorNames = $WeightAndMassDescriptors->GetDescriptorNames();
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
69 @DescriptorNames = MolecularDescriptors::WeightAndMassDescriptors::
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
70 GetDescriptorNames();
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
71
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
72 Returns all available descriptor names as an array.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
73
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
74 SetMassPrecision
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
75 $WeightAndMassDescriptors->SetMassPrecision($Precision);
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
76
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
77 Sets precision for calculated exact mass value and returns
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
78 *WeightAndMassDescriptors*.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
79
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
80 SetWeightPrecision
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
81 $WeightAndMassDescriptors->SetWeightPrecision($Precision);
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
82
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
83 Sets precision for calculated molecular weight value and returns
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
84 *WeightAndMassDescriptors*.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
85
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
86 StringifyWeightAndMassDescriptors
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
87 $String = $WeightAndMassDescriptors->StringifyWeightAndMassDescriptors();
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
88
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
89 Returns a string containing information about
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
90 *WeightAndMassDescriptors* object.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
91
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
92 AUTHOR
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
93 Manish Sud <msud@san.rr.com>
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
94
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
95 SEE ALSO
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
96 MolecularDescriptors.pm, MolecularDescriptorsGenerator.pm
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
97
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
98 COPYRIGHT
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
99 Copyright (C) 2015 Manish Sud. All rights reserved.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
100
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
101 This file is part of MayaChemTools.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
102
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
103 MayaChemTools is free software; you can redistribute it and/or modify it
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
104 under the terms of the GNU Lesser General Public License as published by
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
105 the Free Software Foundation; either version 3 of the License, or (at
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
106 your option) any later version.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
107