Description Usage Arguments Value Author(s) References See Also Examples
View source: R/make_eQTL_data.r
Create artificial genotype, gene expression, covariate, and gene/SNP location data sets.
1 2 3 4 5 6 7 8 9 10 11 | create_artificial_data(
nsample,
ngene = 5000,
nsnp = 500e+03,
ncvrt = 10,
minMAF = 0.2,
saveDir = ".",
returnData = FALSE,
savefmat = FALSE,
savetxt = FALSE,
verbose = TRUE)
|
nsample |
Number of samples. |
ngene |
Number of genes. |
nsnp |
Number of SNPs. |
ncvrt |
Number of covariates. |
minMAF |
Minimum minor allele frequency of generated SNPs. |
saveDir |
Directory for the output. |
returnData |
Set to |
savefmat |
Save generated data in
|
savetxt |
Save generated data in text format.
This format is used by Matrix eQTL
|
verbose |
Set to |
The function generates the following text files and/or filematrices:
cvrt |
Covariates |
gene |
Gene expression |
snps |
SNPs (genotype) |
gene_loc |
Gene locations |
snps_loc |
SNP locations |
etas |
SNP effect on the genes |
Andrey A Shabalin andrey.shabalin@gmail.com, John Palowitch
The manuscript is available at: http://onlinelibrary.wiley.com/doi/10.1111/biom.12810/full
For package overview and code examples see the package vignette via:
browseVignettes("ACMEeqtl")
For fast testing of all local gene-SNP pairs (local eQTL)
see multithreadACME
.
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.