rngVcf2df: Convert ranges to data.frame

rngVcf2dfR Documentation

Convert ranges to data.frame

Description

Non-bi-allelic variants are discarded.

Usage

rngVcf2df(
  vcf,
  with.coords = TRUE,
  with.alleles = TRUE,
  single.ref = FALSE,
  single.alt = FALSE
)

Arguments

vcf

CollapsedVCF (see pkg VariantAnnotation)

with.coords

if TRUE, the output will contain variant coordinates

with.alleles

if TRUE, the output will contain variant alleles

single.ref

if TRUE, only records with a single 'ref' are kept

single.alt

if TRUE, only records with a single 'alt' are kept

Value

data.frame with variants in rows

Author(s)

Timothee Flutre

See Also

subsetVcfOnAllelicity


timflutre/rutilstimflutre documentation built on Feb. 7, 2024, 8:17 a.m.