gviz: error when plotting BiomartGeneRegionTrack with just.group="above"
1
0
Entering edit mode
tonja.r ▴ 80
@tonjar-7565
Last seen 7.4 years ago
United Kingdom

I want the annotation of the genes/transcripts appear above the transcripts and not on the left or right.

ensembl = useMart(biomart="ENSEMBL_MART_ENSEMBL", host="grch37.ensembl.org", path="/biomart/martservice", dataset="hsapiens_gene_ensembl")

biomTrack <- BiomartGeneRegionTrack(genome = "hg19", chromosome = "chr12", start = 57929124, end =58122355,name = "ENSEMBL", biomart = ensembl,transcriptAnnotation = "symbol")

displayPars(biomTrack) = list(showId=TRUE,stackHeight=0.5,background.title="transparent",fontcolor.title="black",just.group="above")

plotTracks(list(biomTrack), from = 57929124, to = 58122355) 

 

Unfortunately, I get this error:

Fehler in data.frame(txt = labs, x = cx, y = cy, stringsAsFactors = FALSE) :
  arguments imply differing number of rows: 109, 108

I do not get an error if I do not specify just.group parameter.
How can I put the annotations to appear above the transcripts without an error?

gviz • 1.4k views
ADD COMMENT
1
Entering edit mode
Robert Ivanek ▴ 730
@robert-ivanek-5892
Last seen 4 months ago
Switzerland

Thanks for pointing out this issue. The next devel release 1.11.16 should contain the fix.

 

ADD COMMENT

Login before adding your answer.

Traffic: 536 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6