Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/readSampleNamesFromVcfHeader.R
Reads the header of a VCF file and returns sample names as character vector
1 |
file |
a |
... |
all additional arguments are passed on internally to
|
This function is a simple wrapper around the
scanBcfHeader
function from the
Rsamtools
package
that scans the header of a VCF file and returns the sample
names as a character vector.
a character vector with sample names
Ulrich Bodenhofer bodenhofer@bioinf.jku.at
http://www.bioinf.jku.at/software/podkat
http://www.1000genomes.org/wiki/analysis/variant-call-format/vcf-variant-call-format-version-42
Li, H., Handsaker, B., Wysoker, A., Fenell, T., Ruan, J., Homer, N., Marth, G., Abecasis, G., Durbin, R., and 1000 Genome Project Data Processing Subgroup (2009) The Sequence Alignment/Map format and SAMtools. Bioinformatics 25, 2078-2079.
1 2 | vcfFile <- system.file("examples/example1.vcf.gz", package="podkat")
readSampleNamesFromVcfHeader(vcfFile)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.