Mercurial > repos > deepakjadmin > mayatool3_test2
comparison docs/modules/txt/HydrogenBondsDescriptors.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 HydrogenBondsDescriptors | |
| 3 | |
| 4 SYNOPSIS | |
| 5 use MolecularDescriptors::HydrogenBondsDescriptors; | |
| 6 | |
| 7 use MolecularDescriptors::HydrogenBondsDescriptors qw(:all); | |
| 8 | |
| 9 DESCRIPTION | |
| 10 HydrogenBondsDescriptors class provides the following methods: | |
| 11 | |
| 12 new, GenerateDescriptors, GetDescriptorNames, SetHydrogenBondsType, | |
| 13 StringifyHydrogenBondsDescriptors | |
| 14 | |
| 15 HydrogenBondsDescriptors is derived from MolecularDescriptors class | |
| 16 which in turn is derived from ObjectProperty base class that provides | |
| 17 methods not explicitly defined in HydrogenBondsDescriptors, | |
| 18 MolecularDescriptors or ObjectProperty classes using Perl's AUTOLOAD | |
| 19 functionality. These methods are generated on-the-fly for a specified | |
| 20 object property: | |
| 21 | |
| 22 Set<PropertyName>(<PropertyValue>); | |
| 23 $PropertyValue = Get<PropertyName>(); | |
| 24 Delete<PropertyName>(); | |
| 25 | |
| 26 The current release of MayaChemTools supports identification of two | |
| 27 types of hydrogen bond donor and acceptor atoms with these names: | |
| 28 | |
| 29 HBondsType1 or HydrogenBondsType1 | |
| 30 HBondsType2 or HydrogenBondsType2 | |
| 31 | |
| 32 The names of these hydrogen bond types are rather arbitrary. However, | |
| 33 their definitions have specific meaning and are as follows: | |
| 34 | |
| 35 HydrogenBondsType1 [ Ref 60-61, Ref 65-66 ]: | |
| 36 | |
| 37 Donor: NH, NH2, OH - Any N and O with available H | |
| 38 Acceptor: N[!H], O - Any N without available H and any O | |
| 39 | |
| 40 HydrogenBondsType2 [ Ref 91 ]: | |
| 41 | |
| 42 Donor: NH, NH2, OH - N and O with available H | |
| 43 Acceptor: N, O - And N and O | |
| 44 | |
| 45 By default, *HydrogenBondsType2* is used to calculate number hydrogen | |
| 46 bond donor and acceptor atoms. This corresponds to RuleOf5 definition of | |
| 47 hydrogen bond donors and acceptors. | |
| 48 | |
| 49 METHODS | |
| 50 new | |
| 51 $HydrogenBondsDescriptors = new MolecularDescriptors:: | |
| 52 HydrogenBondsDescriptors(%NamesAndValues); | |
| 53 | |
| 54 Using specified *HydrogenBondsDescriptors* property names and values | |
| 55 hash, new method creates a new object and returns a reference to | |
| 56 newly created HydrogenBondsDescriptors object. By default, the | |
| 57 following properties are initialized: | |
| 58 | |
| 59 Molecule = '' | |
| 60 Type = 'HydrogenBonds' | |
| 61 HydrogenBondsType = 'HBondsType2' | |
| 62 @DescriptorNames = ('HydrogenBondDonors', 'HydrogenBondAcceptors') | |
| 63 @DescriptorValues = ('None', 'None') | |
| 64 | |
| 65 Examples: | |
| 66 | |
| 67 $HydrogenBondsDescriptors = new MolecularDescriptors:: | |
| 68 HydrogenBondsDescriptors(); | |
| 69 | |
| 70 $HydrogenBondsDescriptors = new MolecularDescriptors:: | |
| 71 HydrogenBondsDescriptors( | |
| 72 'HydrogenBondsType' => 'HBondsType2'); | |
| 73 | |
| 74 $HydrogenBondsDescriptors->SetMolecule($Molecule); | |
| 75 $HydrogenBondsDescriptors->GenerateDescriptors(); | |
| 76 print "HydrogenBondsDescriptors: $HydrogenBondsDescriptors\n"; | |
| 77 | |
| 78 GenerateDescriptors | |
| 79 $HydrogenBondsDescriptors->GenerateDescriptors(); | |
| 80 | |
| 81 Calculates number of hydrogen bond donors and acceptors a molecule | |
| 82 and returns *HydrogenBondsDescriptors*. | |
| 83 | |
| 84 GetDescriptorNames | |
| 85 @DescriptorNames = $HydrogenBondsDescriptors->GetDescriptorNames(); | |
| 86 @DescriptorNames = MolecularDescriptors::HydrogenBondsDescriptors:: | |
| 87 GetDescriptorNames(); | |
| 88 | |
| 89 Returns all available descriptor names as an array. | |
| 90 | |
| 91 SetHydrogenBondsType | |
| 92 $HydrogenBondsDescriptors->SetHydrogenBondsType($HBondsType); | |
| 93 | |
| 94 Sets value of hydrogen bonds type to use during calculation of | |
| 95 descriptors and returns *HydrogenBondsDescriptors*. Possible values: | |
| 96 *HBondsType1, HydrogenBondsType1, HBondsType2, HydrogenBondsType2*. | |
| 97 | |
| 98 StringifyHydrogenBondsDescriptors | |
| 99 $String = $HydrogenBondsDescriptors-> | |
| 100 StringifyHydrogenBondsDescriptors(); | |
| 101 | |
| 102 Returns a string containing information about | |
| 103 *HydrogenBondsDescriptors* object. | |
| 104 | |
| 105 AUTHOR | |
| 106 Manish Sud <msud@san.rr.com> | |
| 107 | |
| 108 SEE ALSO | |
| 109 MolecularDescriptors.pm, MolecularDescriptorsGenerator.pm | |
| 110 | |
| 111 COPYRIGHT | |
| 112 Copyright (C) 2015 Manish Sud. All rights reserved. | |
| 113 | |
| 114 This file is part of MayaChemTools. | |
| 115 | |
| 116 MayaChemTools is free software; you can redistribute it and/or modify it | |
| 117 under the terms of the GNU Lesser General Public License as published by | |
| 118 the Free Software Foundation; either version 3 of the License, or (at | |
| 119 your option) any later version. | |
| 120 |
