WeightAndMassDescriptors
use MolecularDescriptors::WeightAndMassDescriptors;
use MolecularDescriptors::WeightAndMassDescriptors qw(:all);
WeightAndMassDescriptors class provides the following methods:
new, GenerateDescriptors, GetDescriptorNames, StringifyWeightAndMassDescriptors
WeightAndMassDescriptors is derived from MolecularDescriptors class which in turn is derived from ObjectProperty base class that provides methods not explicitly defined in WeightAndMassDescriptors, MolecularDescriptors or ObjectProperty classes using Perl's AUTOLOAD functionality. These methods are generated on-the-fly for a specified object property:
WeightAndMassDescriptors calculates molecular weight and exact mass descriptors using methods available in Molecule class.
Using specified WeightAndMassDescriptors property names and values hash, new method creates a new object and returns a reference to newly created WeightAndMassDescriptors object. By default, the following properties are initialized:
Examples:
Calculates molecular weight and exact mass of a molecule and returns WeightAndMassDescriptors.
Returns all available descriptor names as an array.
Sets precision for calculated exact mass value and returns WeightAndMassDescriptors.
Sets precision for calculated molecular weight value and returns WeightAndMassDescriptors.
Returns a string containing information about WeightAndMassDescriptors object.
MolecularDescriptors.pm, MolecularDescriptorsGenerator.pm
Copyright (C) 2024 Manish Sud. All rights reserved.
This file is part of MayaChemTools.
MayaChemTools is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.