# How to run survival analysis using GATE unmodifiable pipeline

Unmodifiable pipelines are predefined workflows that cannot be modified by the user. Advantage of running unmodifiable pipelines compared to modifiable pipelines is that you will get results directly to the green library and the [User results PheWeb browser](https://userresults.finngen.fi/). No download requests are needed, because results of unmodifiable pipeline have been verified not to contain any individual-level data.

Running the GATE unmodifiable pipeline is very similar to running GATE in [regular pipelines](/working-in-the-sandbox/running-analyses-in-sandbox/how-to-run-genome-wide-association-studies-gwas/how-to-run-gwas-using-gate-survival-models.md), with just a few small changes. The unmodifiable GATE pipeline can be accessed in the sandbox from

<mark style="color:purple;">**The Pipelines app -> unmodifiable workflow -> Unmodifiable GATE DF12.**</mark>

**The workflow for running the pipeline is:**\
**First,** prepare a phenotype file for your endpoint. The phenotype file should contain the columns FID and IID for FINNGENIDs, as well as the endpoint column and its survivaltime column. **If you are using any covariates not included in the analysis covariates file, include them here as columns as well. These new covariates can not have the same names as the analysis covariates**. See [How to run GWAS using GATE (survival models)](/working-in-the-sandbox/running-analyses-in-sandbox/how-to-run-genome-wide-association-studies-gwas/how-to-run-gwas-using-gate-survival-models.md) for more information.

\
**Second**, create a file with phenotype description(s), one per row. These will be used when the endpoint is uploaded to the userresults browser. These should be in the same order that the endpoints in your phenotype list are going to be.

\
**Third**, fill in the input json in the unmodifiable pipeline json:\
`gate.phenolist`: A comma-separated list of your endpoints. Example value: "*endpoint1,endpoint2*"\
`gate.phenodescriptionlist`: The phenotype description file you created in the second step.\
`gate.pheno_file`: The phenotype file you created in the first step.\
`gate.covariates`: The covariates used in the analysis are given here, as a comma-separated list. By default this column contains the analysis covariates.<br>

**The results will be automatically copied to the** [**User results PheWeb browser**](https://userresults.finngen.fi/) **and the green library bucket specific for each data release:**\
`/finngen/library-green/finngen_R[RELEASE]/unmodifiable_pipelines/UnmodifiableGATEDF[RELEASE]/`workflow\_id\
E.g. for R12, to `/finngen/library-green/finngen_R12/unmodifiable_pipelines/UnmodifiableGATEDF12/`workflow\_id.\
The workflow\_id will be the pipelines app ID for your job.

**Alternatively, you can access the results outside the sandbox** by navigating (using a web browser) to `https://console.cloud.google.com/storage/browser/finngen-production-library-green/finngen_RX/unmodifiable_pipelines/UnmodifiableGATEDFX` where `X` is the FinnGen data freeze you ran the GWAS for (e.g. 12). You will need to log in with the same google account with which you access the FinnGen sandbox. In this page, look for the folder corresponding to your GWAS job ID and open it to access the GWAS output files.<br>


---

# 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://docs.finngen.fi/working-in-the-sandbox/running-analyses-in-sandbox/how-to-run-genome-wide-association-studies-gwas/how-to-run-survival-analysis-using-gate-unmodifiable-pipeline.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.
