-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.selfies
More file actions
45 lines (36 loc) · 1.03 KB
/
example.selfies
File metadata and controls
45 lines (36 loc) · 1.03 KB
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
# SELFIES Language Example
# This file demonstrates the SELFIES DSL syntax
# Basic alkyl groups
[methyl] = [C]
[ethyl] = [C][C]
[propyl] = [C][C][C]
[butyl] = [C][C][C][C]
# Functional groups
[hydroxyl] = [O]
[amino] = [N]
[carbonyl] = [=O]
[carboxyl] = [C][=Branch1][C][=O][O]
# Simple molecules
[methanol] = [methyl][hydroxyl]
[ethanol] = [ethyl][hydroxyl]
[propanol] = [propyl][hydroxyl]
# Organic acids
[formic_acid] = [carboxyl]
[acetic_acid] = [methyl][carboxyl]
[propionic_acid] = [ethyl][carboxyl]
# Amines
[methylamine] = [methyl][amino]
[ethylamine] = [ethyl][amino]
# More complex molecules
[acetone] = [methyl][C][=Branch1][C][=O][methyl]
[acetaldehyde] = [methyl][C][=O]
# Aromatic compounds
[benzene] = [C][=C][C][=C][C][=C][Ring1][=Branch1]
[toluene] = [methyl][benzene]
[phenol] = [benzene][hydroxyl]
# Heterocycles
[pyridine] = [C][=C][C][=C][N][=C][Ring1][=Branch1]
[furan] = [O][C][=C][C][=C][Ring1][Branch1]
# Amino acids (simplified)
[glycine] = [amino][C][carboxyl]
[alanine] = [amino][C][Branch1][C][methyl][carboxyl]