Coder Social home page Coder Social logo

ebisearch's Introduction

EBISearch

https://travis-ci.org/bebatut/ebisearch.svg?branch=master

EBISearch is a Python library for interacting with EBI Search's API.

Usage

EBISearch is easy to use

$ ebisearch --help
Usage: ebisearch [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  get_domains        Get domains
  get_entries        Get entry content
  get_fields         Get retrievable fields
  get_query_results  Get results for a query

$ get_entries --help
Usage: ebisearch get_entries [OPTIONS]

  Return content of entries on a specific domain in EBI

Options:
  --domain TEXT    Domain id in EBI (accessible with get_domains)
  --entry_id TEXT  (Multiple) Entry identifier to retrieve
  --field TEXT     (Multiple) Field to export (accessible with get_fields with
                   retrieva    ble as type
  --field_url      Include the field links
  --view_url       Include other view links
  --file PATH      (Optional) File to export the entry content
  --help           Show this message and exit.

It can also be used as a Python library:

>>> import ebisearch
>>> ebisearch.get_entries(
        domain="metagenomics_runs",
        entryids="ERR1135279,SRR2135754",
        fields="id,experiment_type")
[{'fields': {'experiment_type': ['metagenomic'], 'id': ['ERR1135279']}, 'source': 'metagenomics_runs', 'id': 'ERR1135279'}, {'fields': {'experiment_type': ['metagenomic'], 'id': ['SRR2135754']}, 'source': 'metagenomics_runs', 'id': 'SRR2135754'}]
>>> ebisearch.get_number_of_results(
        domain="metagenomics_runs",
        query="experiment_type:(metagenomic)")
13227

Installation

To install EBISearch, simply:

$ pip install ebisearch

or

$ conda install ebisearch

Tests

EBISearch comes with tests:

$ make test

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.