Skip to content

Server administration (web)

This is the preliminary help for bioinformaticians administrators of the Vidjil web application. This help covers administrative features that are mostly accessible from the web application, and is complementary to the Docker/Server documentation. Users should consult the Web Platform User Manual.

Configuring pre-processes, processes and post-processes⚓︎

Pre-processes (after sample upload)⚓︎

Custom pre-processing steps can be added. They are called right after the upload of each sample, before launching the main processes. They can be used, for example to filter out some reads, to demultiplex UMI or to merge paired-end reads. Admins can add new pre-processes, and users can select a pre-process if they are allowed to.

Warning: Adding an external program may bring additional security or performance issues. Make sure you trust scripts you need to add before putting them on a production server.

Adding a pre-process⚓︎

Steps may differ if you use a plain-installation or a docker image.

  • (Command-line) Add a new preprocess script into the tools directory. This script make the link between the server, the data, the preprocess software or pipeline and the output file. A template is given in this directory ( and need to be adapted to your usage and software.
  • (Command-line) You need to add the executable or preprocessing script to the path of vidjil to be callable. For this, give the correct path of it into the files.
  • You need to modify the function "runpreprocess" in the script "server/py4web/apps/vidjil/". This part allow to use specific shortcut (files names for example) into the command line constructed by the server when calling the preprocess
  • (Web) You need to add the preprocess to the list of available process into the vidjil server interface. To do this, you need an admin account. You will see the pre-process config tab in the list of admin tabs.

Here is an example with a fictive paired-end merger: "mymerger".

  • For this example, this fictional merger only need to use 3 parameters: 2 fastq files, paired-end, and an output file.
  • The first step will be to reuse the template given into the tools directory. You need to adapt it to use the 3 parameters that will be called by the server when executed as described into it.
  • The second step will be to add the merger executable into the path to be callable by the server. This step will depend of you installation of the server. If you use a plain installation, you only need the add the executable to the path use by www-data user (if it is the one choose to serve the server). If you choose to use the docker installation, you need to uncomment the binaries volume into the docker-compose.yml file (service fuse); and copy the executable into the corresponding local directory (by default vidjil/docker/binaries/). After this, you should inquire the path into the file (relative path start from server/py4web/apps/vidjil).
  • After that, you will need to adapt the function "runpreprocess" of The goal here is to add some shortcut that will be use by the server to adapt the calling of preprocess to replace the file names or path of the executable. For example, existing shortcut will be \&file1&, \&file2& and \&result&. You should add \&mymerger&. Here is the line to add : cmd = cmd.replace("\&mymerger&", defs.DIRMYMERGER). It should be place into the try loop, after the shortcut for \&result&.
  • Last step is to add the preprocess into the server administration interface. To do it, you need to inquire three fields, The first is the name of the preprocess, the third is a more complete description of it, that will be show when the preprocess on hover at the selection by user. The second field is the one where the command to execute is defined. In this case, his content is : "python \&mymerger& \&file1& \&file2& \&result&".

Now, you can set the permission to give the access to this preprocess at your users. To do this, you need to click on the key logo of into the list of preprocess. This open a panel from where you can set the permissions of acces to preprocess. If you give permission to a group, each user of it will have access to it. If you need to give permissions to all users of the server, you can simply do that by given permission to public group. You can also give permissions to some specifics users of the list.

Main process and "fuse" configuration⚓︎

This page shows the configurations list for the main analysis process. Config are just parameters for:

  • running Vidjil-algo or other V(D)J analysis software on each sample, producing a .vidjil file for each sample. The default install sets up some default configs that should work for the majority of applications.

  • **`fusing'' (trough these results into a unique.vidjilfile**. The defaults options are-t 100, other options can be seen in the help`, possibly with additional pre- and post-processes (see below)

Each configuration has permissions for some groups.

Pre- and post-processes (around fuse)⚓︎

It is possible to run further pre- or post-process scripts around the "fusing" of results by giving --pre and/or --post options to fuse. These scripts can also be wrappers of other software. This can be useful to further process the result files, possibly taking into account several result files as in a MRD setup developed by Joao Medianis (Boldrini center, Brasil).

Adding such a pre/post-process⚓︎

  • Your script needs to take as an input a .vidjil file with -i argument, and export another .vidjil file with -o, such as in the call -i res-samples.vidjil -o res-samples.vidjil

  • The script should be available in the path referenced as PRE_PROCESS_DIR in tools/ The default path is relative to the file, so . will be interpreted as tools/ directory.

  • The script should be referenced in the Fuse command field of one "config" in the processes config page, as for example in -t 100 --pre A --pre script will be called on each .vidjil file, before the actual fusing, whereas a --post script will be called on the combined .vidjil file after the fusing.

  • Multiple scripts can be called. To do that, concatenate commands to use inside fuse line to call with a '&&' separator. -t 100 --pre 'scriptA --opt optvalA && scriptB --opt optvalB. This can be done for prefuse and postfuse step.

When the users select this config, these pre- and post-processes will also be called.

Users, groups, and permissions⚓︎


Users can be granted with various permissions:

  • Create patients
  • Edit/Delete patients
  • Upload sequences to patients
  • Run processes (Vidjil-algo or other analysis programs)
  • Save an Analysis
  • View a patients data in full detail

These permissions are assigned to groups to which a user can belong. Upon creation a user is automatically assigned a newly created group designed to be the user's personal group.

A user can belong to several groups and thus having access to several sets of patients with different permissions on each set. For example, he could be able to edit the patients of one group, but not the patients of another one.


Groups can be hierarchic: A group can have a parent group. All patient/run/set assigned to a group are also accessible to the children groups. Other permissions are not transferred from parents to children and access is not transferred from a child to a parent.

Child groups should be considered as roles inside the parent group as they should not possess any personal access to parents. They also cannot possess any children of their own. Assigning a new group to a group which has a parent defer the parent-child relationship to that parent.

Creating groups⚓︎

When creating the groups for an organization the parent group MUST be the first group created. Assigning a parent to a group cannot be done after creation. A group cannot change parents. Users can be created at any time. They can also be added or removed from groups whenever it is convenient

Example: create organization with sub groups/roles⚓︎

  • Create group, for example lab_xxx (select None for parent group).
  • Create sub-group for roles (eg. Technician, Engineer, Doctor). Be sure to select lab_xxx as the parent group.
  • From the group's detailed view, set the permissions for the newly created groups Technician, Engineer and Doctor. Be sure to assign at least the 'view patient' permission or members will not be able to see any patients from the parent group.
  • Invite users to the groups from the detailed view.

Users will now be able, if permissions allow it, to create patients for these groups. Any patient created should automatically be assigned to the parent group. Any patient created for the parent group will be accessible by any member of one of the child groups.

Example: converting a previous user account into a group account⚓︎

Sometimes a user has a account, does some analyses, and then want to create accounts for other members of her team. The following procedure makes that whole data uploaded by the user will be available to the whole group.

  • Modify the personal group of this user by renaming it to a group account, such as lab_xxx
  • Create the new users
  • Attach them to the first group lab_xxx.

If needed, you can also recreate a personal group for the user.

  • Create a new group for this user. Reuse the name of the previous personal group. This is simply a new group with a name as user_xxx, where xxx is the id of this user.
  • Set the permissions for this user into his own group.
  • Attach the user to this new group user_xxx

Adding roles to an organization⚓︎

You can use various panel of rights depending of the roles that you want create. For example, in a hospital, you may want that only a subgroup of people, let say doctors, are allowed to save an analysis.

Their is no preset of rights defined. You can select manual, inside detailed view of each group and sub-group, To do this, there is not any preset of permissions, but you rather have to select, inside the detailed view of each group and sub-group, the permissions you want to grant for each of these groups.

Adding an user to a group⚓︎

Adding a user to a group gives him access to the data of the group. This should be done only with explicit authorization of the group manager.

Removing an user from a group⚓︎

To remove a user from a group, open the corresponding group and click on the cross at the end of the line. Data will still be accessible for other users of this group.

If the user should no longer have access to an account, you can after that delete the user or simply remove access by changing his password and/or restrain rights for his personal group.

Server Monitoring⚓︎

Some monitoring features are accessible through the web application : XXX TODO XXX


Some features of vidjil server/client need to add a dedicated script in browser/js/addons/ directory.


If you use docker installation, don't forget to link these plugins directory/files to volume declaration.

Declare our own primers set⚓︎

A dedicated plugin allow to add your own primer set. To do this, adapt the following content with your own list of primers sequences:

Addon for primer declaration
setTimeout( () => {
    m.primersSetData.primers_set_XXX = {
        "name": "primers_set_XXX",
        "title": "primers_title",
        "TRB": {
            "primer5" : [
                "VVV","VVV","VVV", // segments V
                "DDD", "DDD"       // segments D
            "primer3": ["JJJ", "JJJ", "JJJ"] // primer3 complement
    console.default.log( "==> ADDONS PRIMERS  XXX loaded" ) // To control in browser log
}, 100)

If you want to add multiple primers sets by this way, don't forget to adapt it and avoid duplicate name in m.primersSetData.