Stereochemistry is preserved by the transformation to/from DeepSMILES. Ring opening symbols following a tetrahedral centre present some difficulties in this regard as their order determines the stereo configuration but those symbols are eliminated in DeepSMILES. To solve this, we invert the stereochemistry of a tetrahedral centre in those cases where, when reading, we would obtain the wrong stereo configuration. When reading, we place ring closures first and then ring openings are added in order of their corresponding ring closures. For example, the DeepSMILES CC1CCCO[C@@]12CCCCO2 is encoded as CCCCCO[C@@]6CCCCO6, but CC1CCCO[C@@]21CCCCO2 must be encoded with the opposite stereo configuration, as CCCCCO[C@]6CCCCO6.