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.2 to 1.0.3

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## [1.0.3](https://github.com/GMOD/bed-js/compare/v1.0.2...v1.0.3) (2019-04-02)
- Fix usage of autoSql
- Use commonjs2 target of the webpack library build
## [1.0.2](https://github.com/GMOD/bed-js/compare/v1.0.1...v1.0.2) (2019-04-02)

@@ -2,0 +9,0 @@

2

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

@@ -5,0 +5,0 @@ "main": "dist/main.js",

@@ -91,4 +91,5 @@ # bed-js

If you have a BED format with a custom alternative schema with autoSql, or if you are using a BigBed file that contains autoSql (e.g. with [@gmod/bbi](https://github.com/gmod/bbi-js) then you can get it from header.autoSql) then you can supply this via the constructor
If you have a BED format with a custom alternative schema with autoSql, or if you are using a BigBed file that contains autoSql (e.g. with [@gmod/bbi](https://github.com/gmod/bbi-js) then you can get it from header.autoSql)
```

@@ -100,9 +101,23 @@ const p = new BED({ autoSql: /* your autosql formatted string here */ })

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
* BED parsing does not do any conversion of types beyond string vs int but helps assign keys to values
* Parsing does not convert blockStarts/blockEnds to gene features
* It does not parse header or track lines
* Does not do any conversion of types beyond just converting known int/float values
* Does not convert blockStarts/blockEnds to gene features
* Does not parse header or track lines
* Does not handle files that use spaces instead of tabs even though this is allowed by UCSC

@@ -109,0 +124,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