Registry / database / wikipathways-interactions

wikipathways-interactions

JSON →
library0.1.0jsnpmunverified

A static cache of biochemical pathway interactions extracted from WikiPathways, version 0.1.0. Provides a parsed set of interactions (e.g., gene/protein relationships) from pathway data without requiring live API calls. Suitable for genomics and bioinformatics applications where offline access to curated pathway interactions is needed. Released as an npm module; no active maintenance or release cadence documented.

npm install wikipathways-interactions
INSTALL
IMPORT
SIG · WIKIPATHWAYS-INTER
W
wikipathways-interactions
databasejavascriptv0.1.0
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.

default
import interactions from 'wikipathways-interactions'
const interactions = require('wikipathways-interactions')
ESM-only; CJS require will fail because package type is module.
interactions
import { interactions } from 'wikipathways-interactions'
import interactions from 'wikipathways-interactions'
Named export 'interactions' available as an alternative to default.
types
import { PathwayInteraction } from 'wikipathways-interactions'
import PathwayInteraction from 'wikipathways-interactions'
TypeScript types are exported but not as default; use named import.

Shows how to import the cached interactions data and access the first entry.

import interactions from 'wikipathways-interactions';
Debug
Known issues
gotchaPackage is ESM-only; CommonJS require will throw an error.
fix
Use import syntax or dynamic import() in Node v12+.
affects: >=0.1.0
deprecatedNo active maintenance; data may be outdated compared to live WikiPathways.
fix
Consider using live API or a maintained data source.
affects: >=0.1.0
gotchaExported data is a large JSON blob; importing may consume significant memory.
fix
Only import at top-level in Node; consider lazy loading.
affects: >=0.1.0
Errors
Common errors & fixes
SyntaxError: Cannot use import statement outside a module
The package uses ESM but project is set to CommonJS.
fix
Add "type": "module" to package.json or use .mjs extension.
Could not find a declaration file for module 'wikipathways-interactions'
TypeScript is not configured to resolve the package's types.
fix
Install @types/wikipathways-interactions if available, or add 'declare module' in .d.ts.
TypeError: interactions.default is not a function
Trying to call the import as a function; it is a plain object.
fix
Use interactions directly without parentheses; it is an object, not a function.
Upgrade
Version history
0.1.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
24
Meta
1
OpenAI (training)
1
Resources
wikipathways-interactions — npm install wikipathways-interactions · libregistry