Skip to content
This repository has been archived by the owner on May 25, 2024. It is now read-only.

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

Open
Crispy13 opened this issue Dec 27, 2023 · 0 comments
Open

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

Crispy13 opened this issue Dec 27, 2023 · 0 comments

Comments

@Crispy13
Copy link

Crispy13 commented Dec 27, 2023

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant