# lga

> local-global alignment algorithm

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

## Install

```sh
npm install lga
pnpm add lga
yarn add lga
bun add lga
```

## 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-31 |
| First published | 2014-05-31 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | ttrfstud |

## Links

- npm: https://www.npmjs.com/package/lga
- npm.io page: https://npm.io/package/lga

## Dependencies (2)

- [gdt](https://npm.io/package/gdt.md) 0.0.3
- [longest-cont-segment](https://npm.io/package/longest-cont-segment.md) 0.0.0

## Recent versions

- 0.0.0 (latest) — 2014-05-31

## README

lga
=====
attempt to code local-global alignment as described [here](http://nar.oxfordjournals.org/content/31/13/3370.full.pdf+html) and [here](http://predictioncenter.org/casp/casp7/public/doc/LCS_GDT.README). lga scoring function is implemented explicitly as described in the first source. lcs cutoffs for the implementation are 1A, 2A, 5A. gdt cutoffs are 0.5A to 10A inclusively, with step equal to 0.5A. this module exposes single function, with signature _(protein1, protein2, w)_, where:

 * _protein1_ and _protein2_ are arrays of protein coordinates, in format:

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

 * _w_ is weight. processed lcs and gdt scores need to be multiplied by _(1 - w)_ and _w_, respectively. 

the output of this program is sole floating-point number - lga score.

please check your arguments before using it!

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