Learn R Programming

seqminer (version 0.1)

readVCFToListByRange: Read a gene from VCF file and return a genotypes matrix

Description

Read a gene from VCF file and return a genotypes matrix

Usage

readVCFToListByRange(fileName, range, annoType,
    vcfColumn, vcfInfo, vcfIndv)

Arguments

fileName
input VCF file (Bgzipped, with Tabix index)
range
a text indicating which range in the VCF file to extract. e.g. 1:100-200
annoType
which annotation you would like to extract
vcfColumn
which vcf columns to extract, e.g. CHROM, POS, FILTER...
vcfInfo
which tag in the INFO columns to extarct. e.g. DP, AC...
vcfIndv
which individual tag to extract, e.g. GT, GQ...

Value

  • a list of genes, and each elements has specified vcfColumn, vcfinfo, vcfIndv