Description Usage Arguments Examples
This scans a VCF file to find the header line (by searching for a line starting with "#CHROM"), and then it reads it in and returns it as a data frame. It doesn' worry about the formatting of the genotype columns because we are typically concerned here just with getting CHROM, POS, REF, and ALT. In fact, by default, those four columns are all that this function returns
1 |
path |
The path to a VCF file (which may or may not be gzipped) |
all_cols |
Logical indicating whether to return all columns (TRUE) or only CHROM, POS, REF, and ALT. |
top_test |
How many lines to scan from the top of the file to look for the "#CHROM" showing that it is the header. |
1 | grab_vcf(system.file("textdata", "vcf.txt.gz", package = "snps2assays"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.