Giter Club home page Giter Club logo

datasets's Introduction

NCBI Datasets

NCBI Datasets is a new resource that lets you easily gather data from across NCBI databases.

Find and download sequence, annotation, and metadata for genes and genomes using our command-line tools or web interface.

NCBI Datasets tools are under active development. Submit feedback by creating a GitHub issue or you may contact NCBI directly with your questions, comments or feature requests.

Install the Datasets command-line tools

Anaconda-Server Badge

Download and install the NCBI Datasets command-line tools, datasets and dataformat:

conda install -c conda-forge ncbi-datasets-cli

For other ways to install, see our command-line tool quickstart.

Use the Datasets command-line tools

Use datasets to download biological sequence data across all domains of life from NCBI.

Use dataformat to convert metadata included as part of the data package from JSON Lines format to other formats.

Examples:

Use datasets to download a genome data package for the human reference genome, GRCh38:

datasets download genome taxon human --reference --filename human-reference.zip

Use dataformat to extract selected fields of metadata from the downloaded data package for the human reference genome, GRCh38:

dataformat tsv genome --package human-reference.zip --fields organism-name,assminfo-name,assminfo-accession,assminfo-submitter
Organism name	Assembly Name	Assembly Accession	Assembly Submitter
Homo sapiens	GRCh38.p14	GCF_000001405.40	Genome Reference Consortium

The schematic below outlines the available commands for the datasets command-line tool: Datasets CLI schematic

Download large numbers of genomes

Download large numbers of genomes by first downloading a dehydrated zip archive and then getting the data in three steps.

  1. Download the dehydrated zip archive
  2. Unzip the downloaded zip archive
  3. Rehydrate to get the data

Try this example for the human reference genome:

  1. Download the dehydrated zip archive datasets download genome accession GCF_000001405.40 --dehydrated --filename human_GRCh38_dataset.zip

  2. Unzip the downloaded zip archive unzip human_GRCh38_dataset.zip -d my_human_dataset

  3. Rehydrate to get the data datasets rehydrate --directory my_human_dataset/

For more information, see how to download large genome data packages.

Datasets data packages

NCBI Datasets provides sequence, annotation, metadata and other biological data as an NCBI Datasets Data Package zip archive.

We currently offer three types of data package: a gene data package, a genome data package, and a specialized SARS-CoV-2 data package.

Datasets data reports

NCBI Datasets data packages include data report files that contain metadata about the requested records. Data report schemas describe each type of data report, including the available fields, with descriptions and examples.

Jupyter notebooks

Jupyter notebooks provide a way to explore our command-line tool, python package and API.

Python library

Programmers may be interested in trying the NCBI Datasets python library to interact with the NCBI Datasets REST API. Note that we are offering limited support for the python package at this time.

NOTE: We recommend avoiding the use of this package in an environment also containing the following packages:

google-cloud-bigquery
pandas-gbq

We have observed some dependency issues with these packages such that some environments may fail to interact properly with python BigQuery API endpoints.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.