Administrator User Guide

This guide shows how to use the administrative features of the IRIDA web interface.

Accessing the Administrative Panel

The administrative features of IRIDA are accessed within the administrative panel.

To navigate to the administrative panel, click the button on the top right of the navbar. The button is only present if you have the Administrator system role.

Admin panel navbar button.

Administrative Panel Overview

The administrative panel contains a side menu with a menu option for each administrative feature.

The panel has a top navbar with a “Return” button to return to the main application plus a “Profile” dropdown menu for viewing the current user’s account and logging out.

Admin panel.

Viewing Statistics

When the Administrative Panel is accessed you will be taken to the landing page which is the Statistics Page.

Admin panel statistics link.

This page displays usage statistics for the number of analyses ran, projects created, samples created, users created, and users logged in within the default time period which is set to 7 days.

Clicking on a graph will take you to the full details of the graph. There you can set different time periods to explore the data and select different chart types.

Admin panel statistics link.

Managing User Accounts

Only one account is created for a new instance of IRIDA by default: the administrator account.

This section of the guide describes how to create, modify, and remove local user accounts from IRIDA.

Creating a New User Account

First navigate to the users page via the admin panel side menu:

Users side menu link.

Then click the “Add User” button:

Add user button.

Fill in the user details fields. All fields are required for a user account in IRIDA:

User details form.

By default, a user will be issued a randomly-generated, one-time-use key to activate their account. The first time the user logs in, they will be required to change their password. You may manually enter a user password by unchecking “Send Activation Email”:

Manual password entry.

Passwords must meet the following requirements:

If you manually set a password for a new user account, the user will not be required to change their password on first log in.

When you click “Create User”, an e-mail will be sent to the user (to the e-mail address you entered) including the URL for IRIDA (as configured in the Administrator Install Guide). If you did not manually set a password for the user, the e-mail will include a link to activate the user account:

User welcome e-mail.

On successfully creating a new user account, you will be redirected back to the admin users table and see a successful notification pop-up:

User details page.

Note: Only announcements created within the last month will be shown to new users.

Updating an Existing User Account

Start from the users list, by clicking on the “Users List” side menu link:

Users side menu link.

The users list shows all users currently registered in the system:

Users list.

You can view the details of an existing user account by clicking on the username of the account your’re interested in:

User details page.

When editing a user account, remember to click the “Update User” button of the bottom of the form to save the changes.

Resetting a Password

Start from the users list, by clicking on the “Users List” side menu link:

Users side menu link.

The users list shows all users currently registered in the system:

Users list.

You can view the details of an existing user account by clicking on the username of the account your’re interested in:

User details page.

To reset the password for a user account, hit the “Security” tab and click on the “Send Email” button:

User details reset password button.

When you click the button, you will be asked to confirm if you would like to reset the password for the user account:

Reset password confirmation dialog.

You should see a success notification at the top-right of your browser window when you confirm:

Reset password success notification.

Note: Clicking the password reset button does not create a new password for the user, rather issues a reset request. The reset request will send an e-mail to the user with an account activation link (like when a user account is initially created), where the user will be allowed to create a new password.

Disabling a User Account

Start from the users list, by clicking on the “Users List” side menu link:

Users side menu link.

The users list shows all users currently registered in the system:

Users list.

A user’s account can be quickly disabled by unchecking the checkbox beside the username of the user to disable.

You can view the details of an existing user account by clicking on the username of the account your’re interested in:

User details page.

To disable a user account, uncheck the “Enabled” field and click the “Update User” button of the bottom of the form to save the change.

Note: A user account that is not “Enabled” is not deleted from the system, but that user can no longer log in to IRIDA.

Managing User Groups

User accounts can be organized into a collection called a user group. User groups can be used to assign project permissions to collections of user accounts. This section of the user guide descibes how you can view projects, edit project metadata (including uploading reference files), search for projects by name, and create new projects.

Viewing existing user groups

First click on “User Groups List” via the admin panel side menu:

Groups dashboard location.

The user groups list shows all user groups in IRIDA:

List of user groups.

The projects list provides a high-level overview of project details, including:

Creating a new User Group

All users are permitted to create user groups in IRIDA.

To create a user group, start from the user groups list page and click on the “Create New User Group” button:

Create user group button.

This will open a modal window which will allow you to fill in the group details fields. Only the group name is required, but you can optionally provide a more detailed description of what the user group is:

User group details form.

On successfully creating a new user group, you will see the user group details that you entered:

User group details page.

By default, your user account is assigned to the group as the group owner.

Viewing user group details

To view user group details, start from the user groups list and click on the Name of the user group:

User group name link.

The user group details page shows a summary of the user group details and provides a view of the user accounts that have membership in the group:

User group details page.

Editing user group details

If you are a group owner, you can edit the details of a user group. To edit user group details, start by viewing the user group details, then click on the pencil icon beside the field you wish to edit:

Edit group details button.

When you’ve finished editing the user group field, you may click out of the input box or press enter, and it will save right away.

User group members

All users in IRIDA can see all user groups. A user can have one of two different roles in a user group: a group member (used only for project membership permissions) and a group owner (used for project membership permissions and group editing permissions).

Adding a project member

If you are a group owner, you can add new members to the group.

You can add other users to the group by clicking on the “Add Group Member” button:

Add group member button.

In the dialog that appears, choose the user that you want to add and the group role that the user should have. Group owners are allowed to add new members to the group. Group members are not allowed to add new members to the group.

Add group member dialog.

Changing a user group member role

You may want to change a user group member role if you wish to remove permissions for an individual user account to modify user group details, but still want to allow that user account to view the project data that the user group is assigned to. You can only change a user group member role if you have the group owner role on the user group.

Start by viewing the user group details.

To change the role of a project member, click on the drop-down menu in the “Role” column on the table for the user you would like to change:

User group role drop-down menu.

The user group role is saved as soon as you make a selection – you do not need to click a “Save” button.

Removing a user from a user group

You may want to completely remove all permissions for a user to access data in any project that the group is assigned to. To remove those permissions, you must remove the user account from the user group.

Start by viewing the user group details.

To remove a user group member, click on the “X” button on the right-hand side of the table:

Remove user group member button.

When you click the remove button, you will be asked to confirm the user group member removal:

Remove user group member confirmation dialog.

To confirm, click the “OK” button.

Managing System Clients

External tools can interact with IRIDA using the IRIDA REST API. External tools are required to use the OAuth2 framework for authorization. You must create an entry in the IRIDA database for each external tool that wants to interact with the IRIDA REST API. The tool author requires a client ID and a client secret. In addition to the client ID and secret, you are responsible for deciding what type of access a client should have (read, write, or both) and how the client should be allowed to interact with the REST API using user credentials.

Creating a New System Client

First navigate to the clients page via the admin panel side menu:

Clients side menu link.

The clients list shows all clients that are currently allowed to access the IRIDA REST API.

You can add a new client by clicking on the “Add Client” button:

Add client button.

When you add a client, you’ll be required to provide the following information:

  1. A unique client ID,
  2. How long a token should be valid for once issued,
  3. The type of OAuth2 flow that a client should use,
  4. Whether to allow refresh tokens.
  5. The scopes that the client is allowed to use (should the client be allowed to read, write, or both with the REST API).

Client details.

Client ID

The client ID must be unique in IRIDA, no two clients can share the same client ID. A client ID is required, and must be shorter than 255 characters, but no other validation is applied to client IDs.

Token Validity

When a client first interacts with the IRIDA REST API, it must provide its client ID, client secret, and user credentials. On successful authentication, the authorization server provides the client with an access token. The access token has a limited lifetime and expires after a certain period of time.

You should choose an access token lifetime similar to the amount of time that the client needs to interact with the REST API. For example, when a sequencer requires less than one hour of time to upload a sequencing run, so the lifetime of the access token should be around 1 hour.

Grant Types

You may also choose how a client is allowed to provide authentication details from a user. IRIDA currently supports two grant types:

  1. Password, and
  2. Authorization code.

You should choose the password grant type for applications that are not web-based applications, usually desktop or command-line clients. The password grant type requires the application to collect the user name and password directly from the user and submits the user name and password over HTTPS.

You should choose the authorization code grant type for applications that are web-based applications. In the authorization code grant type the user’s web browser is redirected to IRIDA to allow the user to authorize the client’s interaction with IRIDA. In the authorization code grant type, the user’s username and password are never provided to the client.

If you choose an authorization code grant, you must register a redirect URI for the service you expect to use this client. This is the location which the token should be sent in the web application’s API to set up an OAuth2 connection. In the case of IRIDA, this is generally the IRIDA installation’s base URL + /api/oauth/authorization/token (ex: https://irida.ca/irida/api/oauth/authorization/token). In the case of the IRIDA Galaxy Importer, this will be your local server’s base URL + /galaxy/auth_code. Ex: http://irida.ca/irida/galaxy/auth_code.

Refresh Tokens

Refresh tokens allow client applications to generate a new authorization token without input from the user. Because refresh tokens are valid for much longer than authorization tokens, refresh tokens can be used to ensure a connection can be made to an IRIDA API for longer running jobs. Refresh tokens should be used for instances that a client application will require a long term connection to the IRIDA API where users may not be able to validate their connection.

You should choose a refresh token validity suitable for the client application. Once a refresh token expires it will require a user to log in and reconnect to the IRIDA API. It is suggested to use refresh tokens for clients which will be used for project synchronization.

Scopes

Finally, you must decide what the client is allowed to do once it’s been authorized to use the REST API. You must choose at least one scope, otherwise the client will not be allowed to do anything once it’s been authorized to use the REST API.

If you choose only read scope, the client will have read-only access to the REST API (it will not be allowed to create new resources). The read scope is typically the only scope that should be enabled for a client.

If a client is going to be adding or modifying data in IRIDA, you should also enable the write scope. One specific example of a client that must be able to write to the REST API is the sequencer uploader tool.

Updating an Existing System Client

To modify the client details, you can click on the “Edit” button at the end of the row.

Client details edit button.

From the client details page you can modify the client ID, the length of time that an authorization token is valid for, the grant type that the client uses, and the scopes (read or write) that the client is allowed to use:

Edit client details panel.

After you have made the modifications that you want to the existing client, click on the “Update Client” button.

Generating a New Client Secret

You may want to generate a new client secret for a client if, for example, the client secret has been accidentally leaked by the client and someone is abusing your API.

Client secrets are generated randomly by IRIDA. To generate a new secret, click on the refresh button next to the client’s secret in the table:

Generate new client secret checkbox.

To generate the new secret, click on the “Update Client” button. The new client secret will be listed in the “Client Details” panel.

Removing a System Client

To remove a client, click on the “Remove” button at the end of the row, you will need to select “Ok” on a confirmation pop up to ensure this is what you intented to do:

Client details panel delete button.

Managing Remote IRIDA Connections

Remote instances of IRIDA can be used as data sources for associated projects and workflows. Users will be able to view an aggregated view of samples from the local project along with all local and associated projects. Administrators can create connections to remote instances of IRIDA using OAuth2 similar to how external tool developers can connect to the IRIDA REST API.

Remote API connection

See the user guide for information on connecting to remote instances of IRIDA.

Allowing access to your IRIDA installation

A Remote Connection is granted with the same process as remote clients. To allow a remote IRIDA instance to access your IRIDA instance, an OAuth2 client must be created with the following specifications:

Note: In order for a remote client to communicate with the REST API, the client must be able to access the REST API via HTTP. This may involve opening access in a firewall or setting up a VPN connection between sites.

For more information about creating OAuth2 clients see the managing system clients section.

Adding a Remote IRIDA installation

Before a user can use a remote instance of IRIDA as a data source for associated projects and workflows, an administrator must create a connection to that remote instance (similar to how external tool developers can connect to the REST API). To add a Remote Connection, an administrator will need the following information from the remote installation:

After being given the client credentials, access “Remote IRIDA Connections” via the admin panel side menu.

Remote API page

The Remote Connections page will display all currently available Remote Connections, and their connection status with an IRIDA instance.

To add a new connection, click the “Add Remote Connection” button:

Add api

Enter a suitable name for the remote installation. This name will be visible to users connecting and accessing data from that instance. Also enter the “Client ID”, “Client Secret”, and “Service URL” of the Remote Connection as given by the remote administrator.

Create API

After adding the Remote Connection the Remote Connections table will be updated.

To test the Remote Connection, click the “Connect” button. You should be directed to a login page for the remote connection. To connect to the remote instance of IRIDA you must have been given a username and password for the remote installation. See Remote instances of IRIDA for more details.

Removing a Remote Connection

From the Remote Connections list, click the “Remove” button at the end of the row for the remote connection you want to remove. A confirmatory pop up message will appear. Click “Ok” and the connection will be removed.

Remove API

Setting Analysis Submission Priority

Administrators have the ability to set the priority of analysis submissions in IRIDA. This feature can be used to ensure important analyses are run in a timely fashion when the analysis queue is filled by routine or other low priority analyses. By default all manually submitted submissions will have a priority of MEDIUM, whereas all automated submissions (such as automated assemblies and automated SISTR) will have LOW priority.

To update the priority of a submission, first view the analysis page. The current priority will be displayed on the Details page. To edit the priority, click the select box under Priority:

Analysis edit button.

Note that a priority change will only effect analyses in the Queued state. The analysis engine will pick higher priority analyses to begin running first, but currently running jobs will not be bumped by a higher priority analysis.

Viewing Sequencing Runs

To view the list of all sequencing runs uploaded to IRIDA, navigate to the sequencing runs page via the admin panel side menu:

Sequencing runs menu.

To delete a sequencing run, click the Remove button in the right-most column:

Note: This will remove the sequencing run and all associated sequence files. If this operation results in a sample being empty, the sample will also be removed.

Sequencing run remove.

You can view the specific details about a sequencing run by clicking on the ID of the sequencing run:

Select a specific run.

The sequencing run details page shows information that was captured from the sequencing run file, and provides you a method to view a complete collection of files that were uploaded as part of a run:

Sequencing run details page.

On the sequencing run files list you can download individual files by clicking on the download icon button, or you can view the quality control results produced by FastQC by clicking on the filename in the table:

Sequencing run files list.

On the quality control report page you can view individual quality control metrics, like quality constrol charts and some statistics about the file:

Sequencing run file quality control page.

You can also view the overrepresented sequences detected by FastQC by clicking on the “Overrepresented Sequences” tab on the top, left-hand corner of the page:

Sequencing run file overrepresented sequences tab.

The overrepresented sequences page displays all of the overrepresented sequences detected by FastQC:

Sequencing run file overrepresented sequences page.

Uploading Data to IRIDA using the IRIDA Uploader

The IRIDA Uploader is an application used to submit sequencing data from a variety of sequencers to an instance of IRIDA. You can access the latest stable release of the IRIDA Uploader at:

https://github.com/phac-nml/irida-uploader/releases/latest

The Uploader is available as a stand alone application with user interface, and as a command line utility.

A tutorial for the stand alone application can be found here: https://github.com/phac-nml/irida-uploader-tutorial

The command line utility is available via source code on Github as well as a package on bioconda

The documentation for using the IRIDA Uploader is included in the package, but can also be found at:

https://irida-uploader.readthedocs.io/en/stable/

Displaying IRIDA Platform Updates/Announcements

Announcements and updates can be displayed to users after they log in.

Announcements home page display

Administrators can create new announcements or view existing ones by clicking on the “Announcements” side menu link:

Announcements side menu link

New Announcements can be created by clicking on the “Add Announcement” button:

Announcements create button

Complete the form and hit the “Create Announcement” button. Note, the announcement content is rendered as markdown to the user.

Announcements create modal

To edit an announcement, click the edit button:

Announcements edit link

After editing the announcement, you can save your changes by hitting the “Update Announcement” button:

Announcements edit modal

To see the details of an announcement, click the details button:

Announcements details link

The announcement details displays a list of users who have marked this particular announcement as read, as well as see when they did so.

Announcements details modal

To delete an announcement, click the delete button:

Announcements delete button

To confirm the deletion of the announcement, click the “Delete” button:

Announcements delete confirmation

Viewing All Project Exports

Administrators have the ability to view the status of all exports to NCBI in the system. First navigate to the NCBI export uploads page via the admin panel side menu:

NCBI exports menu.

You will be displayed all the NCBI exports that have been created sorted by the date they were created.

NCBI exports list.

The exports will have one of the following states:

Troubleshooting

To troubleshoot common problems in IRIDA, please see the Troubleshooting guides.

  1. Troubleshooting Pipelines