sacdallago / bio_embeddings

Get protein embeddings from protein sequences
http://docs.bioembeddings.com
MIT License
460 stars 65 forks source link

Protocol deepblast: AttributeError: can't set attribute #203

Closed XiaofangJ closed 1 year ago

XiaofangJ commented 2 years ago

Metadata

key value
version 0.2.2
cuda True

Parameter

key value
type align
protocol deepblast
depends_on transferred_annotations_cosine
reference_fasta_file cath-db.fasta

Traceback

Traceback (most recent call last):
  File "/home/jiangx6/anaconda3/envs/bioembed/lib/python3.9/site-packages/bio_embeddings/utilities/pipeline.py", line 284, in execute_pipeline_from_config
    stage_output_parameters = stage_runnable(**stage_parameters)
  File "/home/jiangx6/anaconda3/envs/bioembed/lib/python3.9/site-packages/bio_embeddings/align/pipeline.py", line 210, in run
    return PROTOCOLS[kwargs["protocol"]](**kwargs)
  File "/home/jiangx6/anaconda3/envs/bioembed/lib/python3.9/site-packages/bio_embeddings/align/pipeline.py", line 149, in deepblast
    alignments = deepblast_align(
  File "/home/jiangx6/anaconda3/envs/bioembed/lib/python3.9/site-packages/bio_embeddings/align/deepblast.py", line 28, in deepblast_align
    model = LightningAligner.load_from_checkpoint(model_file).to(device)
  File "/home/jiangx6/anaconda3/envs/bioembed/lib/python3.9/site-packages/pytorch_lightning/core/saving.py", line 137, in load_from_checkpoint
    return _load_from_checkpoint(
  File "/home/jiangx6/anaconda3/envs/bioembed/lib/python3.9/site-packages/pytorch_lightning/core/saving.py", line 205, in _load_from_checkpoint
    return _load_state(cls, checkpoint, strict=strict, **kwargs)
  File "/home/jiangx6/anaconda3/envs/bioembed/lib/python3.9/site-packages/pytorch_lightning/core/saving.py", line 250, in _load_state
    obj = cls(**_cls_kwargs)
  File "/home/jiangx6/anaconda3/envs/bioembed/lib/python3.9/site-packages/deepblast/trainer.py", line 29, in __init__
    self.hparams = args
  File "/home/jiangx6/anaconda3/envs/bioembed/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1178, in __setattr__
    object.__setattr__(self, name, value)
AttributeError: can't set attribute

More info