Skip to content

Including metadata while merging #1610

Answered by Sun-storm
Sun-storm asked this question in Q&A
Discussion options

You must be logged in to vote

I figured it out, just had to include these lines
annotattion = GetGRangesFromEnsDb(ensdb = EnsDb.Hsapiens.v86)
seqlevelsStyle(annotation) = "UCSC"

and annotate each SeuratObject you create like this
Annotation(your_seurat_object) = annotation

Before merging the seurat objects together, if anyone ever has the same issue.

To better explain myself, you have to create the annotation, which what the first two lines do (I use the EnsDb.Hsapiens.v86 because I work on human data) and then chose UCSC, but you can choose others I believe.

Then, when you create the seurat objects (step just before merging), you annotate those seurat objects with the last line I just wrote and then merge.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Sun-storm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant