Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement local db / metfrag as conditional #5

Closed
bernt-matthias opened this issue Mar 29, 2019 · 7 comments
Closed

implement local db / metfrag as conditional #5

bernt-matthias opened this issue Mar 29, 2019 · 7 comments

Comments

@bernt-matthias
Copy link

Since either a local db or a metfrag db has to be chosen this shoud be realised with a conditional.

@korseby
Copy link
Collaborator

korseby commented Apr 3, 2019

For that you need a local db running. We should have a Dockerfile floating around somewhere here https://github.com/ipb-halle/MetFragRelaunched/tree/containerize

I think we should implement this in the rewrite of the tool

@korseby
Copy link
Collaborator

korseby commented Apr 3, 2019

The Dockerfile and instructions to build the local pubchem mirror database can be found here: https://github.com/c-ruttkies/container-metchemdata

@sneumann also has recent kubernetes deployment yamls.

@Tomnl
Copy link
Member

Tomnl commented Apr 3, 2019

@RJMW we can set this local database system up on one of the Birmingham virtual machines

@bernt-matthias
Copy link
Author

Currently in the tool the "local data base" is just a csv file.

Most frequently the Galaxy tool-data loc files specify files, but its definitely possible to specify a connection string.

For my curiosity: the DB you are referring to is some SQL DB? In the docker it seems to be postgres in the backend, but could be any DB (sqlite)?

@Tomnl
Copy link
Member

Tomnl commented Apr 5, 2019

hi @bernt-matthias,

We should still keep the option to have a "local database" that is just a csv file, and it should be realised as a conditional - like you mentioned in the original issue message.

The database @korseby is referring to is a local PubChem database (With a few modifications - called MetChem) and can be used in replace of doing the API calls to the public PubChem instance. See xml and script.

So, I will update Galaxy tool and script here for the following database options:

  • PubChem
  • KEGG
  • ChemSpider - if still working
  • MetChem
    • (and provide option for user to choose IP address of local instance)
  • LocalCSV
    • (and provide option for user to choose an uploaded CSV file)

@RJMW

@RJMW
Copy link
Member

RJMW commented Apr 5, 2019

I agree @Tomnl.

Examples for "LocalCSV" are available from here:
https://msbi.ipb-halle.de/~cruttkie/databases/
https://msbi.ipb-halle.de/~cruttkie/metfrag/example_local_inchi_file.txt

@korseby are there any more up-to-date csv files available?

@Tomnl
Copy link
Member

Tomnl commented Apr 15, 2019

This is now implemented following #8

@Tomnl Tomnl closed this as completed Apr 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants