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 h5 files ? #2

Closed
BinDuan opened this issue Nov 18, 2019 · 3 comments
Closed

how to get h5 files ? #2

BinDuan opened this issue Nov 18, 2019 · 3 comments

Comments

@BinDuan
Copy link

BinDuan commented Nov 18, 2019

The author gave examples, and the input is "data.h5", I wonder how can you get h5 file like you said with the original expression profile?

@Jeff1995
Copy link
Collaborator

Sorry for the delayed response. The h5 files can be found at https://cblast.gao-lab.org/download. You can click the dataset names (first column) there to download the h5 files.

@BinDuan
Copy link
Author

BinDuan commented Nov 25, 2019

Thanks for your response and it is helpful. However, what I want to know is that how should I creat "h5" files that satisfy the input of Cell_BLAST with my own data which your datasets didn't contain.

@Jeff1995
Copy link
Collaborator

In that case, it might be unnecessary to convert to the h5 files and load them from disk. What's the current data format you have? If it's in AnnData or Loom format, you can use the from_anndata or from_loom methods to convert them into cb.data.ExprDataSet class, which can then be used as input of Cell BLAST. Otherwise, you may first manually read your dataset into memory, and then create a cb.data.ExprDataSet object (via the class constructor) with the expression matrix, cell meta table and gene meta table. To save the cb.data.ExprDataSet object to h5 files, use the write_dataset method.

Hope that helps!

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

3 participants