Comparing version 1.0.3 to 1.0.4
@@ -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 @@ |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
309698
8037
0
121