You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/input_files.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ YAX requires the first 4 columns as shown above, where 1-3 (chr, start, end) spe
36
36
PC2 -0.0097 -0.0059 -0.0025 -0.0064
37
37
PC3 0.0067 0.0096 -0.0036 -0.0041
38
38
```
39
-
Covariate files should be white-space delimited. Uncompressed or GZIP/BGZIP-compressed white-space delimited text files are supported. Users are encouraged to verify that their covariate data matrix has full column rank.
39
+
Uncompressed or GZIP/BGZIP-compressed white-space delimited text files are supported for covariate data. Users are encouraged to verify that their covariate data matrix has full column rank.
Copy file name to clipboardExpand all lines: doc/mode_cis.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,12 +41,12 @@ cis-xQTL analysis in YAX uses either a) ordinary least squares (OLS) for unrelat
41
41
8.`resid_sd` : Square root of regression mean squared error under the null model.
42
42
9.`n_cis_variants` : Number of variants in the *cis* region (which were used to calculate `gene_pval`).
43
43
44
-
**QTL software concordance.** When no GRM is specified, YAX single-variant output is numerically equivalent to the R regression model `lm(traits[,j] ~ covariates + genotype[,k])` for each trait `j` and genotype `k`. YAX output is additionally equivalent to [FastQTL](http://fastqtl.sourceforge.net/) single-variant output. Note that some tools, such as [QTLtools](https://qtltools.github.io/qtltools/), instead fit the model `lm(residuals[,j] ~ genotype[,k])` where `residuals[,j] = resid(lm(traits[,j] ~ covariates))`. YAX can mimic this model if the flag `--no-resid-geno` is specified. This approach is slightly faster that standard OLS, but can cause [conservative p-values (loss of statistical power)](https://onlinelibrary.wiley.com/doi/abs/10.1002/gepi.22325).
44
+
**QTL software concordance.** When no GRM is specified, YAX single-variant output is numerically equivalent to the R regression model `lm(traits[,j] ~ covariates + genotype[,k])` for each trait `j` and genotype `k`. YAX output is additionally equivalent to [FastQTL](http://fastqtl.sourceforge.net/) single-variant output. Note that some tools, such as [QTLtools](https://qtltools.github.io/qtltools/), instead fit the model `lm(residuals[,j] ~ genotype[,k])` where `residuals[,j] = resid(lm(traits[,j] ~ covariates))`. YAX can mimic this model if the flag `--no-resid-geno` is specified. This approach is slightly faster than standard OLS, but can cause [conservative p-values (loss of statistical power)](https://onlinelibrary.wiley.com/doi/abs/10.1002/gepi.22325).
YAX uses a linear mixed model (LMM) to account for cryptic or familial relatedness in cis-eQTL analysis of the form <imgsrc="https://render.githubusercontent.com/render/math?math=y = X\beta %2B g %2B \varepsilon "> where <imgsrc="https://render.githubusercontent.com/render/math?math=g\sim\mathcal{N}(0,\tau^{2}\GRM)"> and <imgsrc="https://render.githubusercontent.com/render/math?math=\varepsilon\sim\mathcal{N}(0,\sigma^{2}I)">. To use this feature, specify a genetic relatedness matrix (GRM) file to YAX using `--grm {grm-file}`. Output files and options are otherwise similar to those from OLS cis-xQTL analysis (when `--grm` is not specified). <br />
49
+
YAX uses a linear mixed model (LMM) to account for cryptic or familial relatedness in cis-eQTL analysis of the form <imgsrc="https://render.githubusercontent.com/render/math?math=y = X\beta %2B g %2B \varepsilon "> where <imgsrc="https://render.githubusercontent.com/render/math?math=g\sim\mathcal{N}(0,\tau^{2}\GRM)"> and <imgsrc="https://render.githubusercontent.com/render/math?math=\varepsilon\sim\mathcal{N}(0,\sigma^{2}I)">. To use this feature, specify a genetic relatedness matrix (GRM) file to YAX using `--grm {grm-file}`. Output files and options are otherwise similar to those from OLS cis-xQTL analysis (when `--grm` is not specified). [See here](https://github.com/corbinq/yax/blob/master/doc/input_files.md) for accepted input file formats. <br />
**QTL software concordance.** When no GRM is specified, YAX single-variant output is equivalent to the R regression model `lm(traits[,j] ~ covariates + genotype[,k])` for each trait `j` and genotype `k`. YAX output is additionally equivalent to [FastQTL](http://fastqtl.sourceforge.net/) single-variant output. Note that some tools, such as [QTLtools](https://qtltools.github.io/qtltools/), instead fit the model `lm(residuals[,j] ~ genotype[,k])` where `residuals[,j] = resid(lm(traits[,j] ~ covariates))`. YAX can mimic this model if the flag `--no-resid-geno` is specified. This approach is slightly faster that standard OLS, but can cause [conservative p-values (loss of statistical power)](https://onlinelibrary.wiley.com/doi/abs/10.1002/gepi.22325).
20
+
**QTL software concordance.** When no GRM is specified, YAX single-variant output is equivalent to the R regression model `lm(traits[,j] ~ covariates + genotype[,k])` for each trait `j` and genotype `k`. YAX output is additionally equivalent to [FastQTL](http://fastqtl.sourceforge.net/) single-variant output. Note that some tools, such as [QTLtools](https://qtltools.github.io/qtltools/), instead fit the model `lm(residuals[,j] ~ genotype[,k])` where `residuals[,j] = resid(lm(traits[,j] ~ covariates))`. YAX can mimic this model if the flag `--no-resid-geno` is specified. This approach is slightly faster that standard OLS, but can cause [conservative p-values (loss of statistical power)](https://onlinelibrary.wiley.com/doi/abs/10.1002/gepi.22325). To see accepted input file formats, [please see here.](https://github.com/corbinq/yax/blob/master/doc/input_files.md)
21
21
## LMM trans-xQTL analysis
22
22
**Example command:** <br />
23
23
```
@@ -29,7 +29,7 @@ Similar to `yax cis` mode, trans-xQTL analysis in YAX (`yax trans`) uses either
YAX uses a linear mixed model (LMM) to account for cryptic or familial relatedness in trans-eQTL analysis. To use this feature, specify a genetic relatedness matrix (GRM) file to YAX using `--grm {grm-file}`. <br />
32
+
YAX uses a linear mixed model (LMM) to account for cryptic or familial relatedness in trans-eQTL analysis. To use this feature, specify a genetic relatedness matrix (GRM) file to YAX using `--grm {grm-file}`. To see accepted input file formats, [please see here.](https://github.com/corbinq/yax/blob/master/doc/input_files.md)<br />
33
33
Unlike `yax cis`, LMM analysis in `yax trans` is divided into two steps. First, we estimate variance component parameters for all molecular traits under the null hypothesis (no single-variant genetic effects), and store these estimates for later use. Second, we use these estimates to quickly calculate trans-xQTL association statistics. When jobs are parallelizes across chromosomes, this 2-step approach saves substantial computational resources, as the null model for each molecular trait need only be estimated once. <br />
34
34
35
35
**LMM software concordance.** YAX's LMM estimates are consistent with the R packages [GMMAT](https://github.com/hanchenphd/GMMAT) and [GENESIS](http://www.bioconductor.org/packages/release/bioc/html/GENESIS.html) using AI-REML.
0 commit comments