plotGeneStructure: plotGeneStructure

View source: R/hapVisualization.R

plotGeneStructureR Documentation

plotGeneStructure

Description

plotGeneStructure

Usage

plotGeneStructure(gff, hapResult,
Chr,
startPOS, endPOS,
type = "pin", cex = 0.7,
CDS_h = 0.05, fiveUTR_h = 0.02, threeUTR_h = 0.01)

Arguments

gff

gff

hapResult

ouput of hap_result(), a data.frame consistant with 4 metarows: Chr, POS, Allele and ANN, and each genotype of each hap

Chr

Chr, it will use the first Chr in the meta rows by defalt

startPOS

If missing, will use the min position in the second meta rows by defalt

endPOS

If missing, will use the max position in the second meta rows by defalt

type

character. Could be circle, pie, pin, pie.stack or flag

cex

cex will control the size of circle.

CDS_h, fiveUTR_h, threeUTR_h

The height of CDS 5'UTR and 3'UTR

Examples


data("quickHap_test")
hap <- get_hap(vcf,hyb_remove = TRUE, na.drop = TRUE)
hapResult <- hap_result(hap)
plotGeneStructure(gff, hapResult,
                  startPOS = 4100,
                  endPOS = 8210,
                  cex = 0.75)

ZhangRenL/quickHapR documentation built on June 17, 2022, 12:04 a.m.