index_vcf | R Documentation |
Convert summary stats file to tabix format
index_vcf(path, verbose = TRUE)
path |
Path to VCF. |
verbose |
Print messages. |
Path to tabix-indexed tabular file
Borrowed function from echotabix.
Other tabix:
index_tabular()
eduAttainOkbayPth <- system.file("extdata", "eduAttainOkbay.txt",
package = "MungeSumstats")
sumstats_dt <- data.table::fread(eduAttainOkbayPth, nThread = 1)
sumstats_dt <-
MungeSumstats:::standardise_sumstats_column_headers_crossplatform(
sumstats_dt = sumstats_dt)$sumstats_dt
sumstats_dt <- MungeSumstats:::sort_coords(sumstats_dt = sumstats_dt)
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.