> For the complete documentation index, see [llms.txt](https://shivom.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shivom.gitbook.io/documentation/pipelines/metagwas-pipeline.md).

# MetaGWAS Pipeline

Meta-analysis of Genome-Wide Association Studies.

### MetaGWAS - Meta-analysis of Genome-Wide Association Studies

MetaGWAS is a common approach for improving the power of complex trait-gene mapping studies. The basic principle of meta-analysis is to combine the evidence for association from individual studies, using appropriate weights.

### Workflow

![](https://335305010-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4Sm7H8vvZ4Rwarnfru%2F-M8zb6I40GLqLPSwdnCS%2F-M8zbYNlO6MKHGECXiCg%2FPresentazione%20standard2.jpg?alt=media\&token=31cf8fbf-d638-4a9a-b284-5432b7a18923)

#### User Journey

A few simple steps are needed to run this pipeline:

1. reach *Pipelines* section of the platform;
2. select Meta-GWAS pipeline card;
3. upload your data file;
4. choose the parameters from the configuration page;
5. provide the job name and run the analysis;

then, you will be redirected to the results page.

![](https://335305010-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4Sm7H8vvZ4Rwarnfru%2F-MDyPGHNGHe6K_vebpc7%2F-MDyPQpU84rIb0uioRSK%2Fimage.png?alt=media\&token=81a12257-d6b9-4e15-bc87-fd5edb11d545)

The design is always the same as the previous pipelines since they share all the same characteristics.

![](https://335305010-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4Sm7H8vvZ4Rwarnfru%2F-MDyPGHNGHe6K_vebpc7%2F-MDyPlvL1Z50h-5AaDYb%2Fimage.png?alt=media\&token=5f95d15a-26e0-4fb3-b5a3-3ab1e264cf8e)

The first thing to do is to load your **Summary statistics Files** in .txt format.

This file must contain information regarding *marker name*, *chromosome*, *position*, *allele*, *allele frequency*, *effect size*, *standard error* and *p-value*.&#x20;

Once the file containing this information has been uploaded, it will be possible to define in which columns the values of your interest are contained:

![](https://335305010-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4Sm7H8vvZ4Rwarnfru%2F-MDyPGHNGHe6K_vebpc7%2F-MDyPtTN3VuTF3EUgWUn%2Fimage.png?alt=media\&token=f3c9c977-47e5-4d89-b3de-382a52cc5466)

#### List of parameters&#x20;

* **Pheno:** phenotype associated to input data;
* **Separator:** you must chose in the drop down menu options (Whitespace, Comma, Tab) the column separator in the input file;
* **Name of 'Allele Frequency' Column:**  allele frequency of the first of these alleles, (e.g., allele frequency of the first of these alleles);
* **Name of 'Allele' Column:** column name for **effect**/**tested** allele and other allele, (e.g., the two allele labels are stored in columns labelled **EFFECT\_ALLELE** and **NON\_EFFECT\_ALLELE**);
* **Name of ‘Marker/SNP’ Column:** column name for Marker/SNP;
* **Name of ‘Weight' Column:** the number of individuals analyzed for each row -- and which can be used to weight the contribution of each study in sample size and p-value based meta-analysis is stored in a column labeled N;
* **Name of ‘Standard Error' Column:** specify the label for the standard error column;
* **Name of ‘Effect' Column:** column name for Effect size; **Log transform button:** switch *on* if you want *Log transform the effect column values;*
* **Name of ‘P Value’ Column:** column name of the p-value column; **Log transform button:** switch *on* if you want *Log transform the p-value column values;*
* **Name of ‘Strand’ Column:** column name of the strand column, if present.

![](https://335305010-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4Sm7H8vvZ4Rwarnfru%2F-MDyPGHNGHe6K_vebpc7%2F-MDyQ0S_NqMoyLK_AFVy%2Fimage.png?alt=media\&token=27dc242d-245c-4bad-9c2d-396f34e0498c)

Now select the *analysis scheme*.

The tool chosen for the analysis is **METAL**, which implements two approaches:

1. **Sample Size** based method: converts the direction of effect and P-value observed in each study into a signed Z-score such that very negative Z-scores indicate a small P-value and an allele associated with lower disease risk or quantitative trait levels;&#x20;
   * **Minimum sample size for all Markers:** default input value 10000;
   * **Default weight:** default input value 1000;
2. **Inverse variance** based method: weights the effect size estimates, or β-coefficients, by their estimated standard errors;
   * if you want to **use sample size & p-value for analysis**, switch on; default: *on*;
   * if you want to **use effect size and standard error for analysis**, switch on; default: *on.*

**Genomic Control Correction**

If the **genomic control** is switched *off*, there is no adjustment to test statistics; indeed, if it is switched *on* it automatically corrects test statistics to account for small amounts of population stratification or unaccounted for relatedness. The default value for **Inflation factor** is *0.97*.

![](https://335305010-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4Sm7H8vvZ4Rwarnfru%2F-MDyPGHNGHe6K_vebpc7%2F-MDyQ9OsibdHK59pQXoc%2Fimage.png?alt=media\&token=4ec91bcd-e89f-4062-baae-44168f5079ee)

**Strand Overlap Correction**

If you want do perform *overlap correction*, switch *on* and insert a threshold value for Z-statistics; by default, this value is 1.

If the **Strand Column** is present in the input file, switch *on* the **Strand Details** button.&#x20;

If you want to track

* **Mean Allele Frequency**
* **Minimum and Maximum Allele Frequency**

switch *on*.

There is also the option to get **Detailed SNP Report**, switch *on*.

### Results

Once you have chosen the pipeline to be used, uploaded the data file and set all the parameters, you can start your analysis using the *Run Analysis* box; at this point you will be redirected to this page, where you can keep an eye on which works are *In Progress*, which are *Completed*, and choose to carry out a new analysis.&#x20;

![](https://335305010-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4Sm7H8vvZ4Rwarnfru%2F-ME3RTcdn0x8-jxQVEbq%2F-ME3S3HQbJfzDdiKFdRV%2FLight%20-%20Dashboard%402x.png?alt=media\&token=0092011a-43fb-4673-9d66-0b9942c4ab74)

By clicking on your *JobName*, you will have access to this page, where you can monitor all the processes involved in your analysis:

![](https://335305010-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4Sm7H8vvZ4Rwarnfru%2F-ME3RTcdn0x8-jxQVEbq%2F-ME3Rj_M3uekxa18wcRx%2FLight%20-%20Pipeline%20Job%402x.png?alt=media\&token=1ec23184-4d03-4aee-9030-ed55bb200481)

Now, selecting the *Results* box on the right, let's take a look at the demo results obtained using the Default Parameters Set:

![](https://335305010-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4Sm7H8vvZ4Rwarnfru%2F-M8tftuH9IvJwEbZ8IzA%2F-M8thfAIkP63QkOMESE7%2Fimage.png?alt=media\&token=4d8157a4-33d8-4e42-9d44-2af40f7ac948)

**Manhattan Plot** is a type of *scatter plot -* plot or mathematical diagram using Cartesian coordinates to display values for typically two variables for a set of data.

![](https://335305010-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4Sm7H8vvZ4Rwarnfru%2F-M8zbbX0aWFoub7KUCOP%2F-M8zdAzJCK7RCNqLpcma%2Fimage.png?alt=media\&token=ac555f7c-5171-4050-8ec5-23dd20a8347d)

**Normal Quantile Plot**

![](https://335305010-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4Sm7H8vvZ4Rwarnfru%2F-M8zbbX0aWFoub7KUCOP%2F-M8zdZo4f8sJ80H0rHph%2Fimage.png?alt=media\&token=720aad55-d02f-4c96-968b-534ea886a591)

By clicking on the Interactive Graphs option, you can also view your results like this:

![](https://335305010-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4Sm7H8vvZ4Rwarnfru%2F-M8zdbUJ6PjwLDoqnJ17%2F-M8zjEQ6aPlAZqXJCD7P%2Fimage.png?alt=media\&token=de6eadc3-9ea7-4c62-a61c-023c1a6c978e)

![](https://335305010-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4Sm7H8vvZ4Rwarnfru%2F-M8zdbUJ6PjwLDoqnJ17%2F-M8zlGJAgKiqVAD2jUsJ%2Fimage.png?alt=media\&token=aaf0521f-efe7-436b-a9da-c2b7a79f231f)

Finally, using the *Export* box, you will be able to download the results of your analysis in a *.pdf* format file.

#### Reference

1. [**METAL: Fast and Efficient Meta-Analysis of Genomewide Association Scans**](https://pubmed.ncbi.nlm.nih.gov/20616382/), CJ Willer, Y Li, GR Abecasis, 2010
