Registry / storage / ixn
library1.0.1jsnpmunverified

A lightweight package providing a cached dataset of biochemical pathway interactions from WikiPathways. Version 1.0.1 is the initial stable release. It offers a simple API for querying interaction data, including species, genes, and interactions. Key differentiators: no external database dependencies, pre-cached data for offline use, and minimal setup. Ideal for genomics and biochemistry applications requiring quick lookups without network latency.

npm install ixn
INSTALL
IMPORT
SIG · IXN
I
ixn
storagejavascriptv1.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

IxN
import IxN from 'ixn'
const IxN = require('ixn')
This is a default export; CJS require may not work depending on module system.
getInteractions
import { getInteractions } from 'ixn'
const { getInteractions } = require('ixn')
Named export; ensure bundler supports ESM.
InteractionsCache
import { InteractionsCache } from 'ixn'
import InteractionsCache from 'ixn'
Not a default export; used for advanced caching configuration.

Shows how to import the default IxN object and query interactions by gene symbol.

import IxN from 'ixn'; async function queryInteractions(gene) { const results = await IxN.getInteractions({ gene }); console.log(results); } queryInteractions('BRCA1');
Debug
Known issues
gotchaPackage uses ESM only; CommonJS require() may fail without transpilation.
fix
Use dynamic import() or configure a bundler to handle ESM.
affects: >=1.0.0
gotchaData is cached ahead of time; updates to WikiPathways require a new package version.
fix
Check for newer versions of the package periodically.
affects: >=1.0.0
gotchaQuery parameters may be case-sensitive (e.g., gene symbol uppercase).
fix
Normalize input to the expected casing (usually uppercase).
affects: >=1.0.0
Errors
Common errors & fixes
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'ixn'
Package not installed or import path wrong.
fix
Run npm install ixn and ensure import path is correct.
TypeError: IxN.getInteractions is not a function
Using wrong import style (default vs named).
fix
Use import IxN from 'ixn' or import { getInteractions } from 'ixn' as appropriate.
SyntaxError: Unexpected token 'export'
Node.js version <14 or CJS environment without transpilation.
fix
Upgrade Node.js to >=14 or use a bundler like Webpack/esbuild.
Upgrade
Version history
1.0.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
22
Resources
packageixn
ixn — npm install ixn · libregistry