Answers.Body: <p>You should have fed <code>&quot;1h&quot;</code> to your function call but you fed <code>1h</code> instead. The latter is looking for an object with that name and as the error shows, there is no such object.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-20T09:46:39.743Z
Answers.LastActivityDate: 2020-07-20T09:46:39.743Z
Answers.UserDisplayName: haci
Body: <p>I'd like to add metadata to 6 individual Seurat objects so that after I merge the objects into one, I can later label or split by using these identifiers. For example, I'd like to append an age group and then interval across these 6 objects. For adding an interval, I've tried using the below:</p>
  <blockquote>
  <p>AddMetaData(control, metadata = 1hr, col.name = Interval)</p>
  </blockquote>
  <p>However, this error will occur:</p>
  <pre><code>Error in .AddMetaData(object = object, metadata = metadata, col.name = col.name) : 
    object '1hr' not found
  </code></pre>
  <p>Appreciate any help, thank you!</p>
  
Tags: <scrnaseq><seurat><single-cell>
Title: Adding treatment groups via metadata to Seurat object?
ThreadText: # Adding treatment groups via metadata to Seurat object?
  
  (Asked by: username_0 on 2020-07-19)
  
  I'd like to add metadata to 6 individual Seurat objects so that after I merge the objects into one, I can later label or split by using these identifiers. For example, I'd like to append an age group and then interval across these 6 objects. For adding an interval, I've tried using the below:
  
  > AddMetaData(control, metadata = 1hr, col.name = Interval)
  
  However, this error will occur:
  
  ```
  Error in .AddMetaData(object = object, metadata = metadata, col.name = col.name) : 
    object '1hr' not found
  
  ```
  
  Appreciate any help, thank you!
  
  **Tags:** scrnaseq, seurat, single-cell
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-07-20. Score: 0 | Accepted answer
  
  You should have fed `"1h"` 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.
  
  
  ---
  
  