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.
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:
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.
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-resultsConda Installation: https://anaconda.org/bioconda/irida-staramr-results
conda install -c bioconda irida-staramr-resultsHow to use:
Assuming you have already installed the program, you can use
irida-staramr-resultscommand.Examples
There a few arguments it accepts:
Arguments
Required:
--project-pint--config-cstringOptional:
--help-h--version-v--split_results-sr.xlsxfile per analysis.--username-ustring--password-pwstring--output-ostring--from_date-fdstring--to_date-tdstringNotes:
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:
Configuration for IRIDA REST API
You will need to have a client instance in IRIDA.
You will need to create your own configuration file in YAML. Here is an example.
Fields:
base-url: The server URL to download results from. If you navigate to your instance of IRIDA in your web browser, the URL (after you’ve logged in) will often look like: https://irida.corefacility.ca/irida/. The URL you should enter into the Server URL field is that URL, with api/ at the end. So in the case of https://irida.corefacility.ca/irida/, you should enter the URL https://irida.corefacility.ca/irida/api/client-id: The id from the IRIDA client you createdclient-secret: The id from the IRIDA client you createdInstalling from source code
The following instructions describe how to install and execute IRIDA StarAMR Results from repository.
Clone the repository:
Install and build the project
Execute the program: See argument chart above for what these arguments means.
Running Tests
Unit test
Developer Notes
To display debug messages, change the logging level from
logging.INFOtologging.DEBUGincli.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