Skip to contents

Get seqinfo for VCF file

Usage

# S4 method for class 'VcfFile'
seqinfo(x)
# S4 method for class 'VcfFileList'
seqinfo(x)

Arguments

x

Either character(), VcfFile, or VcfFileList

Details

If a VcfFileThe file header is scanned an appropriate seqinfo object in given. If a VcfFileList is given, all file headers are scanned, and appropriate combined seqinfo object is given.

Value

Seqinfo object

Author

Lori Shepherd

See also

Examples

fl <- system.file("extdata", "chr7-sub.vcf.gz", package="VariantAnnotation",
                  mustWork=TRUE)
vcf <- VcfFile(fl)
seqinfo(vcf)
#> Seqinfo object with no sequences