Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
A Sequence Read Archive (SRA) download script and Ruby interface to the SRAdb (SRA metadata) SQLite database.
$ gem install bio-sra
Download a single run file to the current directory:
$ sra_download ERR229501
Download a list of runs
$ cat srr_list.txt
ERR229501
ERR229498
$ sra_download -f srr_list.txt
Download all runs that are a part of the experiment ERP001779 "Microbial biogeography of public restroom surfaces". This requires an SRAdb database (i.e. a database of the SRA metadata), which can be downloaded from
$ sra_download -d '/path/to/SRAmetadb.sqlite' ERP001779
The SRAdb SQLite file can be downloaded from these mirrors:
require 'bio-sra'
# Connect to the database
Bio::SRA::Connection.connect '/path/to/SRAmetadb.sqlite'
Once connected, the each row of the Bio::SRA::Tables::SRA table represents an SRA run:
Bio::SRA::Tables::SRA.first.run_accession
# => "DRR000001"
Bio::SRA::Tables::SRA.first.submission_accession
# => "DRA000001"
Bio::SRA::Tables::SRA.first.submission_date
# => "2009-06-20"
Bio::SRA::Tables::SRA.first.submission_comment
# => "Bacillus subtilis subsp. natto BEST195 draft sequence, the chromosome and plasmid pBEST195S"
There is a description of each available table on the wiki.
There are also methods for working with accession numbers, e.g.
Bio::SRA::Accession.classify_accession_type('ERP001779') #=> :study_accession
The API doc is online. For more code examples see the test files in the source tree.
Information on the source tree, documentation, examples, issues and how to contribute, see
http://github.com/wwood/bioruby-sra
This Ruby code is unpublished, but citing the SRAdb paper is probably good practice:
This Biogem is published at biogems.info
Copyright (c) 2012-2014 Ben J. Woodcroft. See LICENSE.txt for further details.
FAQs
Unknown package
We found that bio-sra 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.