chython 3.1__tar.gz → 3.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (466) hide show
  1. {chython-3.1/chython.egg-info → chython-3.2}/PKG-INFO +1 -1
  2. {chython-3.1 → chython-3.2}/chython/chemistry/__init__.py +7 -3
  3. {chython-3.1 → chython-3.2}/chython/chemistry/_canonicalize.py +48 -22
  4. {chython-3.1 → chython-3.2}/chython/chemistry/_implicit.py +3 -1
  5. {chython-3.1 → chython-3.2}/chython/chemistry/_isomers.py +301 -121
  6. chython-3.2/chython/chemistry/_kekule_form.py +341 -0
  7. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_isomers.py +250 -0
  8. chython-3.2/chython/chemistry/test/test_kekule_form.py +217 -0
  9. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_valence_report.py +20 -0
  10. {chython-3.1 → chython-3.2}/chython/core/RULES.md +5 -3
  11. chython-3.2/chython/core/_cip.pxi +804 -0
  12. {chython-3.1 → chython-3.2}/chython/core/_core.pyx +4 -0
  13. {chython-3.1 → chython-3.2}/chython/core/_isomorphism.pxi +17 -10
  14. {chython-3.1 → chython-3.2}/chython/core/_kekule.pxi +5 -0
  15. {chython-3.1 → chython-3.2}/chython/core/_molecule_arena.pxi +24 -1
  16. {chython-3.1 → chython-3.2}/chython/core/_molecule_container.pxi +667 -36
  17. {chython-3.1 → chython-3.2}/chython/core/_molecule_views.pxi +7 -2
  18. {chython-3.1 → chython-3.2}/chython/core/_pach.pxi +2 -0
  19. {chython-3.1 → chython-3.2}/chython/core/_pach3.pxi +160 -42
  20. {chython-3.1 → chython-3.2}/chython/core/_smiles_write.pxi +111 -19
  21. {chython-3.1 → chython-3.2}/chython/core/_stereo.pxi +542 -77
  22. {chython-3.1 → chython-3.2}/chython/core/_thiele.pxi +97 -25
  23. {chython-3.1 → chython-3.2}/chython/core/_valence.pxi +29 -1
  24. {chython-3.1 → chython-3.2}/chython/core/test/gen_pach3_corpus.py +21 -1
  25. {chython-3.1 → chython-3.2}/chython/core/test/pach3_corpus.py +104 -3
  26. chython-3.2/chython/core/test/pach_bond_group_corpus.bin.gz +0 -0
  27. {chython-3.1 → chython-3.2}/chython/core/test/test_apply_scratch_probe.py +9 -8
  28. {chython-3.1 → chython-3.2}/chython/core/test/test_arena_identity.py +26 -1
  29. {chython-3.1 → chython-3.2}/chython/core/test/test_arena_v4_compat.py +7 -0
  30. {chython-3.1 → chython-3.2}/chython/core/test/test_aromatic_storage.py +10 -13
  31. chython-3.2/chython/core/test/test_cip_assign.py +88 -0
  32. chython-3.2/chython/core/test/test_cip_cases.py +107 -0
  33. chython-3.2/chython/core/test/test_cip_digraph.py +91 -0
  34. chython-3.2/chython/core/test/test_cip_ranking.py +108 -0
  35. {chython-3.1 → chython-3.2}/chython/core/test/test_cip_storage.py +120 -0
  36. {chython-3.1 → chython-3.2}/chython/core/test/test_clean_stereo.py +46 -25
  37. {chython-3.1 → chython-3.2}/chython/core/test/test_conformers.py +4 -3
  38. {chython-3.1 → chython-3.2}/chython/core/test/test_kekule.py +30 -0
  39. {chython-3.1 → chython-3.2}/chython/core/test/test_magic.py +100 -1
  40. {chython-3.1 → chython-3.2}/chython/core/test/test_pach3.py +176 -6
  41. {chython-3.1 → chython-3.2}/chython/core/test/test_pack.py +41 -1
  42. {chython-3.1 → chython-3.2}/chython/core/test/test_smiles_write_detached.py +40 -0
  43. {chython-3.1 → chython-3.2}/chython/core/test/test_smiles_write_stereo.py +172 -2
  44. {chython-3.1 → chython-3.2}/chython/core/test/test_smirks_stereo.py +12 -9
  45. chython-3.2/chython/core/test/test_stereo_anchor_identity.py +152 -0
  46. chython-3.2/chython/core/test/test_stereo_group_storage.py +234 -0
  47. chython-3.2/chython/core/test/test_stereo_owners.py +145 -0
  48. {chython-3.1 → chython-3.2}/chython/core/test/test_stereo_perception.py +76 -0
  49. {chython-3.1 → chython-3.2}/chython/core/test/test_stereo_query.py +25 -13
  50. {chython-3.1 → chython-3.2}/chython/core/test/test_thiele.py +119 -3
  51. chython-3.2/chython/core/test/test_union_stereo.py +291 -0
  52. {chython-3.1 → chython-3.2}/chython/core/test/test_valence.py +40 -0
  53. {chython-3.1 → chython-3.2}/chython/depict/label.py +21 -8
  54. {chython-3.1 → chython-3.2}/chython/depict/style.py +1 -1
  55. {chython-3.1 → chython-3.2}/chython/depict/test/test_figure.py +29 -0
  56. {chython-3.1 → chython-3.2}/chython/depict/test/test_label.py +47 -0
  57. {chython-3.1 → chython-3.2}/chython/formats/ctfile/CTFILE.md +27 -8
  58. {chython-3.1 → chython-3.2}/chython/formats/ctfile/_ctab.py +66 -4
  59. {chython-3.1 → chython-3.2}/chython/formats/ctfile/_v2000.py +4 -2
  60. {chython-3.1 → chython-3.2}/chython/formats/ctfile/_v3000.py +150 -33
  61. {chython-3.1 → chython-3.2}/chython/formats/ctfile/test/test_fidelity.py +18 -0
  62. {chython-3.1 → chython-3.2}/chython/formats/ctfile/test/test_v2000.py +35 -0
  63. {chython-3.1 → chython-3.2}/chython/formats/ctfile/test/test_v3000.py +254 -1
  64. {chython-3.1 → chython-3.2}/chython/formats/test/test_log_prefix.py +4 -0
  65. {chython-3.1 → chython-3.2}/chython/formats/xml/_mrv.py +7 -2
  66. {chython-3.1 → chython-3.2}/chython/formats/xml/test/test_mrv.py +22 -0
  67. {chython-3.1 → chython-3.2}/chython/test/test_performance.py +67 -0
  68. {chython-3.1 → chython-3.2/chython.egg-info}/PKG-INFO +1 -1
  69. {chython-3.1 → chython-3.2}/chython.egg-info/SOURCES.txt +11 -0
  70. {chython-3.1 → chython-3.2}/pyproject.toml +4 -2
  71. chython-3.1/chython/core/test/test_union_stereo.py +0 -167
  72. {chython-3.1 → chython-3.2}/LICENSE +0 -0
  73. {chython-3.1 → chython-3.2}/MANIFEST.in +0 -0
  74. {chython-3.1 → chython-3.2}/README.md +0 -0
  75. {chython-3.1 → chython-3.2}/build_inchi.py +0 -0
  76. {chython-3.1 → chython-3.2}/chython/__init__.py +0 -0
  77. {chython-3.1 → chython-3.2}/chython/_functions.py +0 -0
  78. {chython-3.1 → chython-3.2}/chython/chemistry/_abbreviations.py +0 -0
  79. {chython-3.1 → chython-3.2}/chython/chemistry/_counts.py +0 -0
  80. {chython-3.1 → chython-3.2}/chython/chemistry/_crippen.py +0 -0
  81. {chython-3.1 → chython-3.2}/chython/chemistry/_hydrogens.py +0 -0
  82. {chython-3.1 → chython-3.2}/chython/chemistry/_maccs.py +0 -0
  83. {chython-3.1 → chython-3.2}/chython/chemistry/_organometallics.py +0 -0
  84. {chython-3.1 → chython-3.2}/chython/chemistry/_perceive.py +0 -0
  85. {chython-3.1 → chython-3.2}/chython/chemistry/_pharmacophore.py +0 -0
  86. {chython-3.1 → chython-3.2}/chython/chemistry/_protomers.py +0 -0
  87. {chython-3.1 → chython-3.2}/chython/chemistry/_qed.py +0 -0
  88. {chython-3.1 → chython-3.2}/chython/chemistry/_residues.py +0 -0
  89. {chython-3.1 → chython-3.2}/chython/chemistry/_resonance.py +0 -0
  90. {chython-3.1 → chython-3.2}/chython/chemistry/_salts.py +0 -0
  91. {chython-3.1 → chython-3.2}/chython/chemistry/_saturate.py +0 -0
  92. {chython-3.1 → chython-3.2}/chython/chemistry/_smarts.py +0 -0
  93. {chython-3.1 → chython-3.2}/chython/chemistry/_standardize.py +0 -0
  94. {chython-3.1 → chython-3.2}/chython/chemistry/_tables.py +0 -0
  95. {chython-3.1 → chython-3.2}/chython/chemistry/_tpsa.py +0 -0
  96. {chython-3.1 → chython-3.2}/chython/chemistry/tables/abbreviations.tsv +0 -0
  97. {chython-3.1 → chython-3.2}/chython/chemistry/tables/acids.tsv +0 -0
  98. {chython-3.1 → chython-3.2}/chython/chemistry/tables/covalent_radii.tsv +0 -0
  99. {chython-3.1 → chython-3.2}/chython/chemistry/tables/crippen.tsv +0 -0
  100. {chython-3.1 → chython-3.2}/chython/chemistry/tables/hbond.tsv +0 -0
  101. {chython-3.1 → chython-3.2}/chython/chemistry/tables/maccs.tsv +0 -0
  102. {chython-3.1 → chython-3.2}/chython/chemistry/tables/maccs_corpus.tsv +0 -0
  103. {chython-3.1 → chython-3.2}/chython/chemistry/tables/pharmacophore.tsv +0 -0
  104. {chython-3.1 → chython-3.2}/chython/chemistry/tables/qed_alerts.tsv +0 -0
  105. {chython-3.1 → chython-3.2}/chython/chemistry/tables/residues.tsv +0 -0
  106. {chython-3.1 → chython-3.2}/chython/chemistry/tables/resonance.tsv +0 -0
  107. {chython-3.1 → chython-3.2}/chython/chemistry/tables/rotatable.tsv +0 -0
  108. {chython-3.1 → chython-3.2}/chython/chemistry/tables/salts.tsv +0 -0
  109. {chython-3.1 → chython-3.2}/chython/chemistry/tables/standardize_groups.tsv +0 -0
  110. {chython-3.1 → chython-3.2}/chython/chemistry/tables/standardize_metals.tsv +0 -0
  111. {chython-3.1 → chython-3.2}/chython/chemistry/tables/sybyl_types.tsv +0 -0
  112. {chython-3.1 → chython-3.2}/chython/chemistry/tables/tpsa.tsv +0 -0
  113. {chython-3.1 → chython-3.2}/chython/chemistry/test/__init__.py +0 -0
  114. {chython-3.1 → chython-3.2}/chython/chemistry/test/_corpus.py +0 -0
  115. {chython-3.1 → chython-3.2}/chython/chemistry/test/_oracle.py +0 -0
  116. {chython-3.1 → chython-3.2}/chython/chemistry/test/gen_standardize_rules.py +0 -0
  117. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_abbreviations.py +0 -0
  118. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_acids_tsv.py +0 -0
  119. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_canonicalize.py +0 -0
  120. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_counts.py +0 -0
  121. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_covalent_radii_tsv.py +0 -0
  122. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_crippen.py +0 -0
  123. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_crippen_tsv.py +0 -0
  124. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_dependency_direction.py +0 -0
  125. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_featurizer_injection.py +0 -0
  126. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_featurizer_tables_lazy.py +0 -0
  127. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_maccs.py +0 -0
  128. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_maccs_corpus.py +0 -0
  129. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_maccs_tsv.py +0 -0
  130. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_organometallics.py +0 -0
  131. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_perceive.py +0 -0
  132. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_pharmacophore.py +0 -0
  133. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_protomers.py +0 -0
  134. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_qed.py +0 -0
  135. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_qed_alerts_tsv.py +0 -0
  136. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_reaction_hydrogen_repair.py +0 -0
  137. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_reaction_passes.py +0 -0
  138. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_residues.py +0 -0
  139. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_resonance.py +0 -0
  140. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_resonance_tsv.py +0 -0
  141. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_salts.py +0 -0
  142. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_saturate.py +0 -0
  143. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_smarts.py +0 -0
  144. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_standardize_differential.py +0 -0
  145. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_standardize_groups_port.py +0 -0
  146. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_standardize_overvalent_nitrogen.py +0 -0
  147. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_standardize_rules_examples.py +0 -0
  148. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_standardize_rules_merges.py +0 -0
  149. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_standardize_rules_tsv.py +0 -0
  150. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_thiele_is_single_purpose.py +0 -0
  151. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_tpsa.py +0 -0
  152. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_tpsa_tsv.py +0 -0
  153. {chython-3.1 → chython-3.2}/chython/chemistry/test/test_z_translation.py +0 -0
  154. {chython-3.1 → chython-3.2}/chython/core/__init__.py +0 -0
  155. {chython-3.1 → chython-3.2}/chython/core/_canonical.pxi +0 -0
  156. {chython-3.1 → chython-3.2}/chython/core/_descriptors.pxi +0 -0
  157. {chython-3.1 → chython-3.2}/chython/core/_elements.pxi +0 -0
  158. {chython-3.1 → chython-3.2}/chython/core/_facade.py +0 -0
  159. {chython-3.1 → chython-3.2}/chython/core/_features.pxi +0 -0
  160. {chython-3.1 → chython-3.2}/chython/core/_fingerprints.pxi +0 -0
  161. {chython-3.1 → chython-3.2}/chython/core/_hydrogens.pxi +0 -0
  162. {chython-3.1 → chython-3.2}/chython/core/_inchi.pxi +0 -0
  163. {chython-3.1 → chython-3.2}/chython/core/_log.py +0 -0
  164. {chython-3.1 → chython-3.2}/chython/core/_ml.pxi +0 -0
  165. {chython-3.1 → chython-3.2}/chython/core/_molecule_topology.pxi +0 -0
  166. {chython-3.1 → chython-3.2}/chython/core/_morgan.pxi +0 -0
  167. {chython-3.1 → chython-3.2}/chython/core/_query_arena.pxi +0 -0
  168. {chython-3.1 → chython-3.2}/chython/core/_query_boxes.pxi +0 -0
  169. {chython-3.1 → chython-3.2}/chython/core/_query_container.pxi +0 -0
  170. {chython-3.1 → chython-3.2}/chython/core/_query_seal.pxi +0 -0
  171. {chython-3.1 → chython-3.2}/chython/core/_reaction_passes.py +0 -0
  172. {chython-3.1 → chython-3.2}/chython/core/_rings.pxi +0 -0
  173. {chython-3.1 → chython-3.2}/chython/core/_smarts_read.pxi +0 -0
  174. {chython-3.1 → chython-3.2}/chython/core/_smiles_read.pxi +0 -0
  175. {chython-3.1 → chython-3.2}/chython/core/_smirks_patch.pxi +0 -0
  176. {chython-3.1 → chython-3.2}/chython/core/_smirks_read.pxi +0 -0
  177. {chython-3.1 → chython-3.2}/chython/core/_sssr.pxi +0 -0
  178. {chython-3.1 → chython-3.2}/chython/core/elements.tsv +0 -0
  179. {chython-3.1 → chython-3.2}/chython/core/isotopes.tsv +0 -0
  180. {chython-3.1 → chython-3.2}/chython/core/reaction.py +0 -0
  181. {chython-3.1 → chython-3.2}/chython/core/test/__init__.py +0 -0
  182. {chython-3.1 → chython-3.2}/chython/core/test/arena_v4_corpus.bin.gz +0 -0
  183. {chython-3.1 → chython-3.2}/chython/core/test/bench_ml.py +0 -0
  184. {chython-3.1 → chython-3.2}/chython/core/test/chytorch_oracle.py +0 -0
  185. {chython-3.1 → chython-3.2}/chython/core/test/gen_element_tables.py +0 -0
  186. {chython-3.1 → chython-3.2}/chython/core/test/gen_modeling_view_corpus.py +0 -0
  187. {chython-3.1 → chython-3.2}/chython/core/test/gen_reaction_pach_corpus.py +0 -0
  188. {chython-3.1 → chython-3.2}/chython/core/test/gen_v3_fixtures.py +0 -0
  189. {chython-3.1 → chython-3.2}/chython/core/test/gen_v4_fixtures.py +0 -0
  190. {chython-3.1 → chython-3.2}/chython/core/test/gen_valence_rules.py +0 -0
  191. {chython-3.1 → chython-3.2}/chython/core/test/modeling_view_corpus.json.gz +0 -0
  192. {chython-3.1 → chython-3.2}/chython/core/test/modeling_view_corpus.py +0 -0
  193. {chython-3.1 → chython-3.2}/chython/core/test/oracle.py +0 -0
  194. {chython-3.1 → chython-3.2}/chython/core/test/pach_corpus.py +0 -0
  195. {chython-3.1 → chython-3.2}/chython/core/test/pach_v0_corpus.bin.gz +0 -0
  196. {chython-3.1 → chython-3.2}/chython/core/test/pach_v0_native_corpus.bin.gz +0 -0
  197. {chython-3.1 → chython-3.2}/chython/core/test/pach_v2_corpus.bin.gz +0 -0
  198. {chython-3.1 → chython-3.2}/chython/core/test/pach_v3_corpus.bin.gz +0 -0
  199. {chython-3.1 → chython-3.2}/chython/core/test/pach_v4_corpus.bin.gz +0 -0
  200. {chython-3.1 → chython-3.2}/chython/core/test/reaction_pach_corpus.py +0 -0
  201. {chython-3.1 → chython-3.2}/chython/core/test/reaction_pach_v2_corpus.bin.gz +0 -0
  202. {chython-3.1 → chython-3.2}/chython/core/test/test_aggregates.py +0 -0
  203. {chython-3.1 → chython-3.2}/chython/core/test/test_alternative_spellings.py +0 -0
  204. {chython-3.1 → chython-3.2}/chython/core/test/test_arena_f60.py +0 -0
  205. {chython-3.1 → chython-3.2}/chython/core/test/test_arena_v3_compat.py +0 -0
  206. {chython-3.1 → chython-3.2}/chython/core/test/test_canonical.py +0 -0
  207. {chython-3.1 → chython-3.2}/chython/core/test/test_canonical_mirror.py +0 -0
  208. {chython-3.1 → chython-3.2}/chython/core/test/test_clean_isotopes_and_coordinate_bonds.py +0 -0
  209. {chython-3.1 → chython-3.2}/chython/core/test/test_container_log.py +0 -0
  210. {chython-3.1 → chython-3.2}/chython/core/test/test_copy_caches.py +0 -0
  211. {chython-3.1 → chython-3.2}/chython/core/test/test_derive.py +0 -0
  212. {chython-3.1 → chython-3.2}/chython/core/test/test_descriptors.py +0 -0
  213. {chython-3.1 → chython-3.2}/chython/core/test/test_element_tables.py +0 -0
  214. {chython-3.1 → chython-3.2}/chython/core/test/test_facade.py +0 -0
  215. {chython-3.1 → chython-3.2}/chython/core/test/test_features.py +0 -0
  216. {chython-3.1 → chython-3.2}/chython/core/test/test_featurizer_injection.py +0 -0
  217. {chython-3.1 → chython-3.2}/chython/core/test/test_fingerprints.py +0 -0
  218. {chython-3.1 → chython-3.2}/chython/core/test/test_geometry.py +0 -0
  219. {chython-3.1 → chython-3.2}/chython/core/test/test_h_unknown.py +0 -0
  220. {chython-3.1 → chython-3.2}/chython/core/test/test_hydrogens.py +0 -0
  221. {chython-3.1 → chython-3.2}/chython/core/test/test_inchi.py +0 -0
  222. {chython-3.1 → chython-3.2}/chython/core/test/test_interop_injection.py +0 -0
  223. {chython-3.1 → chython-3.2}/chython/core/test/test_isomorphism.py +0 -0
  224. {chython-3.1 → chython-3.2}/chython/core/test/test_log.py +0 -0
  225. {chython-3.1 → chython-3.2}/chython/core/test/test_meta.py +0 -0
  226. {chython-3.1 → chython-3.2}/chython/core/test/test_ml_encoding.py +0 -0
  227. {chython-3.1 → chython-3.2}/chython/core/test/test_ml_reaction_transition.py +0 -0
  228. {chython-3.1 → chython-3.2}/chython/core/test/test_ml_state_view.py +0 -0
  229. {chython-3.1 → chython-3.2}/chython/core/test/test_ml_transition_view.py +0 -0
  230. {chython-3.1 → chython-3.2}/chython/core/test/test_ml_unpack_differential.py +0 -0
  231. {chython-3.1 → chython-3.2}/chython/core/test/test_modeling_view_frozen.py +0 -0
  232. {chython-3.1 → chython-3.2}/chython/core/test/test_molecule.py +0 -0
  233. {chython-3.1 → chython-3.2}/chython/core/test/test_morgan.py +0 -0
  234. {chython-3.1 → chython-3.2}/chython/core/test/test_no_chython_two_imports.py +0 -0
  235. {chython-3.1 → chython-3.2}/chython/core/test/test_oracle.py +0 -0
  236. {chython-3.1 → chython-3.2}/chython/core/test/test_pach.py +0 -0
  237. {chython-3.1 → chython-3.2}/chython/core/test/test_query.py +0 -0
  238. {chython-3.1 → chython-3.2}/chython/core/test/test_r_edit.py +0 -0
  239. {chython-3.1 → chython-3.2}/chython/core/test/test_r_query.py +0 -0
  240. {chython-3.1 → chython-3.2}/chython/core/test/test_r_semantics.py +0 -0
  241. {chython-3.1 → chython-3.2}/chython/core/test/test_r_serialisation.py +0 -0
  242. {chython-3.1 → chython-3.2}/chython/core/test/test_r_smirks.py +0 -0
  243. {chython-3.1 → chython-3.2}/chython/core/test/test_r_storage.py +0 -0
  244. {chython-3.1 → chython-3.2}/chython/core/test/test_reaction_container.py +0 -0
  245. {chython-3.1 → chython-3.2}/chython/core/test/test_reaction_identity.py +0 -0
  246. {chython-3.1 → chython-3.2}/chython/core/test/test_reaction_pach.py +0 -0
  247. {chython-3.1 → chython-3.2}/chython/core/test/test_reaction_passes.py +0 -0
  248. {chython-3.1 → chython-3.2}/chython/core/test/test_reaction_patch_stereo.py +0 -0
  249. {chython-3.1 → chython-3.2}/chython/core/test/test_reaction_smiles.py +0 -0
  250. {chython-3.1 → chython-3.2}/chython/core/test/test_rings.py +0 -0
  251. {chython-3.1 → chython-3.2}/chython/core/test/test_rings_c60.py +0 -0
  252. {chython-3.1 → chython-3.2}/chython/core/test/test_set_element.py +0 -0
  253. {chython-3.1 → chython-3.2}/chython/core/test/test_sgroups.py +0 -0
  254. {chython-3.1 → chython-3.2}/chython/core/test/test_smarts_read.py +0 -0
  255. {chython-3.1 → chython-3.2}/chython/core/test/test_smiles_r.py +0 -0
  256. {chython-3.1 → chython-3.2}/chython/core/test/test_smiles_read.py +0 -0
  257. {chython-3.1 → chython-3.2}/chython/core/test/test_smiles_roundtrip.py +0 -0
  258. {chython-3.1 → chython-3.2}/chython/core/test/test_smiles_write.py +0 -0
  259. {chython-3.1 → chython-3.2}/chython/core/test/test_smiles_write_aromatic.py +0 -0
  260. {chython-3.1 → chython-3.2}/chython/core/test/test_smiles_write_cis_trans.py +0 -0
  261. {chython-3.1 → chython-3.2}/chython/core/test/test_smiles_write_differential.py +0 -0
  262. {chython-3.1 → chython-3.2}/chython/core/test/test_smiles_write_h_unknown.py +0 -0
  263. {chython-3.1 → chython-3.2}/chython/core/test/test_smiles_write_sticky.py +0 -0
  264. {chython-3.1 → chython-3.2}/chython/core/test/test_smirks_filter.py +0 -0
  265. {chython-3.1 → chython-3.2}/chython/core/test/test_smirks_patch.py +0 -0
  266. {chython-3.1 → chython-3.2}/chython/core/test/test_smirks_read.py +0 -0
  267. {chython-3.1 → chython-3.2}/chython/core/test/test_smirks_report.py +0 -0
  268. {chython-3.1 → chython-3.2}/chython/core/test/test_stereo_acceptance.py +0 -0
  269. {chython-3.1 → chython-3.2}/chython/core/test/test_stereo_parity.py +0 -0
  270. {chython-3.1 → chython-3.2}/chython/core/test/test_stereo_units.py +0 -0
  271. {chython-3.1 → chython-3.2}/chython/core/test/test_stereo_v2_differential.py +0 -0
  272. {chython-3.1 → chython-3.2}/chython/core/test/test_structure.py +0 -0
  273. {chython-3.1 → chython-3.2}/chython/core/test/test_title.py +0 -0
  274. {chython-3.1 → chython-3.2}/chython/core/test/test_topology.py +0 -0
  275. {chython-3.1 → chython-3.2}/chython/core/test/test_view_surface.py +0 -0
  276. {chython-3.1 → chython-3.2}/chython/core/test/v3_fixtures.py +0 -0
  277. {chython-3.1 → chython-3.2}/chython/core/test/v4_fixtures.py +0 -0
  278. {chython-3.1 → chython-3.2}/chython/core/valence_rules.tsv +0 -0
  279. {chython-3.1 → chython-3.2}/chython/core/wedge.py +0 -0
  280. {chython-3.1 → chython-3.2}/chython/depict/__init__.py +0 -0
  281. {chython-3.1 → chython-3.2}/chython/depict/_config.py +0 -0
  282. {chython-3.1 → chython-3.2}/chython/depict/_hooks.py +0 -0
  283. {chython-3.1 → chython-3.2}/chython/depict/bonds.py +0 -0
  284. {chython-3.1 → chython-3.2}/chython/depict/colorbar.py +0 -0
  285. {chython-3.1 → chython-3.2}/chython/depict/colormap.py +0 -0
  286. {chython-3.1 → chython-3.2}/chython/depict/field.py +0 -0
  287. {chython-3.1 → chython-3.2}/chython/depict/figure.py +0 -0
  288. {chython-3.1 → chython-3.2}/chython/depict/layout/__init__.py +0 -0
  289. {chython-3.1 → chython-3.2}/chython/depict/layout/clean2d.js +0 -0
  290. {chython-3.1 → chython-3.2}/chython/depict/layout/molecule.py +0 -0
  291. {chython-3.1 → chython-3.2}/chython/depict/layout/reaction.py +0 -0
  292. {chython-3.1 → chython-3.2}/chython/depict/metrics/__init__.py +0 -0
  293. {chython-3.1 → chython-3.2}/chython/depict/metrics/helvetica.tsv +0 -0
  294. {chython-3.1 → chython-3.2}/chython/depict/metrics/times.tsv +0 -0
  295. {chython-3.1 → chython-3.2}/chython/depict/overlay.py +0 -0
  296. {chython-3.1 → chython-3.2}/chython/depict/render/__init__.py +0 -0
  297. {chython-3.1 → chython-3.2}/chython/depict/render/svg.py +0 -0
  298. {chython-3.1 → chython-3.2}/chython/depict/scene.py +0 -0
  299. {chython-3.1 → chython-3.2}/chython/depict/test/__init__.py +0 -0
  300. {chython-3.1 → chython-3.2}/chython/depict/test/test_bonds.py +0 -0
  301. {chython-3.1 → chython-3.2}/chython/depict/test/test_clean2d.py +0 -0
  302. {chython-3.1 → chython-3.2}/chython/depict/test/test_colorbar.py +0 -0
  303. {chython-3.1 → chython-3.2}/chython/depict/test/test_colormap.py +0 -0
  304. {chython-3.1 → chython-3.2}/chython/depict/test/test_field.py +0 -0
  305. {chython-3.1 → chython-3.2}/chython/depict/test/test_metrics.py +0 -0
  306. {chython-3.1 → chython-3.2}/chython/depict/test/test_overlay.py +0 -0
  307. {chython-3.1 → chython-3.2}/chython/depict/test/test_package.py +0 -0
  308. {chython-3.1 → chython-3.2}/chython/depict/test/test_r_atom.py +0 -0
  309. {chython-3.1 → chython-3.2}/chython/depict/test/test_scene.py +0 -0
  310. {chython-3.1 → chython-3.2}/chython/depict/test/test_style.py +0 -0
  311. {chython-3.1 → chython-3.2}/chython/depict/test/test_svg.py +0 -0
  312. {chython-3.1 → chython-3.2}/chython/depict/test/test_wedge_draw.py +0 -0
  313. {chython-3.1 → chython-3.2}/chython/depict/test/test_x3dom.py +0 -0
  314. {chython-3.1 → chython-3.2}/chython/depict/wedge.py +0 -0
  315. {chython-3.1 → chython-3.2}/chython/depict/x3dom.py +0 -0
  316. {chython-3.1 → chython-3.2}/chython/exceptions.py +0 -0
  317. {chython-3.1 → chython-3.2}/chython/formats/__init__.py +0 -0
  318. {chython-3.1 → chython-3.2}/chython/formats/_text.py +0 -0
  319. {chython-3.1 → chython-3.2}/chython/formats/ctfile/__init__.py +0 -0
  320. {chython-3.1 → chython-3.2}/chython/formats/ctfile/_errors.py +0 -0
  321. {chython-3.1 → chython-3.2}/chython/formats/ctfile/_facade.py +0 -0
  322. {chython-3.1 → chython-3.2}/chython/formats/ctfile/_hydrogens.py +0 -0
  323. {chython-3.1 → chython-3.2}/chython/formats/ctfile/_rdf.py +0 -0
  324. {chython-3.1 → chython-3.2}/chython/formats/ctfile/_rxn.py +0 -0
  325. {chython-3.1 → chython-3.2}/chython/formats/ctfile/_sdf.py +0 -0
  326. {chython-3.1 → chython-3.2}/chython/formats/ctfile/_sgroup.py +0 -0
  327. {chython-3.1 → chython-3.2}/chython/formats/ctfile/_stream.py +0 -0
  328. {chython-3.1 → chython-3.2}/chython/formats/ctfile/_tokens.py +0 -0
  329. {chython-3.1 → chython-3.2}/chython/formats/ctfile/test/__init__.py +0 -0
  330. {chython-3.1 → chython-3.2}/chython/formats/ctfile/test/conftest.py +0 -0
  331. {chython-3.1 → chython-3.2}/chython/formats/ctfile/test/test_aromatic.py +0 -0
  332. {chython-3.1 → chython-3.2}/chython/formats/ctfile/test/test_container_log.py +0 -0
  333. {chython-3.1 → chython-3.2}/chython/formats/ctfile/test/test_data_labels.py +0 -0
  334. {chython-3.1 → chython-3.2}/chython/formats/ctfile/test/test_facade.py +0 -0
  335. {chython-3.1 → chython-3.2}/chython/formats/ctfile/test/test_hydrogens.py +0 -0
  336. {chython-3.1 → chython-3.2}/chython/formats/ctfile/test/test_r_atom.py +0 -0
  337. {chython-3.1 → chython-3.2}/chython/formats/ctfile/test/test_rdf.py +0 -0
  338. {chython-3.1 → chython-3.2}/chython/formats/ctfile/test/test_rxn.py +0 -0
  339. {chython-3.1 → chython-3.2}/chython/formats/ctfile/test/test_sdf.py +0 -0
  340. {chython-3.1 → chython-3.2}/chython/formats/ctfile/test/test_sgroup.py +0 -0
  341. {chython-3.1 → chython-3.2}/chython/formats/ctfile/test/test_stream.py +0 -0
  342. {chython-3.1 → chython-3.2}/chython/formats/ctfile/test/test_tokens.py +0 -0
  343. {chython-3.1 → chython-3.2}/chython/formats/ctfile/test/test_wedge.py +0 -0
  344. {chython-3.1 → chython-3.2}/chython/formats/mol2.py +0 -0
  345. {chython-3.1 → chython-3.2}/chython/formats/pdb/__init__.py +0 -0
  346. {chython-3.1 → chython-3.2}/chython/formats/pdb/_builder.py +0 -0
  347. {chython-3.1 → chython-3.2}/chython/formats/pdb/_legacy.py +0 -0
  348. {chython-3.1 → chython-3.2}/chython/formats/pdb/_mmcif.py +0 -0
  349. {chython-3.1 → chython-3.2}/chython/formats/pdb/_records.py +0 -0
  350. {chython-3.1 → chython-3.2}/chython/formats/pdb/_star.py +0 -0
  351. {chython-3.1 → chython-3.2}/chython/formats/test/__init__.py +0 -0
  352. {chython-3.1 → chython-3.2}/chython/formats/test/conftest.py +0 -0
  353. {chython-3.1 → chython-3.2}/chython/formats/test/oracles.py +0 -0
  354. {chython-3.1 → chython-3.2}/chython/formats/test/test_conformance.py +0 -0
  355. {chython-3.1 → chython-3.2}/chython/formats/test/test_done_when.py +0 -0
  356. {chython-3.1 → chython-3.2}/chython/formats/test/test_isolation.py +0 -0
  357. {chython-3.1 → chython-3.2}/chython/formats/test/test_mmcif.py +0 -0
  358. {chython-3.1 → chython-3.2}/chython/formats/test/test_mol2.py +0 -0
  359. {chython-3.1 → chython-3.2}/chython/formats/test/test_no_review_bookkeeping.py +0 -0
  360. {chython-3.1 → chython-3.2}/chython/formats/test/test_oracles.py +0 -0
  361. {chython-3.1 → chython-3.2}/chython/formats/test/test_pdb.py +0 -0
  362. {chython-3.1 → chython-3.2}/chython/formats/test/test_pdb_builder.py +0 -0
  363. {chython-3.1 → chython-3.2}/chython/formats/test/test_perceive_agreement.py +0 -0
  364. {chython-3.1 → chython-3.2}/chython/formats/test/test_read_only_facades.py +0 -0
  365. {chython-3.1 → chython-3.2}/chython/formats/test/test_xyz.py +0 -0
  366. {chython-3.1 → chython-3.2}/chython/formats/test/test_xyz_builder.py +0 -0
  367. {chython-3.1 → chython-3.2}/chython/formats/xml/__init__.py +0 -0
  368. {chython-3.1 → chython-3.2}/chython/formats/xml/_cml.py +0 -0
  369. {chython-3.1 → chython-3.2}/chython/formats/xml/_dialect.py +0 -0
  370. {chython-3.1 → chython-3.2}/chython/formats/xml/_errors.py +0 -0
  371. {chython-3.1 → chython-3.2}/chython/formats/xml/_facade.py +0 -0
  372. {chython-3.1 → chython-3.2}/chython/formats/xml/_tree.py +0 -0
  373. {chython-3.1 → chython-3.2}/chython/formats/xml/test/__init__.py +0 -0
  374. {chython-3.1 → chython-3.2}/chython/formats/xml/test/conftest.py +0 -0
  375. {chython-3.1 → chython-3.2}/chython/formats/xml/test/test_cml.py +0 -0
  376. {chython-3.1 → chython-3.2}/chython/formats/xml/test/test_container_log.py +0 -0
  377. {chython-3.1 → chython-3.2}/chython/formats/xml/test/test_dialect.py +0 -0
  378. {chython-3.1 → chython-3.2}/chython/formats/xml/test/test_equivalence.py +0 -0
  379. {chython-3.1 → chython-3.2}/chython/formats/xml/test/test_facade.py +0 -0
  380. {chython-3.1 → chython-3.2}/chython/formats/xml/test/test_mrv_census.py +0 -0
  381. {chython-3.1 → chython-3.2}/chython/formats/xml/test/test_tree.py +0 -0
  382. {chython-3.1 → chython-3.2}/chython/formats/xyz.py +0 -0
  383. {chython-3.1 → chython-3.2}/chython/interop/__init__.py +0 -0
  384. {chython-3.1 → chython-3.2}/chython/interop/_cdk.py +0 -0
  385. {chython-3.1 → chython-3.2}/chython/interop/_cdpkit.py +0 -0
  386. {chython-3.1 → chython-3.2}/chython/interop/_indigo.py +0 -0
  387. {chython-3.1 → chython-3.2}/chython/interop/_iupac.py +0 -0
  388. {chython-3.1 → chython-3.2}/chython/interop/_java.py +0 -0
  389. {chython-3.1 → chython-3.2}/chython/interop/_openbabel.py +0 -0
  390. {chython-3.1 → chython-3.2}/chython/interop/_pandas.py +0 -0
  391. {chython-3.1 → chython-3.2}/chython/interop/_rdkit.py +0 -0
  392. {chython-3.1 → chython-3.2}/chython/interop/_records.py +0 -0
  393. {chython-3.1 → chython-3.2}/chython/interop/_stereo.py +0 -0
  394. {chython-3.1 → chython-3.2}/chython/interop/config.py +0 -0
  395. {chython-3.1 → chython-3.2}/chython/interop/conformers.py +0 -0
  396. {chython-3.1 → chython-3.2}/chython/interop/test/__init__.py +0 -0
  397. {chython-3.1 → chython-3.2}/chython/interop/test/conftest.py +0 -0
  398. {chython-3.1 → chython-3.2}/chython/interop/test/test_cdk.py +0 -0
  399. {chython-3.1 → chython-3.2}/chython/interop/test/test_cdpkit.py +0 -0
  400. {chython-3.1 → chython-3.2}/chython/interop/test/test_config.py +0 -0
  401. {chython-3.1 → chython-3.2}/chython/interop/test/test_conformers.py +0 -0
  402. {chython-3.1 → chython-3.2}/chython/interop/test/test_coordinate_honesty.py +0 -0
  403. {chython-3.1 → chython-3.2}/chython/interop/test/test_dispatch.py +0 -0
  404. {chython-3.1 → chython-3.2}/chython/interop/test/test_indigo.py +0 -0
  405. {chython-3.1 → chython-3.2}/chython/interop/test/test_iupac.py +0 -0
  406. {chython-3.1 → chython-3.2}/chython/interop/test/test_log_delivery.py +0 -0
  407. {chython-3.1 → chython-3.2}/chython/interop/test/test_openbabel.py +0 -0
  408. {chython-3.1 → chython-3.2}/chython/interop/test/test_pandas.py +0 -0
  409. {chython-3.1 → chython-3.2}/chython/interop/test/test_rdkit.py +0 -0
  410. {chython-3.1 → chython-3.2}/chython/interop/test/test_stereo.py +0 -0
  411. {chython-3.1 → chython-3.2}/chython/interop/test/test_v2_oracle.py +0 -0
  412. {chython-3.1 → chython-3.2}/chython/reactions/__init__.py +0 -0
  413. {chython-3.1 → chython-3.2}/chython/reactions/_enumerate.py +0 -0
  414. {chython-3.1 → chython-3.2}/chython/reactions/_numbering.py +0 -0
  415. {chython-3.1 → chython-3.2}/chython/reactions/_reconstruct.py +0 -0
  416. {chython-3.1 → chython-3.2}/chython/reactions/_stickers.py +0 -0
  417. {chython-3.1 → chython-3.2}/chython/reactions/_tables.py +0 -0
  418. {chython-3.1 → chython-3.2}/chython/reactions/attention/__init__.py +0 -0
  419. {chython-3.1 → chython-3.2}/chython/reactions/attention/_assign.py +0 -0
  420. {chython-3.1 → chython-3.2}/chython/reactions/attention/_encode.py +0 -0
  421. {chython-3.1 → chython-3.2}/chython/reactions/attention/_session.py +0 -0
  422. {chython-3.1 → chython-3.2}/chython/reactions/tables/functional.tsv +0 -0
  423. {chython-3.1 → chython-3.2}/chython/reactions/tables/protective.tsv +0 -0
  424. {chython-3.1 → chython-3.2}/chython/reactions/tables/reactions.tsv +0 -0
  425. {chython-3.1 → chython-3.2}/chython/reactions/tables/roles.tsv +0 -0
  426. {chython-3.1 → chython-3.2}/chython/reactions/test/__init__.py +0 -0
  427. {chython-3.1 → chython-3.2}/chython/reactions/test/_frozen_ids.py +0 -0
  428. {chython-3.1 → chython-3.2}/chython/reactions/test/gen_corpus_glossary.py +0 -0
  429. {chython-3.1 → chython-3.2}/chython/reactions/test/golden_subset.smi +0 -0
  430. {chython-3.1 → chython-3.2}/chython/reactions/test/test_attention.py +0 -0
  431. {chython-3.1 → chython-3.2}/chython/reactions/test/test_attention_assign.py +0 -0
  432. {chython-3.1 → chython-3.2}/chython/reactions/test/test_attention_encode.py +0 -0
  433. {chython-3.1 → chython-3.2}/chython/reactions/test/test_attention_isolation.py +0 -0
  434. {chython-3.1 → chython-3.2}/chython/reactions/test/test_corpus_glossary.py +0 -0
  435. {chython-3.1 → chython-3.2}/chython/reactions/test/test_dependency_direction.py +0 -0
  436. {chython-3.1 → chython-3.2}/chython/reactions/test/test_enumerate.py +0 -0
  437. {chython-3.1 → chython-3.2}/chython/reactions/test/test_functional.py +0 -0
  438. {chython-3.1 → chython-3.2}/chython/reactions/test/test_id_stability.py +0 -0
  439. {chython-3.1 → chython-3.2}/chython/reactions/test/test_numbering.py +0 -0
  440. {chython-3.1 → chython-3.2}/chython/reactions/test/test_probes.py +0 -0
  441. {chython-3.1 → chython-3.2}/chython/reactions/test/test_protective.py +0 -0
  442. {chython-3.1 → chython-3.2}/chython/reactions/test/test_reconstruct.py +0 -0
  443. {chython-3.1 → chython-3.2}/chython/reactions/test/test_roles.py +0 -0
  444. {chython-3.1 → chython-3.2}/chython/reactions/test/test_stickers.py +0 -0
  445. {chython-3.1 → chython-3.2}/chython/reactions/test/test_tables.py +0 -0
  446. {chython-3.1 → chython-3.2}/chython/test/__init__.py +0 -0
  447. {chython-3.1 → chython-3.2}/chython/test/test_code_hygiene.py +0 -0
  448. {chython-3.1 → chython-3.2}/chython/test/test_container_methods.py +0 -0
  449. {chython-3.1 → chython-3.2}/chython/test/test_doc_figures.py +0 -0
  450. {chython-3.1 → chython-3.2}/chython/test/test_doc_references.py +0 -0
  451. {chython-3.1 → chython-3.2}/chython/test/test_doc_samples.py +0 -0
  452. {chython-3.1 → chython-3.2}/chython/test/test_facade_names.py +0 -0
  453. {chython-3.1 → chython-3.2}/chython/test/test_hydrogen_parity.py +0 -0
  454. {chython-3.1 → chython-3.2}/chython/test/test_libinchi_staging.py +0 -0
  455. {chython-3.1 → chython-3.2}/chython/test/test_log_records.py +0 -0
  456. {chython-3.1 → chython-3.2}/chython/test/test_optional_numpy.py +0 -0
  457. {chython-3.1 → chython-3.2}/chython/test/test_packaging.py +0 -0
  458. {chython-3.1 → chython-3.2}/chython/test/test_r_atom_integration.py +0 -0
  459. {chython-3.1 → chython-3.2}/chython/test/test_release_build.py +0 -0
  460. {chython-3.1 → chython-3.2}/chython/test/test_stereo_bluebook.py +0 -0
  461. {chython-3.1 → chython-3.2}/chython/test/test_v2_boundary.py +0 -0
  462. {chython-3.1 → chython-3.2}/chython.egg-info/dependency_links.txt +0 -0
  463. {chython-3.1 → chython-3.2}/chython.egg-info/requires.txt +0 -0
  464. {chython-3.1 → chython-3.2}/chython.egg-info/top_level.txt +0 -0
  465. {chython-3.1 → chython-3.2}/setup.cfg +0 -0
  466. {chython-3.1 → chython-3.2}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chython
3
- Version: 3.1
3
+ Version: 3.2
4
4
  Summary: Library for processing molecules and reactions in python way
5
5
  Author-email: Ramil Nugmanov <nougmanoff@protonmail.com>
6
6
  License-Expression: LGPL-3.0-or-later
@@ -36,6 +36,7 @@ from ._crippen import crippen_logp, crippen_mr
36
36
  from ._hydrogens import explicify_hydrogens, implicify_hydrogens
37
37
  from ._implicit import calc_implicit, check_valence
38
38
  from ._isomers import standardize_isomers
39
+ from ._kekule_form import standardize_kekule
39
40
  from ._maccs import maccs_bit_set, maccs_keys
40
41
  from ._perceive import perceive_bonds
41
42
  from ._pharmacophore import pharmacophore_invariants
@@ -56,8 +57,9 @@ from ._tables import (ACID_ROLES, AbbreviationRow, AcidRow, Endpoint, RESONANCE_
56
57
  salts_table_text, standardize_rules)
57
58
  from ._tpsa import tpsa
58
59
  from ..core._core import (_set_canonicalize_fn, _set_featurizer_fns, _set_hydrogens_fns,
59
- _set_isomers_fn, _set_protomers_fn, _set_resonance_fn, _set_salts_fns,
60
- _set_standardize_fn, _set_valence_fn)
60
+ _set_isomers_fn, _set_kekule_form_fn, _set_protomers_fn,
61
+ _set_resonance_fn, _set_salts_fns, _set_standardize_fn,
62
+ _set_valence_fn)
61
63
 
62
64
 
63
65
  __all__ = ['ACID_ROLES', 'AbbreviationRow', 'LogRecord', 'SALT_ROLES', 'SaltComposition',
@@ -68,12 +70,14 @@ __all__ = ['ACID_ROLES', 'AbbreviationRow', 'LogRecord', 'SALT_ROLES', 'SaltComp
68
70
  'hydrogen_bond_donors_count', 'implicify_hydrogens', 'maccs_bit_set', 'maccs_keys',
69
71
  'neutralize', 'perceive_bonds', 'pharmacophore_invariants', 'qed', 'qed_properties',
70
72
  'rotatable_bonds_count',
71
- 'saturate', 'split_salts', 'standardize', 'standardize_isomers', 'tpsa']
73
+ 'saturate', 'split_salts', 'standardize', 'standardize_isomers',
74
+ 'standardize_kekule', 'tpsa']
72
75
 
73
76
  _set_standardize_fn(standardize)
74
77
  _set_canonicalize_fn(canonicalize)
75
78
  _set_hydrogens_fns(implicify_hydrogens, explicify_hydrogens)
76
79
  _set_isomers_fn(standardize_isomers)
80
+ _set_kekule_form_fn(standardize_kekule)
77
81
  _set_valence_fn(check_valence)
78
82
  _set_salts_fns(split_salts=split_salts, decompose_salts=decompose_salts)
79
83
  _set_protomers_fn(neutralize)
@@ -18,16 +18,18 @@
18
18
  #
19
19
  """`canonicalize()` -- the pre-pass that makes `canonical_bytes` a compound identity rather than a
20
20
  drawing identity, so equal compounds hash equal and a corpus deduplicates by hash. The stage order
21
- is a correctness constraint, not taste: `kekule()`, `standardize()`, `implicify_hydrogens()`,
22
- `neutralize()`, `thiele()`, `standardize_isomers()`, and `kekule()` again only under
23
- `keep_kekule=True`. Each ordering pair is justified at its numbered step below.
21
+ is a correctness constraint, not taste: `kekule()`, `validate_stereo()`, `standardize()`,
22
+ `implicify_hydrogens()`, `neutralize()`, `standardize_kekule()`, `thiele()`, `standardize_isomers()`, and
23
+ `kekule()` again only under `keep_kekule=True`. Each ordering pair is justified at its numbered step
24
+ below.
24
25
 
25
- The order alone is not enough, because the last stage can unblock the second one: a `tautomer` row
26
+ The order alone is not enough, because the last stage can unblock the third one: a `tautomer` row
26
27
  wanting a free ring nitrogen cannot fire while the mobile hydrogen sits on it, and the placement is
27
- what moves that hydrogen off. So steps 2 to 6 run to a fixed point rather than once -- step 7.
28
+ what moves that hydrogen off. So steps 3 to 8 run to a fixed point rather than once -- step 9.
28
29
  """
29
30
  from ._hydrogens import implicify_hydrogens
30
31
  from ._isomers import standardize_isomers
32
+ from ._kekule_form import standardize_kekule
31
33
  from ._protomers import neutralize
32
34
  from ._standardize import standardize
33
35
  from ..core import LOST, LogRecord, MoleculeContainer, recording
@@ -38,7 +40,7 @@ __all__ = ['canonicalize']
38
40
 
39
41
  _RULE_ROUNDS = 'canonicalize:rounds'
40
42
 
41
- #: How many times steps 2 to 6 may be re-run before the pipeline gives up and says so. Every shape
43
+ #: How many times steps 3 to 8 may be re-run before the pipeline gives up and says so. Every shape
42
44
  #: measured converges in two, and the loop cannot cycle in principle: the `tautomer` rows move a
43
45
  #: hydrogen from oxygen or sulfur to nitrogen and never back, and the placement stage never makes an
44
46
  #: oxygen or a sulfur a site. The cap is here so a rule table that breaks either half is reported as
@@ -62,7 +64,7 @@ def canonicalize(molecule: MoleculeContainer, *, fix_tautomers: bool = True,
62
64
  needing the aromatic form.
63
65
 
64
66
  CHARGES ARE PAIRED OFF, not preserved atom by atom: glycine's zwitterion and its neutral drawing
65
- share a key, because step 4 runs `neutralize()`. `neutralize()` leaves the NET charge untouched, so
67
+ share a key, because step 5 runs `neutralize()`. `neutralize()` leaves the NET charge untouched, so
66
68
  sodium acetate stays sodium acetate -- there is no proton in it to move -- while ammonium acetate
67
69
  becomes acetic acid and ammonia, both drawings of one salt.
68
70
 
@@ -79,7 +81,7 @@ def canonicalize(molecule: MoleculeContainer, *, fix_tautomers: bool = True,
79
81
  f'{type(molecule).__name__}; a ReactionContainer has its own canonicalize(), '
80
82
  f'which runs this pass on each of its molecules')
81
83
 
82
- # the bool is measured, not accumulated: steps 1 and 5 are a round trip, so summing the stages'
84
+ # the bool is measured, not accumulated: steps 1 and 6 are a round trip, so summing the stages'
83
85
  # own flags would report a change through both ends of a no-op on an already-canonical molecule.
84
86
  before = molecule.canonical_bytes
85
87
 
@@ -92,43 +94,64 @@ def canonicalize(molecule: MoleculeContainer, *, fix_tautomers: bool = True,
92
94
  # event already reported. `check_valence()` is still how those atoms are found.
93
95
  molecule.kekule()
94
96
 
95
- # 2. Repair the drawing.
97
+ # 2. Drop the parities the constitution does not justify, on the localised form and before step 6
98
+ # hides a bond order behind an aromatic one. A cis/trans sign on a double bond an alternating
99
+ # cycle can move states which Kekule form was drawn, not the compound's geometry, and it enters
100
+ # `canonical_bytes` whether or not the unit is stereogenic -- so the two bond-shift drawings of
101
+ # 1,2-dimethylcyclooctatetraene keep two keys until it is gone. The report is not recorded: the
102
+ # parities it names are the reader's own input and `validate_stereo()` returns them to a caller
103
+ # that wants them.
104
+ molecule.validate_stereo()
105
+
106
+ # 3. Repair the drawing.
96
107
  standardize(molecule, fix_tautomers=fix_tautomers)
97
108
 
98
- # 3. Explicit hydrogens are a `canonical_bytes` difference, so they have to go.
109
+ # 4. Explicit hydrogens are a `canonical_bytes` difference, so they have to go.
99
110
  implicify_hydrogens(molecule)
100
111
 
101
- # 4. Pair off the charges an acid/base row can pair off, so a zwitterion and its neutral drawing
102
- # hash equal. AFTER step 3, because `acids.tsv` reads implicit hydrogens: a cation drawn with
112
+ # 5. Pair off the charges an acid/base row can pair off, so a zwitterion and its neutral drawing
113
+ # hash equal. AFTER step 4, because `acids.tsv` reads implicit hydrogens: a cation drawn with
103
114
  # hydrogen ATOMS is invisible to it until they have been folded in. `keep_charge` stays at its
104
115
  # default -- the net charge is part of the compound, so a canonical form may move a proton but
105
116
  # never create or destroy one. A quaternary ammonium keeps its counterion: it has no proton to
106
117
  # give, so the pass finds no donor and declines.
107
118
  neutralize(molecule)
108
119
 
109
- # 5. Back to the aromatic form, which is the representation callers compare. Ahead of step 6,
120
+ # 6. Which Kekule form, decided before step 7 reads one. `thiele()` refuses a candidate ring whose
121
+ # atom holds its double bond outside the ring, so a compound with several Kekule forms has one
122
+ # aromatic form per form until this stage picks between them; a ring too big for `thiele()` to
123
+ # consider gets a canonical alternation here instead, nothing later collapsing its two. AFTER
124
+ # step 3, whose group rules are written against the orders the drawing carried, and after step 2,
125
+ # whose parities would otherwise pin the very bond this stage moves.
126
+ standardize_kekule(molecule)
127
+
128
+ # 7. Back to the aromatic form, which is the representation callers compare. Ahead of step 8,
110
129
  # because a mobile hydrogen is a property of the aromatic form: step 1's definite orders already
111
130
  # say where the hydrogen is, leaving the placement stage nothing to choose.
112
131
  # `result.refused` is not recorded on top of the pass's own records either, and for the same
113
132
  # reason -- with the severity the aromatiser itself states, which is `REFUSED` and not a loss.
114
133
  molecule.thiele()
115
134
 
116
- # 6. Canonical placement of mobile hydrogens and charges -- what makes the two N-H forms of
135
+ # 8. Canonical placement of mobile hydrogens and charges -- what makes the two N-H forms of
117
136
  # 4-methylimidazole hash equal. Not gated by `fix_tautomers`: that flag withholds local repair
118
137
  # rules, and this picks which of two valid drawings to keep rather than repairing one.
119
138
  moved = standardize_isomers(molecule)
120
139
 
121
- # 7. Steps 2 to 6 again, while the placement keeps unblocking a repair. `Oc1[nH]cnc2nncc1-2` is
140
+ # 9. Steps 3 to 8 again, while the placement keeps unblocking a repair. `Oc1[nH]cnc2nncc1-2` is
122
141
  # the shape: its mobile hydrogen sits on the one ring nitrogen the hydroxy-azine rows need free,
123
- # so step 2 declines, and by the time step 6 has moved it the repair is behind us -- the drawing
142
+ # so step 3 declines, and by the time step 8 has moved it the repair is behind us -- the drawing
124
143
  # kept its hydroxy form and the same compound drawn the other way got the oxo form and a
125
144
  # different key. Only the placement is re-entered from, since it is the one stage that can put
126
145
  # the molecule back into a shape an earlier stage would have acted on.
127
146
  #
128
147
  # `kekule()` leads, and not for the reason step 1 does: the `tautomer` rows are written against
129
- # definite bond orders, so on the aromatic form step 5 left behind they match nothing at all and
130
- # re-running step 2 would be a guaranteed no-op. Step 4 is re-entered only behind a repair,
131
- # which is the only thing that can hand it a charged site it has not already seen.
148
+ # definite bond orders, so on the aromatic form step 7 left behind they match nothing at all and
149
+ # re-running step 3 would be a guaranteed no-op. Step 5 is re-entered only behind a repair,
150
+ # which is the only thing that can hand it a charged site it has not already seen. Step 6 rides
151
+ # with the aromatisation and not with the repair: the kekulisation above is free to come back with
152
+ # a different Kekule form than the one it was handed, which is the form step 7 would then read.
153
+ # Step 2 is not re-entered: the parities it can justify are a property of the constitution, which
154
+ # no stage from here on changes.
132
155
  for _ in range(_ROUNDS_MAX):
133
156
  if not moved:
134
157
  break
@@ -137,7 +160,8 @@ def canonicalize(molecule: MoleculeContainer, *, fix_tautomers: bool = True,
137
160
  if changed:
138
161
  implicify_hydrogens(molecule)
139
162
  neutralize(molecule)
140
- molecule.thiele() # unconditional: step 5's form is what a caller compares, and
163
+ standardize_kekule(molecule)
164
+ molecule.thiele() # unconditional: step 6's form is what a caller compares, and
141
165
  if not changed: # the kekulisation above has to be undone either way
142
166
  break
143
167
  moved = standardize_isomers(molecule)
@@ -148,8 +172,10 @@ def canonicalize(molecule: MoleculeContainer, *, fix_tautomers: bool = True,
148
172
  f'this molecule is not a fixed point and two drawings of it may not '
149
173
  f'share a key', LOST))
150
174
 
151
- # 8. `keep_kekule` undoes step 5 rather than skipping it: skipping 5 would skip 6 with it, and the
152
- # flag would then decide which tautomer the caller gets.
175
+ # 10. `keep_kekule` undoes step 7 rather than skipping it: skipping 7 would skip 8 with it, and the
176
+ # flag would then decide which tautomer the caller gets. Step 6 is not re-run behind it and
177
+ # would have nothing to do: an aromatic ring is unwound into a ring holding every double bond it
178
+ # has room for, and which of its alternations comes back is the kekuliser's answer to give.
153
179
  if keep_kekule:
154
180
  molecule.kekule()
155
181
 
@@ -82,6 +82,8 @@ def check_valence(molecule: MoleculeContainer) -> list[tuple[int, str]]:
82
82
  Merging them is how a coverage hole gets mistaken for bad input, so they stay apart.
83
83
 
84
84
  An aromatic atom is a violation only when neither Kekule reading has a row, since a claim about
85
- the molecule must survive every form the ring could take. Never raises and never edits.
85
+ the molecule must survive every form the ring could take. A hydrogen is read the same way,
86
+ drawn or counted: `[H][Ca][H]` and the `[CaH2]` that `canonicalize()` folds it into are one
87
+ compound and get one verdict. Never raises and never edits.
86
88
  """
87
89
  return valence_report(molecule)