Properties are not extracted from SDF files
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- javascript, wasm
Direzione di ricerca
Reproduce the supplied SDF with the RDKit.get_mol entry point, then inspect how get_prop_list and get_prop expose the tagged properties. Compare this behavior with the Chem.SDMolSupplier functionality mentioned in the issue; done means the two named properties are available through the JavaScript API or the requested supplier functionality is exposed.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the bug
I am trying to ingest an SDF file with RDKit JS and am running into an issue where the properties tagged on an SDF file are missing
To Reproduce
Consider the following code:
const molString = `
ww csweb09162414372D 0 0.00000 0.00000
9 9 0 0 0 0 0 0 0 0999 V2000
137.0000 319.8763 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
108.1690 305.9919 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
101.0483 274.7943 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
121.0000 249.7757 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
153.0000 249.7757 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
172.9517 274.7943 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
165.8310 305.9919 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
242.0000 338.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
280.0000 298.0000 0.0000 O 0 0 0 0 0 0 0 0 0 0 0 0
1 2 1 0 0 0 0
2 3 1 0 0 0 0
3 4 1 0 0 0 0
4 5 1 0 0 0 0
5 6 1 0 0 0 0
1 7 1 0 0 0 0
6 7 1 0 0 0 0
7 8 1 0 0 0 0
8 9 1 0 0 0 0
M END
> <some_property>
0
> <PUBCHEM_COMPONENT_COUNT>
1
$$$$
`
const mol = window.RDKit.get_mol("\n" + molSDF + "$$$$\n");
const keys: string[] = mol.get_prop_list();
const metadata = {};
for (var key in keys) {
console.log("mol." + key + " = " + mol.get_prop(key));
metadata[key] = mol.get_prop(key);
}
console.log(metadata);
Expected behavior
I would expect to see the properties "some_property" and "PUBCHEM_COMPONENT_COUNT", but instead these are missing.
Screenshots
Output of metadata in the example:
Version
This issue was noticed in RDKit version: 2024.03.5
Additional context
This is maybe medium priority for me, my current workaround is just to manually extract the properties outside of RDKit. It would be nice to update get_mol but it would also be even more useful to export functionality from Chem.SDMolSupplier as defined here: https://www.rdkit.org/docs/GettingStartedInPython.html#reading-sets-of-molecules
- Lingua principale
- SCSS
- Stelle
- 253
- Fork
- 47
- Merge medio
- 1m
- PR unite (30g)
- 3
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di rdkit/rdkit-js
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
-
Expose a method to generate a scaffold from SMILESForse di nuovo libera @winshaurya l’ha presa 278 giorni fa e non c’è nessuna pull request aperta. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
ACS1996 drawingAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
Tutte le issue di rdkit/rdkit-js
Issue simili
-
backend bug spec:REQ-053
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
nolte/kamerplanter#2547 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
awslabs/visual-asset-management-system#509 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
getsentry/sentry-conventions#732 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
status:in-linear status:team-assigned team:nodes
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
n8n-io/n8n#41548 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno