Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gmod/bed

Package Overview
Dependencies
Maintainers
5
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gmod/bed - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

6

CHANGELOG.md

@@ -0,1 +1,7 @@

## [1.0.4](https://github.com/GMOD/bed-js/compare/v1.0.3...v1.0.4) (2019-04-14)
- Changed parseBedText to accept an Options argument with offset and optionally a uniqueId
## [1.0.3](https://github.com/GMOD/bed-js/compare/v1.0.2...v1.0.3) (2019-04-02)

@@ -2,0 +8,0 @@

4

package.json
{
"name": "@gmod/bed",
"version": "1.0.3",
"version": "1.0.4",
"description": "A BED file format parser with autoSql support",

@@ -38,2 +38,3 @@ "main": "dist/main.js",

"@babel/plugin-proposal-class-properties": "^7.4.0",
"@babel/plugin-proposal-throw-expressions": "^7.2.0",
"@babel/plugin-transform-runtime": "^7.2.0",

@@ -43,3 +44,2 @@ "@babel/preset-env": "^7.3.1",

"babel-eslint": "^10.0.1",
"babel-jest": "^24.1.0",
"babel-loader": "^8.0.5",

@@ -46,0 +46,0 @@ "documentation": "^9.1.1",

@@ -25,2 +25,7 @@ # bed-js

```js
const p = new BED()
const feature = p.parseLine('chr1\t0\t100')
```
The default schema is the same 12 fields as UCSC

@@ -99,18 +104,3 @@

Your autosql will be validated against a grammar for autoSql and used in subsequent parseLine calls
If you want to use BigBed, you can get it's autoSql and use it in the BED parser
```js
import {BigBed} from @gmod/bbi
const ti = new BigBed({ path: 'yourfile.bb' }) // note: use url for remote resource, or filehandle for custom resource
const {autoSql} = await ti.getHeader()
const parser = new BED({ autoSql })
const lines = await ti.getFeatures('chr1', 0, 10000)
const feats = lines.map(l => parser.parseBedText(l.refID, l.start, l.end, l.rest))
```
### Important notes

@@ -117,0 +107,0 @@

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc