# ophion

> a schema and api for graph queries and operations

Latest version **0.0.28** (published 2017-07-23) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.28 |
| Published | 2017-07-23 |
| First published | 2017-02-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 5 |
| Maintainers | bpwalsh, spanglry |

## Links

- npm: https://www.npmjs.com/package/ophion
- Repository: https://github.com/bmeg/ophion
- Homepage: https://github.com/bmeg/ophion#readme
- Issues: https://github.com/bmeg/ophion/issues
- npm.io page: https://npm.io/package/ophion

## Dependencies (3)

- [underscore](https://npm.io/package/underscore.md) 1.8.3
- [es6-promise](https://npm.io/package/es6-promise.md) ^4.1.0
- [isomorphic-fetch](https://npm.io/package/isomorphic-fetch.md) ^2.2.1

## Recent versions

- 0.0.28 (latest) — 2017-07-23
- 0.0.27 — 2017-07-23
- 0.0.26 — 2017-07-23
- 0.0.25 — 2017-07-23
- 0.0.24 — 2017-06-14
- 0.0.23 — 2017-06-08
- 0.0.22 — 2017-06-05
- 0.0.21 — 2017-05-25
- 0.0.20 — 2017-05-19
- 0.0.19 — 2017-05-19
- 0.0.18 — 2017-05-19
- 0.0.17 — 2017-05-19
- 0.0.16 — 2017-05-19
- 0.0.15 — 2017-05-19
- 0.0.14 — 2017-05-19
- … 11 more at https://npm.io/package/ophion/versions

## README

## About

A js client for making [Ophion](https://github.com/bmeg/ophion) queries.


## Install

```
npm install -s ophion
```


## Usage

### Ophion


A test program

```
#!/usr/bin/env node
'use strict';
var Ophion = require('ophion').Ophion;
var O = Ophion('http://bmeg.compbio.ohsu.edu');
O.query().limit(1).execute(function(rsp){console.log(rsp)});
```

Should print

```
[ { label: 'Variant',
    gid: 'variant:5:70936890:70936890:A:A,G',
    properties:
     { id: 'variant:5:70936890:70936890:A:A,G',
       start: '70936890',
       end: '70936890',
       referenceName: '5',
       alternateBases: 'A,G',
       referenceBases: 'A',
       'info.center': '["SOMATICSNIPER","RADIA","MUTECT","MUSE","VARSCANS"]' } } ]
```       



### Callsync

A test program

```
var callsync = require('ophion').Callsync;
var series = callsync({
  yellow: function(value, callback) {
    return callback(value['initial'] + 5)
  },

  green: function(value, callback) {
    return callback(value['yellow'] / 13)
  }
});

console.log(series(['yellow', 'green'], {initial: 21}));
```

Should print

```
{ initial: 21, yellow: 26, green: 2, outcome: 2 }
```



For more, [see here.](https://github.com/bmeg/ophion/blob/master/client/python/README.md)




## Contribute

```
# cd to this directory
npm publish

# visit https://www.npmjs.com/package/ophion
```

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