Gviz Incorrect Labels on Features
1
0
Entering edit mode
Lance Parsons ▴ 130
@lance-parsons-6529
Last seen 9.4 years ago
United States
Hi Florian, I don't mean to bug you, but I'm working on getting some figures put together and it would be very handy to have this fix. If you point me in the right direction, I could take a stab at it. I know you're busy with other things. Thanks for you time. Lance Lance Parsons wrote: > Fantastic. Not sure when this cropped up, but this will certainly > help quite a bit. Let me know once you have a patch, I'd be happy to > test it. > > Lance > > Hahne, Florian wrote: >> Jep, I think I know what is going on here. Damn factors in >> data.frames Will post a fix soon. >> Florian >> >> From: Lance Parsons <lparsons@princeton.edu>> <mailto:lparsons@princeton.edu>> >> Date: Wednesday 21 May 2014 17:53 >> To: "bioconductor@r-project.org <mailto:bioconductor@r-project.org>" >> <bioconductor@r-project.org <mailto:bioconductor@r-project.org="">> >> Cc: Florian Hahne <florian.hahne@novartis.com>> <mailto:florian.hahne@novartis.com>> >> Subject: Gviz Incorrect Labels on Features >> >> I have run into what appears to be a bug with GViz labels, though >> perhaps I'm using the annotations incorrectly. The following minimal >> example seems to plot the correct features, but with the labels mixed >> up. I suspect the issue has to do with the sorting (or lack thereof) >> of the features in the GRanges list, however, I'm not sure of the >> proper workaround. Any help would be appreciated. >> >> # Gviz annotation label mixup >> >> library(Gviz) >> library(TxDb.Scerevisiae.UCSC.sacCer3.sgdGene) >> txdb <- TxDb.Scerevisiae.UCSC.sacCer3.sgdGene >> chr = 'chrVIII' >> start=212535 - 500 >> end=214718 + 2000 >> grtrack = GeneRegionTrack(txdb, chromosome=chr, start=start, end=end, >> showId=TRUE, shape='fixedArrow') >> grtrack@range >> plotTracks(grtrack) >> >> >> Here you can see that YHR054W-A should be plotted at 214508 and in >> the forward direction. However, that is clearly not the case in the >> plot. >> >> >> GRanges with 6 ranges and 7 metadata columns: >> seqnames ranges strand | feature >> id exon transcript gene symbol density >> <rle> <iranges> <rle> | <character> <character> <character> >> <character> <character> <character> <numeric> >> [1] chrVIII [212510, 212704] + | CDS unknown >> YHR052W-A_1 YHR052W-A YHR052W-A YHR052W-A 1 >> [2] chrVIII [214508, 214702] + | CDS unknown >> YHR054W-A_1 YHR054W-A YHR054W-A YHR054W-A 1 >> [3] chrVIII [212535, 212720] - | CDS unknown >> YHR053C_1 YHR053C YHR053C YHR053C 1 >> [4] chrVIII [213185, 214249] - | CDS unknown >> YHR054C_1 YHR054C YHR054C YHR054C 1 >> [5] chrVIII [214533, 214718] - | CDS unknown >> YHR055C_1 YHR055C YHR055C YHR055C 1 >> [6] chrVIII [215183, 217834] - | CDS unknown >> YHR056C_1 YHR056C YHR056C YHR056C 1 >> --- >> seqlengths: >> chrVIII >> NA >> >> >> >> -- >> Lance Parsons - Scientific Programmer >> 134 Carl C. Icahn Laboratory >> Lewis-Sigler Institute for Integrative Genomics >> Princeton University >> > > -- > Lance Parsons - Scientific Programmer > 134 Carl C. Icahn Laboratory > Lewis-Sigler Institute for Integrative Genomics > Princeton University > -- Lance Parsons - Scientific Programmer 134 Carl C. Icahn Laboratory Lewis-Sigler Institute for Integrative Genomics Princeton University [[alternative HTML version deleted]]
Annotation Gviz Annotation Gviz • 788 views
ADD COMMENT
0
Entering edit mode
@florianhahnenovartiscom-3784
Last seen 5.6 years ago
Switzerland
Hi Lance, Sorry, have been procrastinating on this one. I just checked in a fix for this to the release branch (version 1.8.3, svn URL https://hedgeho g.fhcrc.org/bioconductor/branches/RELEASE_2_14/madman/Rpacks/Gviz) The code is also fixed in devel, however I mixed that in with a bunch of other changes which have not been documented yet. Will do that today and then check that in as well. Will let you know. Florian From: Lance Parsons <lparsons@princeton.edu<mailto:lparsons@princeton.edu>> Date: Tuesday 3 June 2014 19:45 To: Florian Hahne <florian.hahne@novartis.com<mailto:florian.hahne@novartis.com>> Cc: "bioconductor@r-project.org<mailto:bioconductor@r-project.org>" <bioconductor@r-project.org<mailto:bioconductor@r-project.org>> Subject: Re: Gviz Incorrect Labels on Features Hi Florian, I don't mean to bug you, but I'm working on getting some figures put together and it would be very handy to have this fix. If you point me in the right direction, I could take a stab at it. I know you're busy with other things. Thanks for you time. Lance Lance Parsons wrote: Fantastic. Not sure when this cropped up, but this will certainly help quite a bit. Let me know once you have a patch, I'd be happy to test it. Lance Hahne, Florian wrote: Jep, I think I know what is going on here. Damn factors in data.frames Will post a fix soon. Florian From: Lance Parsons <lparsons@princeton.edu<mailto:lparsons@princeton.edu>> Date: Wednesday 21 May 2014 17:53 To: "bioconductor@r-project.org<mailto:bioconductor@r-project.org>" <bioconductor@r-project.org<mailto:bioconductor@r-project.org>> Cc: Florian Hahne <florian.hahne@novartis.com<mailto:florian.hahne@novartis.com>> Subject: Gviz Incorrect Labels on Features I have run into what appears to be a bug with GViz labels, though perhaps I'm using the annotations incorrectly. The following minimal example seems to plot the correct features, but with the labels mixed up. I suspect the issue has to do with the sorting (or lack thereof) of the features in the GRanges list, however, I'm not sure of the proper workaround. Any help would be appreciated. # Gviz annotation label mixup library(Gviz) library(TxDb.Scerevisiae.UCSC.sacCer3.sgdGene) txdb <- TxDb.Scerevisiae.UCSC.sacCer3.sgdGene chr = 'chrVIII' start=212535 - 500 end=214718 + 2000 grtrack = GeneRegionTrack(txdb, chromosome=chr, start=start, end=end, showId=TRUE, shape='fixedArrow') grtrack@range plotTracks(grtrack) Here you can see that YHR054W-A should be plotted at 214508 and in the forward direction. However, that is clearly not the case in the plot. GRanges with 6 ranges and 7 metadata columns: seqnames ranges strand | feature id exon transcript gene symbol density <rle> <iranges> <rle> | <character> <character> <character> <character> <character> <character> <numeric> [1] chrVIII [212510, 212704] + | CDS unknown YHR052W-A_1 YHR052W-A YHR052W-A YHR052W-A 1 [2] chrVIII [214508, 214702] + | CDS unknown YHR054W-A_1 YHR054W-A YHR054W-A YHR054W-A 1 [3] chrVIII [212535, 212720] - | CDS unknown YHR053C_1 YHR053C YHR053C YHR053C 1 [4] chrVIII [213185, 214249] - | CDS unknown YHR054C_1 YHR054C YHR054C YHR054C 1 [5] chrVIII [214533, 214718] - | CDS unknown YHR055C_1 YHR055C YHR055C YHR055C 1 [6] chrVIII [215183, 217834] - | CDS unknown YHR056C_1 YHR056C YHR056C YHR056C 1 --- seqlengths: chrVIII NA [cid:part1.07010103.00050306@princeton.edu] -- Lance Parsons - Scientific Programmer 134 Carl C. Icahn Laboratory Lewis-Sigler Institute for Integrative Genomics Princeton University -- Lance Parsons - Scientific Programmer 134 Carl C. Icahn Laboratory Lewis-Sigler Institute for Integrative Genomics Princeton University -- Lance Parsons - Scientific Programmer 134 Carl C. Icahn Laboratory Lewis-Sigler Institute for Integrative Genomics Princeton University [[alternative HTML version deleted]]
ADD COMMENT

Login before adding your answer.

Traffic: 732 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