# How to run GWAS using plink2 (for unrelated individuals only)

You can also run GWAS in Sandbox using [plink2](https://www.cog-genomics.org/plink/2.0/). There is no FinnGen pipeline for plink2, so this has to be done *interactively* in the terminal. Because of this, running parallel phenotypes or chromosomes is not possible.

**Note:** Running GWAS using plink is **NOT** recommended if you have a large number of samples, phenotypes, or genotypes (for example, running one phenotype in R8 for the whole unrelated set for all imputed genotypes takes >16 hrs).

It is also important to keep in mind that plink2 does not perform mixed models, and thus it should be performed **only for unrelated individuals** (so not for the whole of FinnGen, for example). You can find relatedness information about R8 samples from `/finngen/library-red/finngen_R8/kinship_1.0/data/finngen_R8.kin0`.


---

# 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-gwas-using-plink2-for-unrelated-individuals-only.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.
