Skip to content

why error using loadDatabases when internet is working #371

Answered by edkerk
PkiwiBird asked this question in Q&A
Discussion options

You must be logged in to vote

makeEcModel calls loadDatabases, which in turn checks if the file already exists locally, and should only download it if it does not exist.

loadDatabases will throw the error that you showed if the download fails for whatever reason. This could have to do with your internet connection, but it could also be a slow response by the UniProt server.

If you download the file manually, then make sure it is stored in the correct location:

adapter = ModelAdapterManager.getDefault;
filepath = adapter.params.path;
fullfile(filepath,'data','uniprot.tsv')

If this file exists, then loadDatabases should not try to download it again next time.

I'll modify loadDatabases to provide this information in the …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@PkiwiBird
Comment options

Answer selected by PkiwiBird
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants