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 Feb. 16, 2025, 2:34 a.m.