correctHomInv: Correct homozygous inversion in StrandPhaseR VCF file.

View source: R/correctInversionPhasing.R

correctHomInvR Documentation

Correct homozygous inversion in StrandPhaseR VCF file.

Description

This function takes as an input region deemed to be a homozygous inversion and flips H1 and H2 haplotypes for SNVs that overlap with this region.

Usage

correctHomInv(correct.gr = NULL, vcf.file = NULL, ID = "")

Arguments

correct.gr

A GRanges object of homozygous inversion site to be corrected.

vcf.file

A StrandPhaseR formatted VCF file to be corrected for inversion phasing.

ID

A unique id to be appended at the end of each corrected VCF file.

Value

NULL

Author(s)

David Porubsky


daewoooo/StrandPhaseR documentation built on April 7, 2024, 7:13 p.m.