lasigeBioTM / DiShIn

Semantic Similarity Measures using Disjunctive Shared Information
http://labs.fc.ul.pt/dishin/
Apache License 2.0
24 stars 4 forks source link

Throw an error when DB does not exist #3

Open AndreLamurias opened 5 months ago

AndreLamurias commented 5 months ago

Check if DB file exists before opening, if not, throw an error

AndreLamurias commented 5 months ago

Example:

import ssmpy
ssmpy.semantic_base("go.db")
ssmpy.ssm.intrinsic = True
e1 = ssmpy.get_id("GO:0048364")