xjtu-omics / SVision

Detecting genome structural variants with deep learning in single molecule sequencing
GNU General Public License v3.0
101 stars 10 forks source link

save_restore_tensor.cc:175 #35

Closed asylvz closed 2 months ago

asylvz commented 2 months ago

Hello, I'm trying to run SVision with default settings, but I get the following error. I checked the md5sum of the cnn model and I there seems to be no such problem. Any idea?

SVision -o res/ -b bam_file.bam -m svision-cnn-model.ckpt.data-00000-of-00001 -g 1KG_ONT_VIENNA_hg38.fa -n ${sample} -t 24

Error message: SVision_error.txt

paudano commented 2 months ago

Try running it without specifying “.data-00000-of-00001” on the model filename.

We’ve run it with “-m $SVISION_MODEL_PATH/svision-cnn-model.ckpt”

Here’s a post where someone had the same issue: https://stackoverflow.com/questions/48438122/import-meta-graph-fails-with-data-loss-not-an-sstable-bad-magic-number

jiadong324 commented 2 months ago

Thanks Peter @paudano for your response.

@asylvz Just suggested by Peter, please use the model as svision-cnn-model.ckpt without the suffix. Please let me know if you have any questions.

asylvz commented 2 months ago

It worked perfectly after changing the filename.

Thanks a lot @paudano and @jiadong324.