Title: | Gene Model Plotting in R |
---|---|
Description: | Using simple input, this package creates plots of gene models. Users can create plots of alternatively spliced gene variants and the positions of mutations and other gene features. |
Authors: | J Grey Monroe [aut, cre] |
Maintainer: | J Grey Monroe <[email protected]> |
License: | GPL-2 |
Version: | 1.1.0 |
Built: | 2025-02-26 06:31:30 UTC |
Source: | https://github.com/greymonroe/genemodel |
Gene model for AT5G62640
AT5G62640
AT5G62640
A data frame with 32 rows and 2 variables:
feature of gene ie intron exon or UTR
start and stop of gene feature separated by a "-"
...
https://www.arabidopsis.org/servlets/TairObject?type=gene&id=1000654517
This function plots a gene model
genemodel.plot(model, start, bpstop, orientation, xaxis = TRUE)
genemodel.plot(model, start, bpstop, orientation, xaxis = TRUE)
model |
data.frame containing model information. Required columns are "type", "coordinates" |
start |
start position |
bpstop |
stop position |
orientation |
either "foward" or "reverse" indicates the direction of transcription |
xaxis |
default is TRUE and adds axis above gene model showing position |
data(AT5G62640) genemodel.plot(AT5G62640, 25149433, 25152541, "reverse", xaxis=TRUE)
data(AT5G62640) genemodel.plot(AT5G62640, 25149433, 25152541, "reverse", xaxis=TRUE)
This function plots mutations along genemodels created with genemodel.plot
mutation.plot(start, stop, text = "", drop = -0.15, col = "red", haplotypes = NULL)
mutation.plot(start, stop, text = "", drop = -0.15, col = "red", haplotypes = NULL)
start |
start position |
stop |
stop position |
text |
any text that you want displayed on the label |
drop |
how far below the gene model you want the mutation label to be placed |
col |
the color of the text and mutation line to be |
haplotypes |
the color of dots that you want to place along the mutation line to indicate some factor such as haplotype that the mutation belongs to |
data(AT5G62640) genemodel.plot(AT5G62640, 25149433, 25152541, "reverse") mutation.plot(25149593, 25149593, text="P->S", col="red", haplotype="blue")
data(AT5G62640) genemodel.plot(AT5G62640, 25149433, 25152541, "reverse") mutation.plot(25149593, 25149593, text="P->S", col="red", haplotype="blue")