TransWikia.com

Adding treatment groups via metadata to Seurat object?

Bioinformatics Asked by astro_guy on August 21, 2021

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!

One 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.

Correct answer by haci on August 21, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP