0.1.51 • Published 8 years ago

pssh-parser v0.1.51

Weekly downloads
4
License
GPL-3.0
Repository
github
Last release
8 years ago

pssh-parser

A simple JS pssh parser


How to use

Require this package via npm, download pssh.js or pssh.min.js, then:

const psshParser = require('pssh-parser');

IMPORTANT: This package uses Destructuring assignments. These are supported out of the box only starting with Node V6. You can check compatibility through this table.

After that you can use the following functions:

Parse PSSH text file entry.

const fs = require('fs');

fs.readFile(psshFile.path, 'utf8', function (error, data) {
  var entries = psshParser.parsePSSH2file(data);
}

The entries variable will be an array of the form:

[
 {
    protein_sequence_hash: "abcdef123",
    PDB_chain_hash: "abcdef123",
    Repeat_domains: "1",
    E_value: "1E2",
    Identity_Score: "0.2",
    Match_length: "123",
    Alignment: "1:30"
  }, ...
]
0.1.51

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago