BioinformaticsLabAtMUN / Promotech

Machine-learning-based general bacterial promoter prediction tool.
GNU General Public License v3.0
42 stars 11 forks source link

RF-HOT.model not found #13

Closed Kevi84LA closed 1 year ago

Kevi84LA commented 1 year ago

Hello,

I've been working with Promotech v1.0, commit number [221b257]. I've attempted to predict the entire genome of Mycobacterium tuberculosis using the following commands: python promotech.py -pg -m RF-HOT -f path_to_fasta -o results and python promotech.py -g -t 0.6 -i results -o results

However, I've encountered an error, which you can see below:

issues

I installed Promotech using Conda. Can you help me understand and resolve this issue?

Thanks in advance.

mmpust commented 1 year ago

Hi, were you able to solve the problem? I am having the same issue. Thanks!

OUTPUT SAMPLE WITH LEN (1,): 
ATGGATTCTTTCAAGGACGTTTTAGAGGCCGCCCAGGCAT

 CONVERTING DATA
N/A% (0 of 1) |                                                                                                                                               | Elapsed Time: 0:00:00 ETA:  --:--:--

 HOT ENCODED SEQUENCES GENERATED SUCCESSFULLY. 

   A  G  C  T  A ...  T  A  G  C  T
0  1  0  0  0  0 ...  0  0  0  0  1

[1 rows x 160 columns]

TIME ELAPSED FROM START (HOUR:MIN:SEC): 00:00:09

LOADING ML MODEL models/RF-HOT.model

Traceback (most recent call last):
  File "/home/Promotech/promotech.py", line 72, in <module>
    model_type      = args.model
  File "/home/Promotech/sequences/process_sequences.py", line 89, in predictSequences
    start_time=start_time
  File "/home/Promotech/sequences/process_sequences.py", line 49, in predictSequencesFromString
    model = joblib.load(model_path)
  File "/home/miniconda3/lib/python3.6/site-packages/joblib/numpy_pickle.py", line 577, in load
    with open(filename, 'rb') as f:

FileNotFoundError: [Errno 2] No such file or directory: 'models/RF-HOT.model'
mmpust commented 1 year ago

the models can be downloaded from http://www.cs.mun.ca/~lourdes/public/PromoTech_models/