copyMiscElements | R Documentation |
Copies specified elements from the @misc
slot of one Seurat object to the @misc
slot
of another. It warns if some specified elements are missing in the source object or if elements are
overwritten in the destination object, depending on the overwrite
argument.
copyMiscElements(obj.from, obj.to, elements.needed, overwrite = TRUE)
obj.from |
The source Seurat object from which elements in the |
obj.to |
The destination Seurat object to which elements in the |
elements.needed |
A vector of strings specifying the names of the elements in the |
overwrite |
Logical indicating whether to overwrite elements in |
Returns the modified destination Seurat object (obj.to
) with the specified elements
added to or updated in its @misc
slot.
# Assuming `obj1` and `obj2` are Seurat objects and you wish to copy specific elements
# from obj1 to obj2, possibly overwriting existing elements in obj2
obj2 <- copyMiscElements(obj1, obj2, c("element1", "element2"), overwrite = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.