Learn R Programming

SeqArray (version 1.10.1)

seqVCF.SampID: Get the Sample IDs

Description

Returns the sample IDs of a VCF file.

Usage

seqVCF.SampID(vcf.fn)

Arguments

vcf.fn
the file name of VCF

References

The variant call format and VCFtools. Danecek P, Auton A, Abecasis G, Albers CA, Banks E, DePristo MA, Handsaker RE, Lunter G, Marth GT, Sherry ST, McVean G, Durbin R; 1000 Genomes Project Analysis Group. Bioinformatics. 2011 Aug 1;27(15):2156-8. Epub 2011 Jun 7.

See Also

seqVCF.Header, seqVCF2GDS

Examples

Run this code
# the VCF file
(vcf.fn <- seqExampleFileName("vcf"))

# get sample id
seqVCF.SampID(vcf.fn)

Run the code above in your browser using DataLab