| 1 |
/** |
| 2 |
* JNA-InChI - Library for calling InChI from Java |
| 3 |
* Copyright © 2018 Daniel Lowe |
| 4 |
* |
| 5 |
* This library is free software; you can redistribute it and/or |
| 6 |
* modify it under the terms of the GNU Lesser General Public |
| 7 |
* License as published by the Free Software Foundation; either |
| 8 |
* version 2.1 of the License, or (at your option) any later version. |
| 9 |
* |
| 10 |
* This program is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
* GNU Lesser General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU Lesser General Public License |
| 16 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 |
*/ |
| 18 |
package io.github.dan2097.jnainchi; |
| 19 |
|
| 20 |
public enum InchiFlag { |
| 21 |
|
| 22 |
/** Both ends of wedge point to stereocenters [compatible with standard InChI]*/ |
| 23 |
NEWPSOFF, |
| 24 |
|
| 25 |
/** All hydrogens in input structure are explicit [compatible with standard InChI]*/ |
| 26 |
DoNotAddH, |
| 27 |
|
| 28 |
/** Ignore stereo [compatible with standard InChI]*/ |
| 29 |
SNon, |
| 30 |
|
| 31 |
/** Use relative stereo*/ |
| 32 |
SRel, |
| 33 |
|
| 34 |
/** Use racemic stereo*/ |
| 35 |
SRac, |
| 36 |
|
| 37 |
/** Use Chiral Flag in MOL/SD file record: if On – use Absolute stereo, Off – use Relative stereo*/ |
| 38 |
SUCF, |
| 39 |
|
| 40 |
/** Set chiral flag ON*/ |
| 41 |
ChiralFlagON, |
| 42 |
|
| 43 |
/** Set chiral flag OFF*/ |
| 44 |
ChiralFlagOFF, |
| 45 |
|
| 46 |
/** Allows input of molecules up to 32767 atoms [Produces 'InChI=1B' indicating beta status of resulting identifiers]*/ |
| 47 |
LargeMolecules, |
| 48 |
|
| 49 |
/** Always indicate unknown/undefined stereo*/ |
| 50 |
SUU, |
| 51 |
|
| 52 |
/** Stereo labels for "unknown" and "undefined" are different, 'u' and '?', resp.*/ |
| 53 |
SLUUD, |
| 54 |
|
| 55 |
/** Include Fixed H layer*/ |
| 56 |
FixedH, |
| 57 |
|
| 58 |
/** Include reconnected metals results*/ |
| 59 |
RecMet, |
| 60 |
|
| 61 |
/** Account for keto-enol tautomerism (experimental)*/ |
| 62 |
KET, |
| 63 |
|
| 64 |
/** Account for 1,5-tautomerism (experimental)*/ |
| 65 |
OneFiveT, |
| 66 |
|
| 67 |
/** Omit auxiliary information*/ |
| 68 |
AuxNone, |
| 69 |
|
| 70 |
/** Warn and produce empty InChI for empty structure |
| 71 |
* NOTE: This option doesn't currently work due to an InChI library bug*/ |
| 72 |
WarnOnEmptyStructure, |
| 73 |
|
| 74 |
/** Save custom InChI creation options (non-standard InChI)*/ |
| 75 |
SaveOpt, |
| 76 |
|
| 77 |
/** Suppress all warning messages*/ |
| 78 |
NoWarnings, |
| 79 |
|
| 80 |
/** Relax criteria of ambiguous drawing for in-ring tetrahedral stereo*/ |
| 81 |
LooseTSACheck, |
| 82 |
|
| 83 |
/** Allow processing of polymers (experimental)*/ |
| 84 |
Polymers, |
| 85 |
|
| 86 |
/** Allow processing of polymers (experimental, legacy mode of v. 1.05)*/ |
| 87 |
Polymers105, |
| 88 |
|
| 89 |
/** Remove repeats within constitutional repeating units (CRU/SRU)*/ |
| 90 |
FoldCRU, |
| 91 |
|
| 92 |
/** Disable polymer CRU frame shift*/ |
| 93 |
NoFrameShift, |
| 94 |
|
| 95 |
/** Disable polymer CRU frame shift and folding*/ |
| 96 |
NoEdits, |
| 97 |
|
| 98 |
/** Allow non-polymer-related Zz atoms (pseudo element placeholders)*/ |
| 99 |
NPZz, |
| 100 |
|
| 101 |
/** Allow stereo at atoms connected to Zz*/ |
| 102 |
SAtZz, |
| 103 |
|
| 104 |
/** Use absolute stereo (this is the default, so this flag is typically redundant) */ |
| 105 |
SAbs, |
| 106 |
|
| 107 |
/** Output an empty InChI ("InChI=1//" or "InChI=1S//") on error */ |
| 108 |
OutErrInChI; |
| 109 |
|
| 110 |
@Override |
| 111 |
public String toString() { |
| 112 |
if (this == OneFiveT) { |
| 113 |
//Java doesn't allow enums to start with digits |
| 114 |
return "15T"; |
| 115 |
} |
| 116 |
else { |
| 117 |
return super.toString(); |
| 118 |
} |
| 119 |
} |
| 120 |
} |