##############################################################
# test function
########################################################
# load data
data(gtf)
# non-coding gene
trancriptVis(gtfFile = gtf,
gene = 'Xist')
# coding gene
trancriptVis(gtfFile = gtf,
gene = 'Nanog')
# change fill color
trancriptVis(gtfFile = gtf,
gene = 'Nanog',
exonFill = '#CCFF00')
# change inrton line size
trancriptVis(gtfFile = gtf,
gene = 'Nanog',
intronSize = 1)
# change label size,color and position
trancriptVis(gtfFile = gtf,
gene = 'Nanog',
textLabelSize = 4,
textLabelColor = 'red',
relTextDist = 0)
# aes by gene name
trancriptVis(gtfFile = gtf,
gene = 'Nanog',
textLabel = 'gene_name')
# color aes by transcript
trancriptVis(gtfFile = gtf,
gene = 'Tpx2',
exonColorBy = 'transcript_id')
# change arrow color and type
trancriptVis(gtfFile = gtf,
gene = 'Nanog',
arrowCol = 'orange',
arrowType = 'closed')
# no intron gene and add arrow color
# change arrow color and type
trancriptVis(gtfFile = gtf,
gene = 'Jun',
textLabel = 'gene_name',
arrowCol = 'white',
arrowType = 'closed') +
theme_void()
# add arrow breaks
trancriptVis(gtfFile = gtf,
gene = 'Nanog',
arrowCol = 'orange',
arrowType = 'closed',
arrowBreak = 0.1)
# draw specific transcript
p1 <- trancriptVis(gtfFile = gtf,
gene = 'Commd7')
p2 <- trancriptVis(gtfFile = gtf,
gene = 'Commd7',
myTranscript = c('ENSMUST00000071852','ENSMUST00000109782'))
# combine
cowplot::plot_grid(p1,p2,ncol = 2,align = 'hv')
Run the code above in your browser using DataLab