# longest-cont-segment

> longest continuous segment algorithm

Latest version **0.0.0** (published 2014-05-08) · 0 weekly downloads

## Install

```sh
npm install longest-cont-segment
pnpm add longest-cont-segment
yarn add longest-cont-segment
bun add longest-cont-segment
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.0 |
| Published | 2014-05-08 |
| First published | 2014-05-08 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | ttrfstud |

## Links

- npm: https://www.npmjs.com/package/longest-cont-segment
- npm.io page: https://npm.io/package/longest-cont-segment

## Recent versions

- 0.0.0 (latest) — 2014-05-08

## README

longest continuous segment algorithm
====================================
an attempt to code lcs as described [here](http://predictioncenter.org/casp/casp7/public/doc/LCS_GDT.README). the signature of the only exported method is _(protein1, protein2, cut)_, where:

  * proteinN, N in [1,2], is an array of protein CA atoms positions:

  ```
  [
    [x1, y1, z1],
    [x2, y1, z2],
    ...
  ]
  ```

  * cut is angstrom rmsd cut for lcs run

return value has the following format:

```javascript
{
  subs: [ { tgt: [], exp: [] }],
  stats: []
}
```

where subs is an array of all matched segments in the second protein (model, tgt) and the first protein (exp). tgt and exp arrays in each record are zero-based references to residues in second and first proteins, respectively. stats is an array indexed by zero-based residue indices of first protein, where the value at *i* is the length of the longest segment in second protein where i-th residue of the first protein, while being matched - probably along with other residues, had the longest match.

---
_Source: https://npm.io/package/longest-cont-segment · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
