[go: up one dir, main page]

Skip to content

Utility to parse PDB(Protein Data Bank) file format 3.3 into JSON format

License

Notifications You must be signed in to change notification settings

allbegray/pdb-parser-js

Repository files navigation

pdb-parser-js

Utility to parse PDB(Protein Data Bank) file format 3.3 into JSON format

Installation

Using npm:

$ npm i pdb-parser-js

Getting Started

import {PdbParser} from 'pdb-parser-js';

const file = fs.readFileSync('[pdb file path]', 'utf-8')

const parser = new PdbParser()
parser.collect(file.split('\n'))

const pdb = parser.parse()

License

MIT. See LICENSE file.