create_tabix_file: Create a tabix file using methylation calls

Description Usage Arguments Value Examples

View source: R/tabix_utils.R

Description

Create a tabix file using methylation calls

Usage

1
2
3
4
5
6
create_tabix_file(
  input_files,
  output_file,
  samples = extract_file_names(input_files),
  verbose = TRUE
)

Arguments

input_files

the files to convert

output_file

the output file to write results to (must end in .bgz)

samples

the names of samples corresponding to each file

verbose

TRUE if progress messages are to be printed

Value

invisibly returns the output file path, creates a tabix file (.bgz) and its index (.bgz.tbi)

Examples

1
2
3
4
5
methy_calls <- system.file(package = "NanoMethViz",
    c("sample1_nanopolish.tsv.gz", "sample2_nanopolish.tsv.gz"))
temp_file <- paste0(tempfile(), ".tsv.bgz")

create_tabix_file(methy_calls, temp_file)

NanoMethViz documentation built on Nov. 8, 2020, 4:51 p.m.