jessieren / DeepVirFinder

Identifying viruses from metagenomic data by deep learning
Other
116 stars 32 forks source link

IndexError: list index out of range (by using trained model for viral sequence scanning) #40

Open ichotofiy opened 1 year ago

ichotofiy commented 1 year ago

Hi!

I trained model by using my own datasets, while it showed below error during viral sequence scanning.

IndexError: list index out of range

I used code:

python dvf.py -i /home/input/contigs.fasta -o /home/trained_model_scanning -l 300 -m /home/trained_model

And get error: WARNING (theano.tensor.blas): Using NumPy C-API based implementation for BLAS functions. Using Theano backend.

  1. Loading Models. model directory /lustre1/g/sph_lmpoon/yicao/NVIP/dvf/training_n_validating_set/run_training/trained_model Traceback (most recent call last): File "dvf.py", line 127, in modName = [ x for x in os.listdir(modDir) if modPattern in x and x.endswith(".h5") ][0] IndexError: list index out of range

Any suggestions is appreciated!

Best, Yi