-
Notifications
You must be signed in to change notification settings - Fork 28
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
Error in WriteH5AD when SCE contains datetime objects #24
Comments
Hmmm... I'm guessing this is a problem with trying to convert something that doesn't have a matching Python type. Can you post the result of using If you want to get it working ASAP easiest thing is probably to delete the troublesome object with something like |
Yeah, we should probably throw warnings and ignore unconvertible objects. Not familiar enough with reticulate to know exactly how to do that, though I suppose we could just always |
had to go for this cause same error popped up again in metadata sorry for not providing reproducible example, here how the metadata object look like: metadata$tximetaInfo
$tximetaInfo$version
[1] ‘1.6.3’
$tximetaInfo$importTime
[1] "2020-08-28 09:26:04 CEST"
$countsFromAbundance
[1] "no"
$tximetaInfo
$tximetaInfo$version
[1] ‘1.6.3’
$tximetaInfo$importTime
[1] "2020-08-28 09:31:54 CEST"
$countsFromAbundance
[1] "no"
$tximetaInfo
$tximetaInfo$version
[1] ‘1.6.3’
$tximetaInfo$importTime
[1] "2020-08-28 09:41:53 CEST"
$countsFromAbundance
[1] "no"
$tximetaInfo
$tximetaInfo$version
[1] ‘1.6.3’
$tximetaInfo$importTime
[1] "2020-08-28 09:48:54 CEST"
$countsFromAbundance
[1] "no"
$tximetaInfo
$tximetaInfo$version
[1] ‘1.6.3’
$tximetaInfo$importTime
[1] "2020-08-28 09:54:36 CEST"
$countsFromAbundance
[1] "no"
$tximetaInfo
$tximetaInfo$version
[1] ‘1.6.3’
$tximetaInfo$importTime
[1] "2020-08-28 10:01:16 CEST"
$countsFromAbundance
[1] "no"
$tximetaInfo
$tximetaInfo$version
[1] ‘1.6.3’
$tximetaInfo$importTime
[1] "2020-08-28 10:05:46 CEST"
$countsFromAbundance
[1] "no"
|
Thanks! I think it's probably the timestamps that are the issue. I'm going to reopen this as a reminder to add better checks to this part of the code. |
Looking into this further the problem isn't anything to do with converting dates from R to Python, it's just that h5py can't really handle datetime objects. Despite this being a big scary error you still get a Not sure exactly how to handle this, possible options:
|
Hi,
I've tried to use zellkonverter to write a sce to disk as anndata. This is the log and error (at the end). Any pointers on how to solve it? I'm also happy to drop problematic slots if helpful (technically just need obs+counts)
Log + error
Thank you!
The text was updated successfully, but these errors were encountered: