2.0.1 • Published 4 years ago

g3djs v2.0.1

Weekly downloads
12
License
MIT
Repository
github
Last release
4 years ago

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.

2.0.1

4 years ago

2.0.0

4 years ago

1.5.0

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago