file_to_gwasvcf | R Documentation |
Function to convert a file (or files) to gwasvcf format.
file_to_gwasvcf( file, chr_col, pos_col, nea_col, ea_col, snp_col = NULL, eaf_col = NULL, beta_col = NULL, se_col = NULL, pval_col = NULL, n = NULL, n_case = NULL, name = NULL, header = TRUE, sep = "\t", cores = 1, bcf_tools = NULL, verbose = TRUE )
file |
Path to file |
chr_col |
Column name for chromosome |
pos_col |
Column name for position |
nea_col |
Column name for non-effect allele |
ea_col |
Column name for effect allele |
snp_col |
Column name for SNP (Optional) |
eaf_col |
Column name for effect allele frequency (Optional) |
beta_col |
Column name for beta (Optional) |
se_col |
Column name for standard error (Optional) |
pval_col |
Column name for P value (Optional) NB: P values will be saved as 10^-P |
n |
Sample size (Optional), can be int or column name |
n_case |
Number of cases (Optional), can be int or column name |
name |
Trait name (Optional), can be string or column name |
header |
Whether file has a header or not (Optional, boolean) |
sep |
File separater (Optional) |
cores |
Number of cores for multi-threaded tasks (Optional) NB: Unavailable on Windows machines |
bcf_tools |
Path to bcf_tools (Optional) |
verbose |
Display verbose information (Optional, boolean) |
gwasvcf object(s)
[dat_to_gwasvcf()] for converting data.frames
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.