Skip to main content

Download genome files from NCBI by accession.

Project description

NCBI accession download script

A partner script to the popular ncbi-genome-download script, ncbi-acc-download allows you to download sequences from GenBank/RefSeq by accession through the NCBI ENTREZ API.

Installation

pip install ncbi-acc-download

Alternatively, clone this repository from GitHub, then run (in a python virtual environment)

pip install .

If this fails on older versions of Python, try updating your pip tool first:

pip install --upgrade pip

and then rerun the ncbi-acc-download install.

ncbi-acc-download is only developed and tested on Python releases still under active support by the Python project. At the moment, this means versions 2.7, 3.4, 3.5, 3.6 and 3.7. Specifically, no attempt at testing under Python versions older than 2.7 or 3.4 is being made.

If your system is stuck on an older version of Python, consider using a tool like Homebrew or Linuxbrew to obtain a more up-to-date version.

Usage

To download a nucleotide record AB_12345 in GenBank format, run

ncbi-acc-download AB_12345

To download a nucleotide record AB_12345 in FASTA format, run

ncbi-acc-download --format fasta AB_12345

To download a protein record WP_12345 in FASTA format, run

ncbi-acc-download --molecule protein WP_12345

To get an overview of all options, run

ncbi-acc-download --help

License

All code is available under the Apache License version 2, see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ncbi-acc-download-0.1.1.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

ncbi_acc_download-0.1.1-py2.py3-none-any.whl (6.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file ncbi-acc-download-0.1.1.tar.gz.

File metadata

  • Download URL: ncbi-acc-download-0.1.1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5

File hashes

Hashes for ncbi-acc-download-0.1.1.tar.gz
Algorithm Hash digest
SHA256 68f36087cfe218f0918337d1f96bf0e4520a96aa4221a91eedb610ec03ca2756
MD5 4d257e17307c01dab04ae6f6f3c0aaf7
BLAKE2b-256 ddacf908a58b3a7dff6a20d8be826e7d524e4545d8088b1db99ca03535c4f3d5

See more details on using hashes here.

File details

Details for the file ncbi_acc_download-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: ncbi_acc_download-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5

File hashes

Hashes for ncbi_acc_download-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 90763fe9e138842e826571f11afc018c20b86b3354d9a205a561d77c848d8847
MD5 110a596f6bee734620058d10409e9aa2
BLAKE2b-256 ea8418a874ffb38041c172d33754d305ad8dcc6700a4c5e5a49cdcd1b16fbbf5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page