Skip to content

transformer.pth is not accessible by md5sum and phamer.py is unable to find it #18

Description

@PB-Shinde

I downloaded the transformer.pth from google drive link provided, and extracted it in ./database/ folder. Then used md5sum command to check which showed the following error.

md5sum: transformer.pth: Is a directory
transformer.pth: FAILED open or read
md5sum: WARNING: 1 listed file could not be read

so I opened the folder it had folder named "/archive" and inside it had 1 folder named "/data" and 2 files named data.pkl, version.
so i went ahead with the phamer

(phn) drkksharma@drkksharma-OptiPlex-9020:~/phamer$ python PhaMer_preprocessing.py --contigs test_contigs.fa
Using parallelized prodigal...
Running prodigal...

---------------------------------Diamond BLASTp---------------------------------
Creating Diamond database and running Diamond...
Creating Diamond database...
Running Diamond...
(phn) drkksharma@drkksharma-OptiPlex-9020:~/phamer$ python PhaMer.py --out example_prediction.csv
running with cpu
cannot find pre-trained model

this is the error i received, and after much trial error i found that error was on the line number 100 of file PhaMer.py
more precisely with the loading the pretrained model.
My issue is, is there some issue with script or the transformer.pth. please clarify.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions