<span class="fu"><a href="https://satijalab.org/seurat/reference/AddMetaData.html">AddMetaData</a></span><span class="op">(</span><span class="va">kidney</span>, metadata <span class="op">=</span> <span class="va">celltypes</span><span class="op">$</span><span class="va">CellStates</span>, col.name <span class="op">=</span> <span class="st">"cellstates"</span><span class="op">)</span>
<span class="va">kidney</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://satijalab.org/seurat/referenc