-
Notifications
You must be signed in to change notification settings - Fork 19
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
Cannot Read h5 file after starsolo+cellbender #99
Comments
Hi, Thanks for kind words on package! Can you provide me a bit more information about your environment by pasting output of Also could you let me know which version of CellBender you used? Thanks! |
Thanks for quick response! Here is the sessioninfo():
And my version of CellBender was v0.2.2! |
Ok let me look into it. Also not 100% necessary but may help. Is it possible for you to share the H5 file? If so I can send google drive link. Best, |
Thanks for help, yes I can share the file :) |
Great. Send me email from account I should share link to. samuel.marsh@childrens.harvard.edu. Thanks! |
Ok got file and got passed initial error and now I'm getting series of H5 errors like yours but different. I;m going to keep looking at it but also wondering if you have tried re-running CellBender and whether issue is the same on new output file? Best, |
I did run CellBender not on the same sample, but different samples coming from different datasets. When I tried reading the file with other samples, it gave me the same error. I wonder if it could be related how CellBender writes h5 file coming from STARsolo output folder instead of CellRanger h5 file as an input? Because previously we managed to use your package after Cellranger+Cellbender. Somehow Seurat function Read10X_h5() is able to handle this file but scCustomize function is not. |
Ok good to know. I’ll take deeper look into the h5 file and see what I can find. Since Seurat reads it I think it’s probably easy fix (I hope). Best, |
Ok just an update as I continue to look into this and figure out where the error is happening. Basically my CellBender read function is modified version of Seurat's that really should come into play with CellBender v3+ (currently in alpha) files because they contain slightly different format and my function is meant to enable reading of both whereas Seurat's Read10X_h5 fails with v3+. I'm working on it. Basically a CellBender output file when using 10X input looks like this:
Whereas yours looks like this:
As you can see all of the data is there but it's just arranged/named differently. I'll work on internal test in the function to support this. I hope to have fix for you by later this week/early next week. Best, |
Hi @ayyildizd, So sorry for the delay without any updates! Happy to report though that full functionality is now part of scCustomize in develop branch (v1.1.1.9010). Basically needed to add optional parameters to support preV3 CellRanger or STARsolo outputs. I tested with H5 file that you sent and it worked. For your files it was just an error that features were named "genes" instead of the newer "features". So just need to use new optional parameter
If you run into any issues using the function let me know here and I'll reopen the issue. Best, |
I should also mention I added an error check in the function as well so that it throws interpretable error if something goes wrong instead of the h5 error which is hard to interpret. Best, |
Thank you very much!! |
Happy to help! Thanks for submitting the issue! |
Thanks for developing this nice tool.
I used STAR solo for preprocessing the samples and then CellBender using the STAR solo output folder containing (genes.tsv, matrix.mtx and barcodes.tsv) as an input. I am not able to read h5 files created in this way using scCustomize's funtions (both Read_CellBender_h5_Mat and Read_CellBender_h5_Multi_Directory). On the other hand, seurat function Read10X_h5() works.
The error I get is:
The text was updated successfully, but these errors were encountered: