format_gwas | R Documentation |
Convert GWAS summary statistics into required format
format_gwas( gwas, chr = "CHR", snp = "SNP", effect_allele = "A1", other_allele = "A2", eaf = "eaf", beta = "beta", n_case = "N_case", n_control = "N_cont" )
gwas |
GWAS summary statistics |
chr |
Column name for chromosome - a string |
snp |
Column name for rsid of SNP - a string |
effect_allele |
Column name for effect allele (i.e. the allele for the signed statistic beta) - a string |
other_allele |
Column name for the non-effect allele - a string |
eaf |
Column name for effect allele frequency - a string |
beta |
Column name for per-allele log odds ratio - a string |
n_case |
Column name for number of cases - a string |
n_control |
Column name for number of controls - a string |
a data frame with formatted GWAS summary statistics
df = format_gwas(gwas = gwas_sumstats,chr = "CHR",effect_allele = "A1",other_allele = "A2",snp = "SNP",eaf = "eaf",beta = "beta",n_case = "n_case",n_control = "n_control") df = format_gwas(gwas = gwas_sumstats)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.