Skip to main content

IRIDA StarAMR Results

IRIDA StarAMR Results program enables StarAMR analysis results that were run through IRIDA to be batch downloaded into a collection of spreadsheets using the command line.

Installation

Pypi Installation: https://pypi.org/project/irida-staramr-results/

pip install irida-staramr-results

Conda Installation: https://anaconda.org/bioconda/irida-staramr-results

conda install -c bioconda irida-staramr-results

How to use:

  • Assuming you have already installed the program, you can use irida-staramr-results command.

    Examples

    $ irida-staramr-results --help
    
    $ irida-staramr-results -u admin -pw password1 -c /path/to/conf.yml -p 1 -o out -fd 2021-01-02 -td 2021-04-31
    
  • There a few arguments it accepts:

    Arguments

    Required:

    Name Shortcut Type Example Description
    --project -p int 1 Project(s) to scan for StarAMR results.
    --config -c string /path/to/conf.yml Path to a configuration file. See configuration details here.

    Optional:

    Name Shortcut Type Example Description
    --help -h N/A N/A Show help message.
    --version -v N/A N/A The current version of irida-staramr-results.
    --split_results -sr N/A N/A Export each analysis results into separate output files resulting to one .xlsx file per analysis.
    --username -u string admin This is your IRIDA account username.
    --password -pw string password1 This is your IRIDA account password.
    --output -o string out The name of the output excel file.
    --from_date -fd string 2021-01-03 Download only results of the analysis that were created from this date.*
    --to_date -td string 2021-04-01 Download only results of the analysis that were created to this date.*

    Notes:

    • * Dates are formatted as YYYY-mm-dd (eg. 2021-04-08) and include hours from 00:00:00 to 23:59:59 of the inputted date.

Setup

Python

IRIDA StarAMR Results requires Python version 3.8 or later. Check the Python version you are using with:

$ python --version

Configuration for IRIDA REST API

  • You will need to have a client instance in IRIDA.

    • Only IRIDA administrators can create client instances. Users should contact their IRIDA admin for client credentials.
    • Refer to IRIDA client configuration guide for more details.
  • You will need to create your own configuration file in YAML. Here is an example.

    Fields:

Installing from source code

The following instructions describe how to install and execute IRIDA StarAMR Results from repository.

  1. Clone the repository:

    $ git clone https://github.com/phac-nml/irida-staramr-results.git
    
  2. Install and build the project

    $ cd irida-staramr-results
    $ make
    $ source .virtualenv/bin/activate
    
  3. Execute the program: See argument chart above for what these arguments means.

    $ irida-staramr-results -u <IRIDA_USERNAME> -pw <IRIDA_PASSWORD> -c <CONFIG_FILE_PATH> -p <PROJECT> -o <OUTPUT_FILE_NAME> -fd <FROM_DATE> -td <TO_DATE>
    

Running Tests

Unit test

  1. Running the unit tests can be done with the command:
    $ make unittests
    

Developer Notes

To display debug messages, change the logging level from logging.INFO to logging.DEBUG in cli.py. This will disable the progress bar and display the id of what is being requested.

Copyright Government of Canada 2021

Written by: National Microbiology Laboratory, Public Health Agency of Canada

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License at:

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Contact

Gary van Domselaar: gary.vandomselaar@phac-aspc.gc.ca

Metadata

Release files for irida-staramr-results 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for irida-staramr-results 0.3.1
File Size Uploaded Provenance Actions
irida-staramr-results-0.3.1.tar.gz 21.3 kB Without provenance Details for irida-staramr-results-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for irida-staramr-results 0.3.1
File Interpreter ABI Platform Actions
irida_staramr_results-0.3.1-py3-none-any.whl Python 3 none any Details for irida_staramr_results-0.3.1-py3-none-any.whl

Total release size: 51.0 kB

Release files / irida-staramr-results-0.3.1.tar.gz

Download URL irida-staramr-results-0.3.1.tar.gz
Size 21.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ef54d5a3ad7e6f9ed1e8623d4612a4a82ca1547882ba29420205a9086380550e
BLAKE2b-256 checksum
How to use checksums
4013f1bc6163f45edec286ec3ec9bbb1b29589d49e4ce432e50ec43a1ba90844
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.3

Release files / irida_staramr_results-0.3.1-py3-none-any.whl

Download URL irida_staramr_results-0.3.1-py3-none-any.whl
Size 29.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
61b4e2ae54433c40bd3470f8c48a6fd7bc60405f8a339f589db3600ccb4bb092
BLAKE2b-256 checksum
How to use checksums
c12fb5e0c8dd4da21caa4097d087d26083cc383138d883b1c375d1dc58bb6973
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.3

Security for irida-staramr-results 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page