is_vcf | R Documentation |
Quickly checks that the input file has a 'vcf' or 'vcf.gz' suffix, and that the column names correspond to typical VCF column headers.
is_vcf(x)
x |
Path to file. |
TRUE if the input file is inferred to be a VCF, FALSE otherwise.
x <- system.file("extdata/umccrise/snv/somatic-ensemble-PASS.vcf.gz", package = "gpgr")
(y <- is_vcf(x))
tmp_file <- tempfile(pattern = "fakeFile", fileext = "vcf")
writeLines(c("col1\tcol2\tcol3", "1\t2\t3"), con = tmp_file)
(z <- is_vcf(tmp_file))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.