Learn R Programming

SeqArray (version 1.8.0)

seqVCF.SampID: Get the sample IDs of a VCF file

Description

Return the sample IDs of a VCF file

Usage

seqVCF.SampID(vcf.fn)

Arguments

vcf.fn
the file name of VCF

References

http://www.1000genomes.org/wiki/Analysis/Variant Call Format/vcf-variant-call-format-version-41

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 file name of VCF
(vcf.fn <- seqExampleFileName("vcf"))
# or vcf.fn <- "C:/YourFolder/Your_VCF_File.vcf"

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

Run the code above in your browser using DataLab