readSingleChromosomeVCFToMatrixByRange: Read a range from VCF file and return a genotype matrix

View source: R/seqminer.R

readSingleChromosomeVCFToMatrixByRangeR Documentation

Read a range from VCF file and return a genotype matrix

Description

Read a range from VCF file and return a genotype matrix

Usage

readSingleChromosomeVCFToMatrixByRange(fileName, range, indexFileName = NULL)

Arguments

fileName

character, represents an input VCF file (Bgzipped, with Tabix index)

range

character, a text indicating which range in the VCF file to extract. e.g. 1:100-200, 1-based index

indexFileName

character, index file, by default, it s 'fileName'.scIdx

Value

genotype matrix

See Also

http://zhanxw.com/seqminer/ for online manual and examples

Examples

fileName = system.file("vcf/all.anno.filtered.extract.vcf.gz", package = "seqminer")
cfh <- readSingleChromosomeVCFToMatrixByRange(fileName, "1:196621007-196716634")

seqminer documentation built on Sept. 2, 2023, 9:08 a.m.