User b54d574d3c
28-04-2015 08:28:09
Hello,
i want to convert an SDF file with additional descriptions to an smile file. The output should be like this:
Input SDF:
Mrv1539 04231510203D
4 3 0 0 0 0 999 V2000
0.6038 -1.1459 0.0350 C 0 0 1 0 0 0 0 0 0 0 0 0
-0.0770 0.1013 -0.3457 C 0 0 0 0 0 0 0 0 0 0 0 0
-0.4348 0.9252 0.5261 O 0 0 0 0 0 0 0 0 0 0 0 0
-0.3617 0.4781 -1.9693 Cl 0 0 0 0 0 0 0 0 0 0 0 0
1 5 1 0 0 0 0
1 6 1 0 0 0 0
1 7 1 0 0 0 0
M END
> <chem>
CHLOROACETYL CHLORIDE
> <HBD>
0.0
> <HBA1>
1.0
> <HBA2>
1.0
> <molwt>
112.94268
> <RotBonds>
1
> <TPSA>
17.07
> <logP>
0.9906
> <bonds>
4.0
> <sbonds>
3.0
> <atoms>
5.0
> <MR>
21.52
> <abonds>
0.0
> <toxClass>
class2
> <doseLD50>
32
$$$$
Output:
#SMILES chem HBD HBA1 HBA2 molwt RotBonds TPSA logP bonds sbonds atoms MR abonds toxClass doseLD50
Cc1cccc(c1Br)C BENZENE, 2-BROMO-1,3-DIMETHYL- 0.0 0.0 0.0 185.06106 0 0.0 3.0659 9.0 3.0 9.0 44.074 6.0 class3 56
i just copy pasted some random values, so dont wonder if values in the input and output arent the same.
is this possible?
I would be very grateful for your help.