It is not possible to obtain an InChI Key from a molecule with the same options as in Python
@ptosco ci sta già lavorando.
Dal 12/3/2024.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Is your feature request related to a problem? Please describe.
It seems that it is not possible to obtain an InChI Key from a molecule with the same options as in Python.
Describe the solution you'd like
In python I can pass options in MolToInchiKey
from rdkit.Chem import MolToInchiKey, SmilesParserParams, MolFromSmiles
params = SmilesParserParams()
params.removeHs = True
mol = MolFromSmiles(smiles, params)
inchi_key = MolToInchiKey(mol, options="-FixedH")
In javascript not.
import initRDKitModule, { JSMol, RDKitModule } from "@rdkit/rdkit";
export const rdkit: RDKitModule = await initRDKitModule();
const mol = rdkit.get_mol(smiles, JSON.stringify({ removeHs: true }));
const inchiKey = rdkit.get_inchikey_for_inchi(mol.get_inchi());
Describe alternatives you've considered
I want to pass the same options
- Lingua principale
- SCSS
- Stelle
- 248
- Fork
- 47
- Merge medio
- 4m
- PR unite (30g)
- 4
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
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
-
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
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100