g3djs

2.0.1 • Public • Published

g3djs

Javascript API for reading .g3d genomic 3D structure files.

Installation

Requires Node.

npm install g3djs

Examples

import G3dFile from "g3djs";
 
const url = "https://target.wustl.edu/dli/tmp/test2.g3d";
const file = new G3dFile({ url });
// get metadata
// metadata contains information about genome assembly, dataset name, resolutions etc.
file.readHeader().then(() => console.log(file.meta));
 
// get 3D data from a specific resolution, 200k here for example
file.readData(200000).then((data) => console.log(data));

You can run npm run test see the stucture of the returned data.

Readme

Keywords

Package Sidebar

Install

npm i g3djs

Weekly Downloads

11

Version

2.0.1

License

MIT

Unpacked Size

18.9 kB

Total Files

16

Last publish

Collaborators

  • lidaof