Search
Question: gviz: error when plotting BiomartGeneRegionTrack with just.group="above"
0
gravatar for tonja.r
2.6 years ago by
tonja.r30
United Kingdom
tonja.r30 wrote:

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?

ADD COMMENTlink modified 2.6 years ago by Robert Ivanek350 • written 2.6 years ago by tonja.r30
1
gravatar for Robert Ivanek
2.6 years ago by
Robert Ivanek350
Switzerland
Robert Ivanek350 wrote:

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

 

ADD COMMENTlink written 2.6 years ago by Robert Ivanek350
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 278 users visited in the last hour