tleonardi / nanocompore

RNA modifications detection from Nanopore dRNA-Seq data
https://nanocompore.rna.rocks
GNU General Public License v3.0
78 stars 12 forks source link

database file created by SampComp is not accessible #116

Closed amir-azizi closed 4 years ago

amir-azizi commented 4 years ago

Hello,

I have followed the instructions in https://nanocompore.rna.rocks/demo/SampComp_usage/ The results directory contains the following files:

out_SampComp.db.bak
out_SampComp.db.dat
out_SampComp.db.dir
out_SampComp.log
out_nanocompore_results.tsv
out_nanocompore_shift_stats.tsv

When I tried to generate plots, SampCompDB cannot load the "database" file out_SampComp.db.dat. I even tried removing .dat suffix. This is the error I get:

NanocomporeError: The result database cannot be opened

Could you please let me know what I am doing wrong?

Thanks.

tleonardi commented 4 years ago

Hi @amir-azizi, in general, SampCompDB requires the path to out_SampComp.db file, without the .bak/.dat/.dir extension. For example, if your results folder was at /home/user/results you would call SampCompDB with:

db = SampCompDB(db_fn = "/home/user/results/out_SampComp.db")

Can you please post the full stack trace and the code block (or line) that's giving you the error?

cheers!

amir-azizi commented 4 years ago

Using out_SampComp.db, without .dat worked.

Thanks a lot :)

tleonardi commented 4 years ago

Perfect, glad it worked!