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 statusstart <index-name>
to start a index (the index name is the directory hosting the index files)stop <index-name>
to stop a indexcheck <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 runningloading
the index is in a transitional mode until the running moderunning
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file rdeer-service-1.3.4.tar.gz
.
File metadata
- Download URL: rdeer-service-1.3.4.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36d40541127e82a855dab23693ac5d3c334966b9c77d6a225b2026d0ac66325b |
|
MD5 | 35f6010a9a78473f0a59d37e2d00f91e |
|
BLAKE2b-256 | 705f9e8fde581d7df47972f27d18b739b8ba74dd0adc88fdc6be0f9548afaccb |
Provenance
File details
Details for the file rdeer_service-1.3.4-py3-none-any.whl
.
File metadata
- Download URL: rdeer_service-1.3.4-py3-none-any.whl
- Upload date:
- Size: 25.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b8aa3bbc44f77d426fa887b1126e8563b87eb0180ab61bb3377cce68b148c39 |
|
MD5 | b772718d28142a4af97eb08b9afac760 |
|
BLAKE2b-256 | 61eb04b431e12ece9084e65aa710c7a1feb96437b6d4c4991581ca55b589a35f |