Command line interface to send requests to the VOGDB-API
Project description
VDirect
VDirect is a user friendly tool to retrieve information from the VOGDB-API. It is a utility that builds URLs and sends requests to the server.
Functionality includes searching for species, proteins and virus orthologous groups (VOGs) objects, as well as getting more detailed information about these objects.
Fetching Multiple Sequence Alignments (MSA) and Hidden Markov Matrices (HMM) is possible for each VOG, and Aminoacid and Nucleotide Sequences can be fetched for proteins.
Dependencies:
You can install the dependencies with
pip install argparse
pip install requests
Installation
vDirect can be installed with:
pip install vDirect
Using the VOGDB-API with vDirect
Below is the search hierarchy: first specify vsearch, vsummary or vfetch, then the subsequent parameters.
'-h' provides a list of the parameters that can be used for filtering.
vdirect <base_url> vsearch species species_search_parameters
protein protein_search_parameters
vog vog_search_parameters
vsummary species species_ids
protein protein_ids
vog vog_ids
vfetch protein faa protein_ids
fna protein_ids
vog hmm vog_ids
msa vog_ids
Examples
vdirect http://127.0.0.1:8000/ vsearch vog -pmax 10 -pmin 10
vdirect http://127.0.0.1:8000/ vsearch species -n corona
vdirect http://127.0.0.1:8000/ vsearch protein -n corona
vdirect http://127.0.0.1:8000/ vfetch protein faa -id 1034149.YP_009198699.1
You can get summaries from the IDs returned by a search by using the shell syntax:
vdirect http://127.0.0.1:8000/ vsummary vog -id $(vdirect -base http://127.0.0.1:8000/ vsearch vog -pmax 100 -pmin 100)
You can also set the base url as an environment variable with
base='http://127.0.0.1:8000/'
and then execute the command as
vdirect $base vsummary vog -id $(vdirect $base vsearch vog -pmax 100 -pmin 100)
Authors
Nikola Vinko*, Sigi Koizar*
*University of Vienna
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vDirect-0.0.7.tar.gz.
File metadata
- Download URL: vDirect-0.0.7.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79790013cf766c352950089e4d83b773e85b08534fd1f9172eeace42e2f492a0
|
|
| MD5 |
eac33b22a5a295ee8bbc0e223cc704ef
|
|
| BLAKE2b-256 |
9205adebf7cf8e3150df4562199f68607df3b2a7b2d08ea9db145d5b68a24e03
|
File details
Details for the file vDirect-0.0.7-py3-none-any.whl.
File metadata
- Download URL: vDirect-0.0.7-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72e88dda22e13851fe3bd0f71c7dc798ddac1d240aba9c00f8a2d36c6f01757d
|
|
| MD5 |
2f13b17797560fa2cbd183db9eafc95b
|
|
| BLAKE2b-256 |
5f02b53fabb8c401a1fd1a20207d0b5faf0ef80c1842e26e1e1645cd01ae487d
|