Closed kpillman closed 4 years ago
Further investigation suggests the error relates to the fact a GenomicFeature can not be used as the 'value' part of a GenomicArrayOfSets in python3.
genomic_array_of_features = HTSeq.GenomicArrayOfSets("auto", stranded=is_stranded)
for feature in feature_iterator:
genomic_array_of_features[feature.iv] += feature
return genomic_array_of_features
The error goes away if I use something hashable like a string instead, e.g. genomic_array_of_features[feature.iv] += "feature"
although obviously this isn't a solution to my problem...
I can't figure out a work around this without breaking everything downstream (we have a lot of code relying on this particular object). Is there anything you can do internally to make GenomicArrayOfSets accept GenomicFeatures as values again?
Just realised this issue needs to be raised in the new HTSeq repo, not here, sorry.
Hello,
I'm just checking whether anyone else has seen this error, as per Issue #59 I've recently switched to python 3 (currently running v3.8.5) from python 2.7 and am running some old code that now throws this error when using gene GenomicFeatures to populate a GenomicArrayOfSets. It appears to be the same error as was observed in Issue #59 but in a different context.
HTSeq version 0.12.4
Here is a minimal snippet of code that reproduces the error:
Output
Cheers!