Description Usage Arguments Value Examples
View source: R/load_GWAS_data.R
Load GWAS data
1 2 3 4 5 6 | load_GWAS_data(
association_file,
effects_file,
association_columns = c("Trait", "Marker", "Locus", "Site", "p", "marker_R2"),
effects_columns = c("Trait", "Marker", "Locus", "Site", "Effect")
)
|
association_file |
The association file |
effects_file |
The effects file |
association_columns |
The names of the columns in your association data for Trait, Marker, Chromosome, Site, F, p, and marker_Rsquared |
effects_columns |
The names of the columns in your effects data for Trait, Marker, Chromosome, Site, and effect |
The association data and the effects data merged into a dataframe with one row for each SNP
1 2 3 4 5 | demo_association_file = system.file("extdata", "association.txt.xz",
package = "PAST", mustWork = TRUE)
demo_effects_file = system.file("extdata", "effects.txt.xz",
package = "PAST", mustWork = TRUE)
gwas_data <- load_GWAS_data(demo_association_file, demo_effects_file)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.