Skip to main content

Client-server to handle Reindeer in query mode.

Project description

RDEER-SERVICE

rdeer-service is a tool to facilitate the use of Reindeer as socket mode. It also summarize its outputs.

It is a companion to Transipedia, a web application to query easily and fastly Reindeer.

Installation

Recommanded (pip)

python3 -m pip install rdeer-service

Other (git)

git clone https://github.com/Bio2M/rdeer-service.git

How to use?

Prerequisite

Reindeer must be installed and accessible by your PATH.

Start the server

the server must be in the same physical server than Reindeer, You can have multiple servers with Reindeer. Each of them must have the server.

rdeer-server /path/to/indexes
  • rdeer-server listen on port 12800, you can change this with --port option.
  • The server will only be able to handle indexes in the specified directory. If your indexes are spread over several directories, you may create symlinks in /path/to/indexes.
  • You can add, remove or change the name of the indexes, rdeer-server takes the changes on the fly.
  • It is recommanded to start rdeer-server as a daemon, using systemd, supervisord or whatever.

Use the client

The client could requests remote rdeer-server servers. You can enterely manage yours Reindeer indexes with subcommand:

  • list to show all indexes with their status
  • start <index-name> to start a index (the index name is the directory hosting the index files)
  • stop <index-name> to stop a index
  • check <index-name> to verify if index responding

show all indexes:

rdeer-client list

list all accessible indexes by rdeer-server, with status. Status are :

  • available the index is not running
  • loading the index is in a transitional mode until the running mode
  • running the index is started, and can be resquested.

Start an index:

rdeer-client start my-index

Will starts the my-index Reindeer index. When status is running, the index is ready to respond to requests.

Query an index

rdeer-client query my-index -q fasta-query

Requests the specified index, the query file is required and must be in a fasta format.

Options of query subcommand (rdeer-client query --help):

  • -q, --query to send a query file at the fasta format (required)
  • -n, --normalize to obtain normalized counts
  • -s, --server to request rdeer-server on remote host
  • -p, --port to resquest rdeer-server on a specified port (default: 12800)
  • -o, --outfile output is stdout by default, you can specified a file

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

rdeer-service-1.3.2.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

rdeer_service-1.3.2-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file rdeer-service-1.3.2.tar.gz.

File metadata

  • Download URL: rdeer-service-1.3.2.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/59.6.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.10

File hashes

Hashes for rdeer-service-1.3.2.tar.gz
Algorithm Hash digest
SHA256 0e6f1570357af84370756b5bb72c25c84741b86da0ea985436ecb8fd3fa1f7f8
MD5 d7107536c3cd5f25e0b144d2a7a8d2ee
BLAKE2b-256 c89afb4c279ad495f1efb1615d3a9a1ae9b5fbe0a7fd8b7d3c933d3ca3bed330

See more details on using hashes here.

Provenance

File details

Details for the file rdeer_service-1.3.2-py3-none-any.whl.

File metadata

  • Download URL: rdeer_service-1.3.2-py3-none-any.whl
  • Upload date:
  • Size: 24.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/59.6.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.10

File hashes

Hashes for rdeer_service-1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 255daaf83c021d98022242b211b100804fe2a711a8499c6d7273ff823f31b7b5
MD5 a0bf6a12a1d5cdafafa213a5a26ea9ea
BLAKE2b-256 5971502e5eb84119138f959b8d27e128f38f0acff46ccf69078028449402e321

See more details on using hashes here.

Provenance

Supported by

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