Collections:
sdf2svg - PHP Script to Convert SDF to SVG
How to convert Convert SDF to SVG (Scalable Vector Graphics) using "sdf2svg" PHP script? I want to see the molecule structure as a SVG file.
✍: Guest
If you want to convert molecule structures in SDF format to SVG (Scalable Vector Graphics)
format to be viewed on Web pages directly, you can download and install the "sdf2svg"
open source PHP script developed by Ronnie Persson.
1. Download "df2svg_beta_with_samples.zip" from sourceforge.net/projects/sdf2svg under the "beta_with_sample" folder.
2. Unzip all files from "df2svg_beta_with_samples.zip" into a folder called "sdf2svg". You should see the following contents:
fyicenter$ ls -l sdf2svg -rwxr-xr-x 1 fyicenter staff 1141 Apr 6 19:52 index.html -rwxr-xr-x@ 1 fyicenter staff 3416 Apr 6 19:46 outputsvg.php -rwxr-xr-x@ 1 fyicenter staff 2311 Apr 6 19:46 sample.php -rwxr-xr-x@ 1 fyicenter staff 14956 Apr 6 19:46 sample.sdf -rwxr-xr-x@ 1 fyicenter staff 3463 Apr 6 19:46 sample2.php drwxr-xr-x@ 12 fyicenter staff 408 Apr 6 19:46 sdf2svg
3. Move this folder to the Apache Web server. And adjust ownership and permission of this folder to be served as PHP scripts.
4. Run the first sample PHP page. You should see a picture of 4 molecules in SVG format converted from a SDF file.
5. If you are using the latest PHP release, you have to fix few syntax issues in the PHP script source code.
⇒ Online Tools for SDF/Mol File
⇐ Convert SDF to SVG using Open Babel
2020-04-16, 3344🔥, 0💬
Popular Posts:
Molecule Summary: ID: FYI-1002299 Names: InChIKey: WFWLQNSHRPWKFK-UHFFFAOYS A-NSMILES: O=c2[nH]c(=O)...
Molecule Summary: ID: FYI-1004010 Names: InChIKey: JAVNYTDQVZVJHU-UHFFFAOYS A-NSMILES: OCCSc3nnc(c2c...
Molecule Summary: ID: FYI-1000173 SMILES: CC(C)N(C)C(=O)c2ccc(C#CC Cc1ccc(Cl)cc1)cc2Received at FYIc...
Molecule Summary: ID: FYI-1000336 SMILES: CC(=C)C1CCC2(C1C3CCC4C5( CCC(=O)C(C5CCC4(C3(CC2)C )C)(C)C)C)...
Molecule Summary: ID: FYI-1000950 SMILES: CCCCCc3cc(O)c2C1C=C(C)CC C1C(C)(C)Oc2c3Received at FYIcent...