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

bionode-bwa

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bionode-bwa - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "bionode-bwa",
"description": "A Node.js wrapper for the Burrow-Wheeler Aligner (BWA).",
"version": "1.0.0",
"version": "1.0.1",
"homepage": "http://github.com/bionode/bionode-bwa",

@@ -6,0 +6,0 @@ "repository": {

@@ -18,14 +18,20 @@ var bwa = require('../')

var downloads = [
var asyncFuncs = [
download(referenceURL, referencePath),
download(readsURL, readsPath)
download(readsURL, readsPath),
alignReadsToRef1,
alignReadsToRef2
]
async.series(downloads, alignReadsToRef)
async.series(asyncFuncs)
function alignReadsToRef() {
function alignReadsToRef1(cb) {
var msg = "should take paths for reference, reads and aligment. Reference should be indexed first."
var mem = bwa() // default to mem
mem([referencePath, readsPath, alignmentPath])
.on('data', function(data) { checksum(data, '3dae171586e8f5fda2737795ff2e39df711701cb', msg, t) })
.on('data', function(data) {
checksum(data, '3dae171586e8f5fda2737795ff2e39df711701cb', msg, t)
cb()
})
}
function alignReadsToRef2(cb) {
var msg = "should align using a Stream that takes arrays of paths for reference and reads."

@@ -36,3 +42,6 @@ var mem = bwa('mem -x pacbio')

memStream.end()
memStream.on('data', function(data) { checksum(data, 'a2ac465ac0d9e0879a9f9a43108e36b682f2e018', msg, t) })
memStream.on('data', function(data) {
checksum(data, 'a2ac465ac0d9e0879a9f9a43108e36b682f2e018', msg, t)
cb()
})
}

@@ -39,0 +48,0 @@ })

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