advice on masked objects
2
0
Entering edit mode
Bogdan ▴ 670
@bogdan-2367
Last seen 6 months ago
Palo Alto, CA, USA
Dear all, and Tengfei, I am getting the following message when loading the package "ggbio", particularly that "The following objects are masked from ‘package:ggplot2’:" . I am especially interested in "xlim" function, to work on a GRange object. Any advice ? thank you very much, --- bogdan ------------------------------------------------------------------- " > library("ggbio") Attaching package: ‘ggbio’ The following objects are masked from ‘package:ggplot2’: geom_bar, geom_rect, geom_segment, ggsave, stat_bin, stat_identity, xlim" -------------------------------------------------------------------- [[alternative HTML version deleted]]
• 1.3k views
ADD COMMENT
0
Entering edit mode
@michael-lawrence-3846
Last seen 2.4 years ago
United States
What exactly is the problem? The masking should be harmless; the ggplot2 xlim is masked with a generic that will delegate to it by default. On Tue, Oct 8, 2013 at 1:24 PM, Bogdan Tanasa <tanasa@gmail.com> wrote: > Dear all, and Tengfei, > > I am getting the following message when loading the package "ggbio", > particularly that > "The following objects are masked from ‘package:ggplot2’:" . > > I am especially interested in "xlim" function, to work on a GRange object. > Any advice ? > > thank you very much, > > --- bogdan > > ------------------------------------------------------------------- > " > library("ggbio") > > Attaching package: ‘ggbio’ > > The following objects are masked from ‘package:ggplot2’: > > geom_bar, geom_rect, geom_segment, ggsave, stat_bin, stat_identity, xlim" > -------------------------------------------------------------------- > > [[alternative HTML version deleted]] > > > _______________________________________________ > Bioconductor mailing list > Bioconductor@r-project.org > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: > http://news.gmane.org/gmane.science.biology.informatics.conductor > [[alternative HTML version deleted]]
ADD COMMENT
0
Entering edit mode
Thank you all. To add a brief description about my project : I have a long list of GENE REGIONS (200 regions, each region is of type "chr:start-end") and for each region, I would like to display several genomic tracks (eg ChIP-seq peaks, gene annotations, etc etc). I wrote a short script below, using xlim() function. As these 200 regions are distributed over 24 chromosomes, it looks that I may have to split the data for each of these 24 chromosomes, and run the script for every chromosome. Unless you have another suggestions ... thank you, bogdan On Tue, Oct 8, 2013 at 1:36 PM, Michael Lawrence <lawrence.michael@gene.com>wrote: > What exactly is the problem? The masking should be harmless; the ggplot2 > xlim is masked with a generic that will delegate to it by default. > > > On Tue, Oct 8, 2013 at 1:24 PM, Bogdan Tanasa <tanasa@gmail.com> wrote: > >> Dear all, and Tengfei, >> >> I am getting the following message when loading the package "ggbio", >> particularly that >> "The following objects are masked from ‘package:ggplot2’:" . >> >> I am especially interested in "xlim" function, to work on a GRange object. >> Any advice ? >> >> thank you very much, >> >> --- bogdan >> >> ------------------------------------------------------------------- >> " > library("ggbio") >> >> Attaching package: ‘ggbio’ >> >> The following objects are masked from ‘package:ggplot2’: >> >> geom_bar, geom_rect, geom_segment, ggsave, stat_bin, stat_identity, xlim" >> -------------------------------------------------------------------- >> >> [[alternative HTML version deleted]] >> >> >> _______________________________________________ >> Bioconductor mailing list >> Bioconductor@r-project.org >> https://stat.ethz.ch/mailman/listinfo/bioconductor >> Search the archives: >> http://news.gmane.org/gmane.science.biology.informatics.conductor >> > > [[alternative HTML version deleted]]
ADD REPLY
0
Entering edit mode
To me this is a very interesting feature request, it's more like multiple gene regions for tracks, you are talking about 200 regions, make it hard to fit into one screen, I am thinking about make a function to generate animation of many gene regions of different tracks, with package animation, so you could either output the 200 hundred figures into a folder or go over the regions with Javascript control button in your internet browser. I don't have a function like that in ggbio to support viewing 200 regions of trakcs, but I could probably provide a scripts to you for that purpose. Tengfei On Tue, Oct 8, 2013 at 4:55 PM, Bogdan Tanasa <tanasa@gmail.com> wrote: > Thank you all. To add a brief description about my project : > > I have a long list of GENE REGIONS (200 regions, each region is of type > "chr:start-end") and for each region, I would like to display several > genomic tracks (eg ChIP-seq peaks, gene annotations, etc etc). > > I wrote a short script below, using xlim() function. As these 200 regions > are distributed over 24 chromosomes, it looks that I may have to split the > data for each of these 24 chromosomes, and run the script for every > chromosome. Unless you have another suggestions ... > > thank you, > > bogdan > > > On Tue, Oct 8, 2013 at 1:36 PM, Michael Lawrence < > lawrence.michael@gene.com> wrote: > >> What exactly is the problem? The masking should be harmless; the ggplot2 >> xlim is masked with a generic that will delegate to it by default. >> >> >> On Tue, Oct 8, 2013 at 1:24 PM, Bogdan Tanasa <tanasa@gmail.com> wrote: >> >>> Dear all, and Tengfei, >>> >>> I am getting the following message when loading the package "ggbio", >>> particularly that >>> "The following objects are masked from ‘package:ggplot2’:" . >>> >>> I am especially interested in "xlim" function, to work on a GRange >>> object. >>> Any advice ? >>> >>> thank you very much, >>> >>> --- bogdan >>> >>> ------------------------------------------------------------------- >>> " > library("ggbio") >>> >>> Attaching package: ‘ggbio’ >>> >>> The following objects are masked from ‘package:ggplot2’: >>> >>> geom_bar, geom_rect, geom_segment, ggsave, stat_bin, stat_identity, xlim" >>> -------------------------------------------------------------------- >>> >>> [[alternative HTML version deleted]] >>> >>> >>> _______________________________________________ >>> Bioconductor mailing list >>> Bioconductor@r-project.org >>> https://stat.ethz.ch/mailman/listinfo/bioconductor >>> Search the archives: >>> http://news.gmane.org/gmane.science.biology.informatics.conductor >>> >> >> > -- Tengfei Yin, PhD Seven Bridges Genomics sbgenomics.com 625 Mt. Auburn St. Suite #208 Cambridge, MA 02138 (617) 866-0446 [[alternative HTML version deleted]]
ADD REPLY
0
Entering edit mode
Thank you, Tengfei. I have the script handy, as I am would like to generate One Image per Gene Region : I could email it to you shortly, for the moment when you will have more time available. Thanks so much. On Tue, Oct 8, 2013 at 2:02 PM, Tengfei Yin <tengfei.yin@sbgenomics.com>wrote: > To me this is a very interesting feature request, it's more like multiple > gene regions for tracks, you are talking about 200 regions, make it hard to > fit into one screen, I am thinking about make a function to generate > animation of many gene regions of different tracks, with package > animation, so you could either output the 200 hundred figures into a folder > or go over the regions with Javascript control button in your internet > browser. > > I don't have a function like that in ggbio to support viewing 200 regions > of trakcs, but I could probably provide a scripts to you for that purpose. > > Tengfei > > > On Tue, Oct 8, 2013 at 4:55 PM, Bogdan Tanasa <tanasa@gmail.com> wrote: > >> Thank you all. To add a brief description about my project : >> >> I have a long list of GENE REGIONS (200 regions, each region is of type >> "chr:start-end") and for each region, I would like to display several >> genomic tracks (eg ChIP-seq peaks, gene annotations, etc etc). >> >> I wrote a short script below, using xlim() function. As these 200 regions >> are distributed over 24 chromosomes, it looks that I may have to split the >> data for each of these 24 chromosomes, and run the script for every >> chromosome. Unless you have another suggestions ... >> >> thank you, >> >> bogdan >> >> >> On Tue, Oct 8, 2013 at 1:36 PM, Michael Lawrence < >> lawrence.michael@gene.com> wrote: >> >>> What exactly is the problem? The masking should be harmless; the ggplot2 >>> xlim is masked with a generic that will delegate to it by default. >>> >>> >>> On Tue, Oct 8, 2013 at 1:24 PM, Bogdan Tanasa <tanasa@gmail.com> wrote: >>> >>>> Dear all, and Tengfei, >>>> >>>> I am getting the following message when loading the package "ggbio", >>>> particularly that >>>> "The following objects are masked from ‘package:ggplot2’:" . >>>> >>>> I am especially interested in "xlim" function, to work on a GRange >>>> object. >>>> Any advice ? >>>> >>>> thank you very much, >>>> >>>> --- bogdan >>>> >>>> ------------------------------------------------------------------- >>>> " > library("ggbio") >>>> >>>> Attaching package: ‘ggbio’ >>>> >>>> The following objects are masked from ‘package:ggplot2’: >>>> >>>> geom_bar, geom_rect, geom_segment, ggsave, stat_bin, stat_identity, >>>> xlim" >>>> -------------------------------------------------------------------- >>>> >>>> [[alternative HTML version deleted]] >>>> >>>> >>>> _______________________________________________ >>>> Bioconductor mailing list >>>> Bioconductor@r-project.org >>>> https://stat.ethz.ch/mailman/listinfo/bioconductor >>>> Search the archives: >>>> http://news.gmane.org/gmane.science.biology.informatics.conductor >>>> >>> >>> >> > > > -- > Tengfei Yin, PhD > Seven Bridges Genomics > sbgenomics.com > 625 Mt. Auburn St. Suite #208 > Cambridge, MA 02138 > (617) 866-0446 > [[alternative HTML version deleted]]
ADD REPLY
0
Entering edit mode
Tengfei Yin ▴ 490
@tengfei-yin-6162
Last seen 9.7 years ago
Hi Bogdan, The automatic subset based one xlim(GRanges) for autoplot,GRanges is not supported yet. Please let me know your exact use story and the way you expect to use xim(GRanges), that will help me to implement the feature. Thanks. I override some basic function in ggplot2 and make it a S4 generic function in ggbio for various purpose, main reason is for supporting more objects. Please don't worry about the masked message. cheers Tengfei On Tue, Oct 8, 2013 at 4:24 PM, Bogdan Tanasa <tanasa@gmail.com> wrote: > Dear all, and Tengfei, > > I am getting the following message when loading the package "ggbio", > particularly that > "The following objects are masked from ‘package:ggplot2’:" . > > I am especially interested in "xlim" function, to work on a GRange object. > Any advice ? > > thank you very much, > > --- bogdan > > ------------------------------------------------------------------- > " > library("ggbio") > > Attaching package: ‘ggbio’ > > The following objects are masked from ‘package:ggplot2’: > > geom_bar, geom_rect, geom_segment, ggsave, stat_bin, stat_identity, xlim" > -------------------------------------------------------------------- > > > [[alternative HTML version deleted]]
ADD COMMENT

Login before adding your answer.

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