It is not possible to obtain an InChI Key from a molecule with the same options as in Python
@ptosco がすでに取り組んでいます。
2024年3月12日 から。
評価
この issue はまだ評価されていません。
説明
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
- 主要言語
- SCSS
- スター
- 253
- フォーク
- 47
- 平均マージ
- 1分
- マージ済み PR(30日)
- 3
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rdkit/rdkit-js のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
-
Expose a method to generate a scaffold from SMILES再び着手できるかも @winshaurya が 282 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100