index | R Documentation |
Tabix-index a tabular summary statistics file.
index(
bgz_file,
chrom_col,
start_col,
end_col = start_col,
comment_char = NULL,
force_new = TRUE,
method = c("conda", "seqminer", "rsamtools", "variantannotation"),
conda_env = "echoR_mini",
verbose = TRUE
)
bgz_file |
Path to a file that has been compressed with |
chrom_col |
Name of the chromosome column
in the |
start_col |
Name of the genomic start position column
in the |
end_col |
Name of the genomic end position column
in the |
comment_char |
Comment character denoting which row contains the column names (e.g. "#CHR" or "SNP"). |
force_new |
Force the creation of a new bgzip file (.bgz) and a new tabix index file (.tbi). |
method |
Method to index tabix file with. |
conda_env |
Conda environments to search in.
If |
verbose |
Print messages. |
Other tabix functions:
construct_tabix_path()
,
construct_vcf_path()
,
convert()
,
query_table()
,
query_vcf()
,
read_bgz()
,
run_bgzip()
dat <- echodata::BST1
tmp <- tempfile(fileext = ".tsv.gz")
data.table::fwrite(dat, tmp, sep="\t")
bgz_file <- echotabix::run_bgzip(target_path = tmp,
chrom_col = "CHR",
start_col = "POS")
tbi_file <- echotabix::index(bgz_file = bgz_file,
chrom_col = "CHR",
start_col = "POS")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.