Microsoft Genomics Command-line Client
Project description
Installation
msgen is compatible with Python 2.7. We recommend using version 2.7.12 or later. msgen can be installed from PyPI.
Linux
sudo apt-get install -y build-essential libssl-dev libffi-dev libpython-dev python-dev python-pip sudo pip install --upgrade --no-deps msgen sudo pip install msgen
Windows
pip install --upgrade --no-deps msgen pip install msgen
If you do not want to install msgen as a system-wide binary and modify system-wide python packages, use the --user flag with pip. In that case you will need to add ~/.local/bin to your path in Linux and %APPDATA%\Python in Windows.
Basic requirements
You can install these packages using pip, easy_install or through standard setup.py procedures. These dependencies will be automatically installed if using a package-based installation or setup.py. The required versions of these dependent packages can be found in setup.py.
Basic usage
After installing msgen, a simple command to check connectivity is:
REM Windows console
msgen list ^
--api-url-base <Genomics API URL> ^
--access-key <Genomics account access key>
# Unix console
msgen list \
--api-url-base <Genomics API URL> \
--access-key <Genomics account access key>
Values for both these arguments can be found in Azure Portal, on the Access keys blade of your Genomics account.
You can get a full list of available commands and arguments by running msgen help, but generally you will need to provide at least a command, --api-url-base, and --access-key, where the command is one of the following:
list |
Returns a list of jobs you have submitted. For arguments, see msgen help list. |
submit |
Submits a workflow request to the service. For arguments, see msgen help submit. |
status |
Returns the status of the workflow specified by --workflow-id. See also msgen help status. |
cancel |
Sends a request to cancel processing of the workflow specified by --workflow-id. See also msgen help cancel. |
Release notes v0.9.1
No breaking changes since v0.9.0.
Release notes v0.9.0
No breaking changes since v0.8.x.
This is equivalent to running -bgzip followed by -tabix on the vcf or gvcf output, to produce “.gz” (bgzip output) and “.tbi” (tabix output) files. bgzip compresses the vcf or gvcf file, and tabix creates an index for the compressed file. The argument is a boolean, which is set to false by default for “.vcf” output, and to true by default for “.g.vcf” output. To use on the command line, specify -bz or --bgzip-output as true (run bgzip and tabix) or false. To use this argument in the config file, add bgzip_output: true or bgzip_output: false to the file.
Release notes v0.8.0
No breaking changes since v0.7.4.
This is equivalent to -emitRefConfidence in GATK 3.x and -emit-ref-confidence in GATK 4.x. To use on the command line, specify -erc or --emit-ref-confidence. The argument accepts a value of “none” which produces “.vcf” output, or “gvcf” which produces “.g.vcf” output. By default, the value is not set, which produces “.vcf” output. To use this argument in the config file to produce “g.vcf” output, add emit_ref_confidence: gvcf to the file.
Release notes v0.7.4
Submitting multiple FASTQ or multiple BAM files.
Filtering options for the list command.
Range limiting options for the list command.
Export to CSV of the list command output.
Bug fixes!
This version of msgen also introduces user interface changes compared to version 0.6.*. If you would like to keep using an older version, you can downgrade back to 0.6.15 by running the following command:
pip install msgen==0.6.15
Breaking changes since 0.6.15
Specifying commands
Previously, the operation you wanted to invoke was a parameter to the -command option. Now, the desired command directly follows the program name, msgen. Below is a table comparing invocations of msgen 0.6.* and 0.7.* for cases when a configuration file is not used.
msgen 0.6.* (without config) |
msgen 0.7.* (without config) |
---|---|
msgen -command submit … |
msgen submit … |
msgen -command list … |
msgen list … |
msgen -command getstatus … |
msgen status … |
msgen -command cancel … |
msgen cancel … |
Commands cannot be specified in the configuration file anymore and will be ignored if mentioned there. Below is a table comparing invocations between msgen 0.6.* and 0.7.* for cases when a configuration file is used.
Command in the config file |
msgen 0.6.* (with command in config) |
msgen 0.7.* (with config) |
---|---|---|
command: submit |
msgen -f config.txt … |
msgen submit -f config.txt … |
command: list |
msgen -f config.txt … |
msgen list -f config.txt … |
command: getstatus |
msgen -f config.txt … |
msgen status -f config.txt … |
command: cancel |
msgen -f config.txt … |
msgen cancel -f config.txt … |
Specifying other arguments
If you provide at least some required information via the command line arguments when interacting with the Microsoft Genomics service, you will need to update your command invocation. All arguments are now provided either in the short format like -k or in the long format like --access-key. Note that arguments in the long format start with a double dash and that underscores between words are replaced with dashes. Below is a table listing some of the submit arguments to illustrate this difference between msgen 0.6.* and 0.7.*.
msgen 0.6.* |
msgen 0.7.* |
---|---|
-api_url_base |
-u/--api-url-base |
-subscription_key |
-k/--access-key |
-input_storage_account_name |
-ia/--input-storage-account-name |
-input_storage_account_key |
-ik/--input-storage-account-key |
-input_storage_account_container |
-ic/--input-storage-account-container |
-input_blob_name_1 |
-b1/--input-blob-name-1 |
-input_blob_name_2 |
-b2/--input-blob-name-1 |
-output_storage_account_name |
-oa/--output-storage-account-name |
-output_storage_account_key |
-ok/--output-storage-account-key |
-output_storage_account_container |
-oc/--output-storage-account-container |
-process_args |
-pa/--process-args |
There are no changes here, apart from the fact that the command is going to be ignored and will need to be provided on the command line. Your old configuration file can be re-used for all commands you want to use it with.
Contributing
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct: https://opensource.microsoft.com/codeofconduct/. For more information see the Code of Conduct FAQ https://opensource.microsoft.com/codeofconduct/faq/ or contact opencode@microsoft.com with any additional questions or comments.
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 msgen-0.9.1.tar.gz
.
File metadata
- Download URL: msgen-0.9.1.tar.gz
- Upload date:
- Size: 26.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/2.7.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6d65e12afd8ffd74beb264d4119339b9a853243e2e662b6f1aa37eff67b0545 |
|
MD5 | 4fe2cedc4a45cb83ab6fb419f851ae84 |
|
BLAKE2b-256 | 4f47d9d73aa94309b7153ed34a7e1280894ba44141f52cc14144f0786ecaed4d |
File details
Details for the file msgen-0.9.1-py2-none-any.whl
.
File metadata
- Download URL: msgen-0.9.1-py2-none-any.whl
- Upload date:
- Size: 27.7 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/2.7.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06c1c38da4b5bb8556ee6393d6a060eaf2cce3ea70d96fae5593fd7c720f2f00 |
|
MD5 | 7a988bdbea0e0e38c15b15d25c27a6dd |
|
BLAKE2b-256 | 30d35acc4c41cbca557f4b280c4404789679afcedb1c31259912a246db86a818 |