Skip to content

Commit 5e015a8

Browse files
hhaenselhhaensel
andauthored
Add a reader for cdxml format (#145)
* support cdxml format * implement stereo-bonds via 'notation' analog to sdfilereader * add has_isaromatic for CDXML * add tests for cdxml * correct handling of WedgeHashEnd * switch from LightXML to EzXML --------- Co-authored-by: hhaensel <helmut.haensel@gmx.com>
1 parent 68666d5 commit 5e015a8

5 files changed

Lines changed: 498 additions & 3 deletions

File tree

Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab"
1010
GeometryBasics = "5c1252a2-5f33-56bf-86c9-59e7332b4326"
1111
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
1212
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
13+
EzXML = "8f5d6c58-4d21-5cfd-889c-e3ad7ee6a615"
1314
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1415
MakieCore = "20f20a25-4f0e-4fdf-b5d1-57303727442b"
1516
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
@@ -35,6 +36,7 @@ DelimitedFiles = "1"
3536
GeometryBasics = "0.5"
3637
Graphs = "1.12"
3738
JSON = "1"
39+
EzXML = "1"
3840
MakieCore = "0.9,0.10"
3941
OrderedCollections = "1.8"
4042
RDKitMinimalLib = "1.2"

src/MolecularGraph.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ include("./model/atom.jl")
5252
include("./model/bond.jl")
5353
include("./model/molgraph.jl")
5454
include("./model/query.jl")
55+
include("./model/cdxml.jl")
56+
export cdxmltomol, cdxmltomols
5557

5658
include("./graph/operators.jl")
5759
include("./graph/traversals.jl")
@@ -66,11 +68,11 @@ include("./graph/isomorphism_clique.jl")
6668

6769
export
6870
ATOMTABLE, ATOMSYMBOLMAP, ATOM_COVALENT_RADII, ATOM_VANDERWAALS_RADII,
69-
SDFAtom, SMILESAtom, CommonChemAtom,
71+
SDFAtom, SMILESAtom, CommonChemAtom, CDXMLAtom,
7072
atom_number, atom_symbol, atom_charge, multiplicity, isotope,
71-
SDFBond, SMILESBond, CommonChemBond,
73+
SDFBond, SMILESBond, CommonChemBond, CDXMLBond,
7274
bond_order,
73-
MolGraph, SDFMolGraph, SMILESMolGraph, CommonChemMolGraph,
75+
MolGraph, SDFMolGraph, SMILESMolGraph, CommonChemMolGraph, CDXMLMolGraph,
7476
QueryMolGraph, QueryAtom, QueryBond
7577

7678
export

0 commit comments

Comments
 (0)