Description Usage Arguments Details Value Examples
Read in a Variant Calling Format file and count the number of metadata lines to skip over for read_vcf function. Not exported.
1 | count_metadata_lines(filename)
|
filename |
A character string of the data file path. |
Throws an error if file cannot be found. Metadata lines are identified by checking if the lines starts with "##". This function requires reading in the entire file, so if you have a large file and know the number of metadata lines in that file, you can save some run time in the read_vcf, vcf2had, vcf2ploidy, and vcf2colony functions by entering the number of metadata lines in their "skip_lines" argument.
Returns a numeric of the number of metadata lines in VCF file.
1 | ## Not run: count_metadata_lines("./inst/extdata/example.vcf")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.