
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
blastinutils-ts
Advanced tools
Super simple helper library to BLAST software from NCBI
npm install blastinutils-ts
blastp
makeblastdb
This is super simple, just build the parameters following the interfaces and ask to build the command.
import { CommandToolKit, interfaces } from 'blastinutils-ts'
const params: IBlastPParameters = {
db: 'mydb',
evalue: 1,
num_threads: 4,
out: 'myoutputFile.dat',
outfmt: {
format: 6,
parameters: [
'qseqid',
'sseqid',
'bitscore',
'pident',
'evalue',
'length',
]
},
query: 'myquery'
}
const program: interfaces.supportedProgramsType = 'blastp'
const command = commandTk.build(program, params)
console.log(command)
// blastp -db mydb -evalue 1 -num_threads 4 -out myoutputFile.dat -outfmt "6 qseqid sseqid bitscore pident evalue length" -query myquery
This is an experimental parser of BLAST results in output format 6. Because these tend to be long, we implemented as a write stream. After reading the stream, the class has a method: getData() which returns an object { nodes: [ ... ], links: [ ... ] } with the data.
import { NodesAndLinksStream } from 'blastinutils-ts'
const params = {
format: 6,
parameters: [
'qseqid',
'sseqid',
'bitscore',
'pident',
'evalue',
'length',
]
}
const nodesNlinks = new NodesAndLinksStream.ParseBlastResults(params)
const blastResultsStream = fs.createReadStream('tabularBlastResults.fmt6.tab')
blastResultsStream
.pipe(nodesNlinks)
.on('finish',() => {
const data = nodesNlinks.getData()
/* data.nodes = [
'seq1',
'seq2',
...
]
// data.links = [
{
s: 0, // index of source in data.nodes
t: 1, // index of target in data.nodes
e: 20
},
{
s: 0,
t: 2,
e: 10
}
]
*/
})
...to be continued.
Written with ❤ in Typescript.
FAQs
Super simple helper library to BLAST software from NCBI
We found that blastinutils-ts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.