Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

It is not possible to obtain an InChI Key from a molecule with the same options as in Python

Aperta
#449 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

@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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di rdkit/rdkit-js

Tutte le issue di rdkit/rdkit-js

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.