Adding treatment groups via metadata to Seurat object?
You should have fed &quot;1h&quot; to your function call but you fed 1h instead. The latter is looking for an object with that name and as the error shows, there is no such object.