Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get the actual raw cells behind a metacell? #63

Open
chansigit opened this issue Jan 7, 2022 · 3 comments
Open

How to get the actual raw cells behind a metacell? #63

chansigit opened this issue Jan 7, 2022 · 3 comments

Comments

@chansigit
Copy link

Dear authors, thank you for your work. I am wondering if I can get the real cell barcodes behind each metacell so that it would be easier to interprete the metacell's identity. This is important to me because I have already finished cell type assignment on single-cell level and hope to use metacell to enhance my data.

@JulieBaker1
Copy link

Dear authors, thank you for your work. I am wondering if I can get the real cell barcodes behind each metacell so that it would be easier to interprete the metacell's identity. This is important to me because I have already finished cell type assignment on single-cell level and hope to use metacell to enhance my data.

Have you solved it? I came across the same problem.

@aviezerl
Copy link
Collaborator

aviezerl commented Apr 2, 2022

Hi @chansigit and @JulieBaker1,

The cell to metacell associations are available at the @mc slot of the tgMCCov object as a named list where names are cell ids (usually barcodes) and values are the metacell associations, e.g.:

mc <- scdb_mc(mc_id)
head(mc@mc) 
#> AAACAGCCAATCCCTT-1 AAACAGCCAATGCGCT-1 AAACAGCCACCAACCG-1 AAACAGCCAGGATAAC-1
#>               44                 22                  7                 24

P.S. We have a new and improved metacell algorithm which is implemented in python at: https://github.com/tanaylab/metacells. We recommend using it instead of the current package.

Aviezer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@chansigit @aviezerl @JulieBaker1 and others