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

Starting from 10X matrix file #9

Open
kokp2000 opened this issue Mar 7, 2023 · 1 comment
Open

Starting from 10X matrix file #9

kokp2000 opened this issue Mar 7, 2023 · 1 comment

Comments

@kokp2000
Copy link

kokp2000 commented Mar 7, 2023

Hi,

I have problem with integrating datasets using 10x output files.
It gives me the error message " Raw data must have both row (cell) and column (gene) names" although my data has valid gene names (var_names) and cell ID (obs_names).

image

Do you know how to solve this problem?

@Rbass3
Copy link

Rbass3 commented Oct 4, 2024

when create_liger reads each adata object, it expects var_names and obs_names (within each adata object) to have a "name" attribute which indicates that var_names represents gene names and that obs_names represents barcodes. so, you need to set the "name" attribute for var_names and obs_names to be "gene_names" and "barcodes" respectively. running this code on each adata object in the list fixed the issue for me:

image

Hope this fixes the issue

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

2 participants