I'm trying to recreate a rather complicated reaction scheme with chemfig and TikZ. For that, I'd like to position several amino acid side chains at specific positions.
What I'd like to do is to use the "origins" of those side chains as anchors for positioning the molecules:

I cannot use normal anchors, however, as the origins' coordinates change depending on the molecules' bounding boxes. Additionally, the chemfig manual states that the origins' coordinates are only calculated when the molecule is actually placed with \chemfig.
So I thought about using chemfig's @ syntax to place a node (called ori) at the origin and moving the chemfig molecule to it, using the ori1/ori2 nodes as anchors:
\documentclass{article}
\usepackage{chemfig}
\begin{document}
Cysteine side chain
\begin{tikzpicture}
\node[draw,anchor=south west] (cys) at (0,0) {\chemfig{-[@{ori1,0}2]S-H}};
% ??? movement code ???
\end{tikzpicture}
Cysteine side chain, deprotonated
\begin{tikzpicture}
\node[draw, anchor=south west] (cys_deprot) at (0, 0) {\chemfig{-[@{ori2,0}2]S|^{-}}};
% ??? movement code ???
\end{tikzpicture}
\end{document}
However, as far as I've understood from reading through the TikZ manual, there is no way to use other nodes as anchors. Is there some way to achieve this?
Edit for clarification:
Let's talk about the first structure only, the other one is just for comparision. I'd like to use the bullet in the picture (node ori1) as the anchor of the rectangle (node cys). However, ori1's coordinates are not known until cys is actually placed, which is why I believe I have to do the following dance:
Place the
cysnode, so that theori1node gets defined:\node (cys) at (0,0) {\chemfig{-[@{ori1,0}2]S-H}};Move
cysto its new (fixed) position, anchored atori1's coordinates (this is the step I don't know).
Is this clear enough? If not, then I'll try and add a picture tonight.
baselineoption). And you can’t move the parent node later. You can however use the coordinateori1to place something else there. It is still unclear what you actually want to achieve? Remember that the result of\chemfigis in its own a TikZ picture. In the manual ofchemfig, take a look at the\chemmovemacro where you can reference the named coordinates and nodes with the@syntax. – Qrrbrbirlbel Jul 30 '13 at 16:50chemfig's scheming commands. I just played a bit and already set half the scheme... if you like I can post this as an answer although strictly speaking it may not be an answer... – cgnieder Jul 30 '13 at 17:20