Skip to content

AttributeError: type object 'Genome' has no attribute '_initialized' #2

@eyalbenda

Description

@eyalbenda

I'm trying to run the C. elegans example but it crashes after a long runtime with the following error:

`python DeepArk.py predict --checkpoint-file data/caenorhabditis_elegans.pth.tar --input-file examples/caenorhabditis_elegans_prediction_example.fasta --output-dir ./ --output-format 'tsv' --batch-size '64' --cuda

Traceback (most recent call last):
File "DeepArk.py", line 271, in
cli(obj=dict())
File "/home/lambda/anaconda3/envs/DeepArk/lib/python3.6/site-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/home/lambda/anaconda3/envs/DeepArk/lib/python3.6/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/lambda/anaconda3/envs/DeepArk/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/lambda/anaconda3/envs/DeepArk/lib/python3.6/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/lambda/anaconda3/envs/DeepArk/lib/python3.6/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/lambda/anaconda3/envs/DeepArk/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "DeepArk.py", line 122, in predict
reference_sequence=genome)
File "/home/lambda/anaconda3/envs/DeepArk/lib/python3.6/site-packages/selene_sdk/predict/model_predict.py", line 176, in init
if not self.reference_sequence._initialized:
AttributeError: type object 'Genome' has no attribute '_initialized'
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions