View source: R/hapVisualization.R
plotGeneStructure | R Documentation |
plotGeneStructure
plotGeneStructure(gff, hapResult, Chr, startPOS, endPOS, type = "pin", cex = 0.7, CDS_h = 0.05, fiveUTR_h = 0.02, threeUTR_h = 0.01)
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 |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.