View source: R/index_tabular.R
index_tabular | R Documentation |
Convert summary stats file to tabix format.
index_tabular(
path,
chrom_col = "CHR",
start_col = "BP",
end_col = start_col,
overwrite = TRUE,
remove_tmp = TRUE,
verbose = TRUE
)
path |
Path to GWAS summary statistics file. |
chrom_col |
Name of the chromosome column in
|
start_col |
Name of the starting genomic position
column in |
end_col |
Name of the ending genomic position
column in |
overwrite |
A logical(1) indicating whether |
remove_tmp |
Remove the temporary uncompressed version of the file (.tsv). |
verbose |
Print messages. |
Path to tabix-indexed tabular file
Borrowed function from echotabix.
Other tabix:
index_vcf()
sumstats_dt <- MungeSumstats::formatted_example()
path <- tempfile(fileext = ".tsv")
MungeSumstats::write_sumstats(sumstats_dt = sumstats_dt, save_path = path)
indexed_file <- MungeSumstats::index_tabular(path = path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.