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

Change code to submit data to this project #4

Open
lpatiny opened this issue Aug 28, 2024 · 0 comments
Open

Change code to submit data to this project #4

lpatiny opened this issue Aug 28, 2024 · 0 comments
Assignees

Comments

@lpatiny
Copy link
Member

lpatiny commented Aug 28, 2024

https://github.com/cheminfo/xps-epfl/blob/e3f450389b1dcdf75c767b9b6629de4a3e3853a3/data/qm9/createDB.mjs#L21-L23

We need an API that allows to add the data directly in the database.

The unicity is based on idCode and source. If it exists and there is a new post we should replace the existing data and all the corresponding hose codes.

idCode and coordinates are obtained using:

https://cheminfo.github.io/openchemlib-js/classes/Molecule.html#getIDCodeAndCoordinates

We need 2 fields in the molecule database:

  • idCode - unique code that allows to identify a molecule
  • coordinates - coordinates of the atoms allowing to draw the molecule the way to chemist likes to see it (or have 3D coordinates)
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

2 participants