seqVCF_SampID {SeqArray} | R Documentation

## Get the Sample IDs

### Description

Returns the sample IDs of a VCF file.

### Usage

    seqVCF_SampID(vcf.fn)

### Arguments

`vcf.fn` | the file name, output a file of VCF format; or a `connection` object

### Author(s)

Xiuwen Zheng

### References

Danecek, P., Auton, A., Abecasis, G., Albers, C.A., Banks, E., DePristo, M.A., Handsaker, R.E., Lunter, G., Marth, G.T., Sherry, S.T., et al. (2011). The variant call format and VCFtools. Bioinformatics 27, 2156-2158.

### See Also

`seqVCF_Header`, `seqVCF2GDS`

### Examples

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

    # get sample id
    seqVCF_SampID(vcf.fn)

[Package SeqArray version 1.18.2 Index]