# Install pipeline

## 1) Installing NGS\_RNA

We first have to load EasyBuild, this can be done with this command

```bash
module load EasyBuild
```

The NGS\_RNA pipeline has a lot of dependencies, these are handled by easybuild when the --robot command is executed (all the dependencies can be found [here](https://github.com/molgenis/molgenis-pipelines/tree/68b42f429224f1d8ee4aa635c4da8e6bd7b22792/docs/pipelines/rna-dependencies/README.md)). Since we have also our own repo we have to give the path to that also. There can be multiple paths to easybuild configs, just separate them by colon.

***Note:*** the order in which you give the paths are important! To original easybuild path can be left empty (just a colon is enough)

```bash
eb NGS_RNA-3.2.4.eb --robot --robot-paths=${pathToMYeasybuild}/easybuild-easyconfigs/easybuild/easyconfigs/:
```

***Note:*** some software cannot be downloaded automagically due to for example licensing or technical issues and the build will fail initially. In these cases you will have to download manually and copy the sources to ${HPC\_ENV\_PREFIX}/sources/\[a-z]/NameOfTheSoftwarePackage/ This is the case for example for Java. Therefore:

```bash
scp jdk-7u80-linux-x64.tar.gz your_account@yourcluster.nl:${root}/apps/sources/j/Java/
scp jdk-8u45-linux-x64.tar.gz your_account@yourcluster.nl:${root}/apps/sources/j/Java/
```

but also tools as GATK, Tabix and snpEff should be download manually:

```bash
scp GATK-3.5.tar.gz your_account@yourcluster.nl: ${root}/apps/sources/g/GATK/
scp tabix.0.18.6.tar.gz your_account@yourcluster.nl: ${root}/apps/sources/t/tabix
```

## 2) Installing the necessary resources (reference genome, dbSNP etc)

Logout and login again. Run the script RNA\_resources to install the required resources, you can download the scripts [here](https://github.com/molgenis/molgenis-pipelines/tree/68b42f429224f1d8ee4aa635c4da8e6bd7b22792/docs/pipelines/attachments/scripts.tar.gz)

```bash
sh NGS_RNA-resources.sh
```

This script will download parts of the 2.8 bundle from the GATK server

***Note:*** Sometimes the GATK ftp server can be down/instable, try it a couple of times

## 3) Creating workdir structure

```bash
sh makestructure.sh
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://molgenis.gitbook.io/molgenis-pipelines/ngs_rna/rna-install.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
