Isotope List Editing
If you use a custom isotopes.data file, please note that, you have to recreate the file when upgrading your Marvin application!
Marvin applets reads the isotopes list from chemaxon/isotopes.txt location from the marvin directory.
MarvinSketch from the Marvin Beans package refers to the same relative path to access the isotopes list.
The following values are in the tab-separated columns:
-
Atom number
-
Number of neutrons
-
Mass (exact mass of the isotope, preferably at least 5 decimal places)
-
Abundance (values normalized to the most abundant natural isotope; main isotope - 100.00, artificial isotope - 0)
To add a custom isotope:
-
Download and open isotopes.txt or elements.txt.
-
Edit (or copy) a line next to the other isotopes of the given atom number. Fill in the other data. Save the file.
-
Refresh isotopes.txt or elements.txt:
-
Marvin Applets: Overwrite the old file with the new one in the chemaxon subdirectory of the Marvin Beans package.
-
Marvin Beans:
-
Copy the file to the user_home/chemaxon/ folder
-
Overwrite chemaxon/isotopes.txt or chemaxon/elements.txt inside the chemaxon-core.jar. Chemaxon-core.jar is a compressed archive file that you can extract/pack with any zip (un)compressor tool.
-
-
Old element and isotopic data:
Obsolete information for versions before 14.7.28:
All isotopes are listed in the binary file:
chemaxon/isotopes.data
, a
compressed file which stores isotopes.txt
in a heavily optimized versioned format.
To add or edit isotopes you can alter isotopes.txt source file found in the build subdirectory of the Marvin package.
To encode source file (isotopes.txt), use IsotopeCompiler tool that creates a new copy of isotopes.data from the given source file.
This tool is bundled with both Marvin Beans and Marvin Applets packages. It is wrapped into isotopescomp.jar in the build subdirectory.
Marvin applets reads the precompiled isotopes list from chemaxon/isotopes.data location from the marvin directory.
MarvinSketch from the Marvin Beans package refers to the same relative path to access the isotopes list. But - in this case - the path indicates the location of the file inside MarvinBeans.jar (or jchem.jar by JChem package).You can find "MarvinBeans.jar" in the lib subdirectory of Marvin Beans package.
The following values are in the tab-separated columns:
-
Atom number
-
Number of neutrons
-
Mass (exact mass of the isotope, preferably at least 5 decimal places)
-
Abundance (values normalized to the most abundant natural isotope; main isotope - 100.00, artificial isotope - 0)
To add a custom isotope:
-
Open build/isotopes.txt.
-
Edit (or copy) a line next to the other isotopes of the given atom number. Fill in the other data. Save the file.
-
Regenerate isotopes.data: enter into the build directory and type the following command:
java -jar isotopescomp.jar isotopes.txt
The output will be isotopes.data in the same directory.
-
Refresh isotopes.data or elements.zip:
-
Marvin Applets: Overwrite the old file with the new one in the chemaxon subdirectory of the Marvin Beans package.
-
-
Marvin Beans:
-
1. Copy the file to the user_home/chemaxon/ folder
2. Overwrite chemaxon/isotopes.data or chemaxon/elements.zip inside the chemaxon-core.jar. Chemaxon-core.jar is a compressed archive file that you can extract/pack with any zip (un)compressor tool.