bionode-bwa
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"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 @@ }) |
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
1163864
1697