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

bionode-bwa

Package Overview
Dependencies
Maintainers
1
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 0.0.5 to 0.0.6

bwa/.npmignore

26

cli.js

@@ -16,4 +16,24 @@ #!/usr/bin/env node

var operation = bwa(operationArgs)
operation(filenames)
.on('data', console.log)
.on('error', console.log)
if (!process.stdin.isTTY) {
process.stdin.on('data', function(data) {
var data = data.trim().replace(/['"]/g, '')
if (data === '') { return }
filenames.push(data)
operation(filenames).pipe(JSONstringify()).pipe(process.stdout)
})
}
else {
operation(filenames).pipe(JSONstringify()).pipe(process.stdout)
}
function JSONstringify() {
var stream = through.obj(transform)
return stream
function transform(obj, enc, next) {
var data = JSON.stringify(obj).trim()
if (data === '') { return next() }
this.push(data + '\n')
next()
}
}

2

lib/bionode-bwa.js

@@ -117,3 +117,3 @@ // # bionode-bwa

var filenameLC = filename.toLowerCase()
if (filenameLC.match(/\.(fasta|fa$|fa.gz$)/)) { reference = filename }
if (filenameLC.match(/\.(fasta|fa$|fa.gz$|fna$|fna.gz$)/)) { reference = filename }
else if (filenameLC.match(/\.(fastq|fq$|fq.gz$)/)) { sequences.push(filename) }

@@ -120,0 +120,0 @@ else if (filenameLC.match(/\.(sam)/)) { sam = filename }

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

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

Sorry, the diff of this file is not supported yet

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