molecular-viz

作成者: nvidia

build_viewer.py、PubChem、OpenFold3 NIMを使用して薬物-タンパク質複合体を可視化します。分子構造、薬物標的、またはタンパク質の表示を求められたときに使用します…

npx skills add https://github.com/nvidia/dgx-spark-playbooks --skill molecular-viz

Molecular Visualization

Generate 3D protein-ligand visualizations using the build_viewer.py script. The script handles the full pipeline:

  1. Drug SMILES -- looked up automatically from PubChem
  2. Protein target -- resolved from a built-in drug-target table (or pass --sequence manually)
  3. Structure prediction -- protein + drug sent to OpenFold3 NIM for co-structure prediction
  4. 3D viewer -- self-contained HTML with jQuery + 3Dmol.js inlined, saved to canvas

Usage

Simplest form (target auto-resolved):

python /sandbox/clinical-intelligence/scripts/build_viewer.py --drug metformin

With explicit sequence (for drugs not in the built-in table):

python /sandbox/clinical-intelligence/scripts/build_viewer.py --drug drugname --sequence AMINOACIDSEQ --title "Custom Title"

Options

FlagRequiredDescription
--drugYesDrug name for PubChem SMILES lookup (e.g. metformin)
--sequenceNoAmino acid sequence of protein target. Auto-resolved if omitted.
--titleNoCustom viewer title
--outputNoCustom output path (defaults to ~/.openclaw/canvas/{drug}_complex.html)
--openfold-hostNoOverride OpenFold3 host IP (defaults to 172.17.0.1)

Built-in drug targets

The script knows these drugs and auto-resolves their protein targets:

DrugTarget protein
metforminInsulin B-chain
atorvastatinHMG-CoA reductase
rosuvastatinHMG-CoA reductase
lisinoprilACE
enalaprilACE
losartanAngiotensin II receptor type 1
amlodipineL-type calcium channel Cav1.2
empagliflozinSGLT2
semaglutideGLP-1 receptor

For any drug in this table, just pass --drug and the script does the rest.

Drugs NOT in the table

If the drug is not listed, the script exits with an error and prints the list of known drugs. In that case, you need to provide --sequence explicitly. Tell the user the drug is not in the built-in table and that you need a protein target sequence to proceed.

Drugs that cannot be visualized

Biologics, enzyme mixtures, or complex formulations that PubChem cannot resolve to a single SMILES (e.g. pancrelipase, insulin glargine) will still get protein-only structure prediction -- the script handles this gracefully by predicting without a ligand.

Output

The script saves an HTML viewer to canvas. Link it in your response as a markdown hyperlink:

[View 3D structure](http://localhost:18789/__openclaw__/canvas/metformin_complex.html)

Confidence Scores

The viewer header displays OpenFold3 scores:

  • Confidence -- overall prediction confidence (higher = better)
  • pLDDT -- per-residue local confidence (0-100, >70 is good)
  • pTM -- predicted template modeling score (0-1)
  • ipTM -- interface predicted TM-score (complexes only, measures protein-ligand interface quality)

nvidiaのその他のスキル

compileiq-debug
nvidia
何かがおかしいときに使用:Search()がハングする、すべての評価がINVALID_SCOREを返す、スコアが改善しない、すべての設定が同じ数値を返す、ptxasエラー…
create-github-pr
nvidia
gh CLIを使用してGitHubのプルリクエストを作成します。ユーザーが新しいPRを作成したい、コードをレビューに提出したい、またはプルリクエストを開きたい場合に使用します。トリガーキーワード -…
nemoclaw-maintainer-cross-issue-sweep
nvidia
他のオープンなIssueをスキャンし、特定のPRが修正する可能性があるものや、誤って壊す可能性があるものを見つけます。隣接修正の機会や矛盾リスクをfile:line…と共に出力します。
fhir-basics
nvidia
エージェントにFHIR R4 APIの動作方法、利用可能なリソース、検索パラメータを使ったクエリ方法、およびすべてのレスポンス形式を正しく解析する方法を教えます…
compileiq-validate-result
nvidia
検索が完了した後、かつスピードアップの申請やACFの発送の前に使用します。dump_results CSVを読み込み、トップK候補(単一目的)を抽出します…
changelog-audit
nvidia
リリース前にWarp CHANGELOG.mdを監査:失われたエントリを復元、ユーザー影響で並べ替え、エントリの文言を洗練、行折り返し、および(リリースブランチモードで)比較をバンプ…
maintain-dynamic-plugins
nvidia
NeMo Relayの動的プラグインローダー、マニフェスト、RustネイティブSDK、gRPCワーカープロトコル、PythonワーカーSDK、ドキュメント、テスト、およびリリースワークフローのカバレッジを維持する
dgx-diagnose
nvidia
一般的なDGX Station GB300の問題(CUDAクラッシュ、誤ったGPUターゲット、vLLM/SGLangコンテナのバグ、MIG状態の問題、NVLink/Fabric Managerエラーなど)を診断します。