-
Notifications
You must be signed in to change notification settings - Fork 2
/
README.html
executable file
·53 lines (44 loc) · 2.58 KB
/
README.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<html>
<h1>JUMBOConverters</h1>
<p>A set of libraries ("converters") which provide conversion to and from CML.</p>
<p>In general conversion TO CML is lossless as CML can - in principle - hold most concepts found in chemical files. In
general conversion FROM CML is lossy. JUMBOConverters concentrates on preserving document structure where possible and
therefore is particularly well suited for complex document types (although converters for simpler ones are obviously
possible).</p>
<p>JUMBOConverters may normalize or transform certain aspects of CML (e.g. deducing atomParity from bondStereo). However it
is not primarily an engine for calculating molecular or other properties.</p>
<p>JUMBOConverters is designed as a series of modules where the output from one can be piped into the input of another. It
should be possible to integrate it into workflows or scripts. Each module should be side-effect-free (although error-
reporting and logging is still being worked on). </p>
<p>The JUMBOConverters package includes a simple tool for converting all files in a directory structure. This uses ApacheCommons
DirectoryWalker and visits every file in the tree with a given suffix. The output files all have the same given output suffix and
are located in a specified absolute or relative directory structure.</p>
<p>Each converter is accessed through its java classname, such as
"org.xmlcml.cml.converters.molecule.pubchem.PubchemXML2CMLConverter"
The caller must know the name of the converter (there is no inifinite magic yet).</p>
<p>The distribution includes an executable file whose main() method runs org.xmlcml.cml.converters.ConverterCommand.
This must be in your classpath. This uses the Apache CommandLine interface to interpret a command. Typical usage:
<ul>
<li>
<pre>
java -jar jumboconverters.jar
</pre>
<br/>
will give the commandline options (and I hope a list of converter classes)
</li>
<li>
<pre>
java -jar jumboconverters.jar -converter org.xmlcml.cml.converters.molecule.pubchem.PubchemXML2CMLConverter
</pre>
will run the Pubchem2CML converter in the current directory and with default suffixes (not recommended)
</li>
<li>
<pre>
java -jar jumboconverters.jar -converter org.xmlcml.cml.converters.molecule.pubchem.PubchemXML2CMLConverter
-sd examples/input -odir ../output -is pubchem.xml -os pubchem.cml
</pre>
will run the Pubchem2CML converter starting in the grandchild directory (examples/input) and output to
examples/output (relative to each input directory). the input suffix is pubchem.xml and the output pubchem.cml
</li>
</ul>
</html>