nucleus icon indicating copy to clipboard operation
nucleus copied to clipboard

PythonNext() argument read is not valid: Dynamic cast failed

Open Crispy13 opened this issue 2 years ago • 0 comments

from nucleus.protos import reads_pb2
from nucleus.io import sam

read_requirements = reads_pb2.ReadRequirements()
sam_reader = sam.SamReader(
      input_path="NA12878_sliced.bam", read_requirements=read_requirements)

for r in sam_reader:
    print(r)
RuntimeError: PythonNext() argument read is not valid: Dynamic cast failed
2023-12-27 16:25:36.748166: W [.nucleus/util/proto_clif_converter.h:60)] Failed to cast type N6google8protobuf14DynamicMessageE
  • Versions:
Python 3.8.18
tensorflow                   2.13.1
protobuf                     3.20.3
google-nucleus               0.6.0

Any recommendations? I'm trying to run this example: https://blog.tensorflow.org/2019/01/using-nucleus-and-tensorflow-for-dna.html

Crispy13 avatar Dec 27 '23 07:12 Crispy13