readVcfFields: Read vcf into R as data frame

View source: R/readVcfFields.R

readVcfFieldsR Documentation

Read vcf into R as data frame

Description

Read vcf into R as data frame

Usage

readVcfFields(vcf.file, fields = NULL)

Arguments

vcf.file

Path to the vcf file

fields

A character or integer vector indicating which columns to keep.

Value

A dataframe

Examples

readVcfFields('/path/to/vcf', fields=c('CHROM','POS','REF','ALT'))
readVcfFields('/path/to/vcf', fields=c(1,2,4,5))

UMCUGenetics/mutSigExtractor documentation built on Aug. 30, 2024, 2:12 p.m.