Learn R Programming

ICAMS (version 2.0.10)

ReadMutectVCF: Read in the data lines of a Variant Call Format (VCF) file created by Mutect

Description

Read in the data lines of a Variant Call Format (VCF) file created by Mutect

Usage

ReadMutectVCF(file, name.of.VCF = NULL, tumor.col.name = NA)

Arguments

file

The name/path of the VCF file, or a complete URL.

tumor.col.name

Name of the column in VCF which contains the tumor sample information. It must have quotation marks. If tumor.col.name is equal to NA(default), this function will use the 10th column to calculate VAFs. See GetMutectVAF for more details.

name.of.vcf

Name of the VCF file. If NULL(default), this function will remove all of the path up to and including the last path separator (if any) in file and file path without extensions (and the leading dot) will be used as the name of the VCF file.

Value

A data frame storing mutation records of a VCF file with VAFs added.