phac-nml / irida-staramr-results

Enables StarAMR analysis results that were run through IRIDA to be downloaded into a spreadsheet using the command line.
Apache License 2.0
3 stars 1 forks source link

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:

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

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.

Legal

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