-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_parameters_multiomicGWAS.R
More file actions
45 lines (41 loc) · 1.66 KB
/
run_parameters_multiomicGWAS.R
File metadata and controls
45 lines (41 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env Rscript
# # List of required packages
# pkgs <- c("AGHmatrix", "qqplotr", "ggplot2", "dplyr", "data.table", "stringr",
# "heatmaply", "ppcor", "zoo", "GGally", "reshape2", "compositions", "sommer", "mice", "qvalue")
# # Install missing packages
# for (p in pkgs) {
# if (!requireNamespace(p, quietly = TRUE)) {
# message("Installing package: ", p)
# install.packages(p, repos = "https://cloud.r-project.org")
# }
# }
# install.packages("remotes")
# library("remotes")
# remotes::install_github("jendelman/GWASpoly")
source("https://github.com/bodeolukolu/multiomicGWAS/raw/refs/heads/main/multiomicGWAS.R")
multiomicGWAS (
wdir = "./",
projname = "GWAS",
ploidy_levels = c(2,4,6,8),
trait_names = c("trait1","trait2"),
model_effect = c("Add","Dom"),
fdr = TRUE,
bonferroni = TRUE,
suggestive = "5", # set to NULL if not available
perm = "1",
cores = "1",
genofile_2x = NULL,
genofile_4x = NULL,
genofile_6x = NULL,
genofile_8x = NULL,
phenofile = "traits.txt", # set to NULL if not available
method = c("MLM", "GLM"),
covariate_pheno = c("trait1","trait2"), # set to NULL if not available
covariate_metag = FALSE,
maf = "0.02",
LOCO = FALSE,
pheno_taxa_strain = "taxa1", # set to NULL if not available
pheno_taxa_species = "taxa2", # set to NULL if not available
metag_data_strains = "metag.txt", # set to NULL if not available
metag_data_species = "metag.txt" # set to NULL if not available
)