Question: Bimap and flatten()
0
gravatar for Laurent Gautier
8.4 years ago by
Laurent Gautier2.2k
Laurent Gautier2.2k wrote:
Hi, The documentation for Bimap (in AnnotationDbi) refers to a generic "flatten()" that does not appear to be exported. Is this by design or is this an oversight ? Thanks, Laurent
• 382 views
ADD COMMENTlink modified 8.4 years ago by Marc Carlson7.2k • written 8.4 years ago by Laurent Gautier2.2k
Answer: Bimap and flatten()
0
gravatar for Marc Carlson
8.4 years ago by
Marc Carlson7.2k
United States
Marc Carlson7.2k wrote:
Hi Laurent, This documentation is just extra information about how these things are internally designed. It is not expected that you will ever need to flatten a Bimap (the function is only used internally). The description of the Bimaps has a lot of extra technical details that might be useful if you needed to make a custom package, but which are probably not interesting for most users the rest of the time. If you were hoping to make a Bimap appear as something more like a simple data.frame you might just be looking for toTable(). Hope this helps, Marc On 04/25/2011 10:11 AM, Laurent Gautier wrote: > Hi, > > The documentation for Bimap (in AnnotationDbi) refers to a generic > "flatten()" that does not appear to be exported. > > Is this by design or is this an oversight ? > > Thanks, > > > Laurent > > _______________________________________________ > Bioconductor mailing list > Bioconductor at r-project.org > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: > http://news.gmane.org/gmane.science.biology.informatics.conductor
ADD COMMENTlink written 8.4 years ago by Marc Carlson7.2k
Hi Marc, Thanks for the answer. Since the documentation for the class Bimap is likely the first place one facing an instance would reach when looking for more information, would it make sense to mention that toTable() should be used where flatten() is described (as not much suggests that flatten() is not exported otherwise). Also, is there a particular reason why the method that converts an instance to a data.frame is called "toTable()" (while "as.data.frame()" is otherwise an existing R method) ? Best, Laurent On 2011-04-26 20:16, Marc Carlson wrote: > Hi Laurent, > > This documentation is just extra information about how these things > are internally designed. It is not expected that you will ever need > to flatten a Bimap (the function is only used internally). The > description of the Bimaps has a lot of extra technical details that > might be useful if you needed to make a custom package, but which are > probably not interesting for most users the rest of the time. > > If you were hoping to make a Bimap appear as something more like a > simple data.frame you might just be looking for toTable(). > > > Hope this helps, > > > Marc > > > On 04/25/2011 10:11 AM, Laurent Gautier wrote: >> Hi, >> >> The documentation for Bimap (in AnnotationDbi) refers to a generic >> "flatten()" that does not appear to be exported. >> >> Is this by design or is this an oversight ? >> >> Thanks, >> >> >> Laurent >> >> _______________________________________________ >> Bioconductor mailing list >> Bioconductor at r-project.org >> https://stat.ethz.ch/mailman/listinfo/bioconductor >> Search the archives: >> http://news.gmane.org/gmane.science.biology.informatics.conductor > > _______________________________________________ > Bioconductor mailing list > Bioconductor at r-project.org > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: > http://news.gmane.org/gmane.science.biology.informatics.conductor -- - Laurent Gautier, Ph.D. DMAC, Head Building 208, CBS - Technical University of Denmark DK-2800 Lyngby Phone: +45 45 25 61 45 Fax: +45 45 93 15 85
ADD REPLYlink written 8.4 years ago by Laurent Gautier2.2k
Hi Laurent, After discussing it, we see no compelling reason why we can't also support calling as.data.frame() here. So I am adding it to the devel branch. Marc On 04/26/2011 12:31 PM, Laurent Gautier wrote: > Hi Marc, > > Thanks for the answer. > > Since the documentation for the class Bimap is likely the first place > one facing an instance would reach when looking for more information, > would it make sense to mention that toTable() should be used where > flatten() is described (as not much suggests that flatten() is not > exported otherwise). > > Also, is there a particular reason why the method that converts an > instance to a data.frame is called "toTable()" (while > "as.data.frame()" is otherwise an existing R method) ? > > > Best, > > > Laurent > > > On 2011-04-26 20:16, Marc Carlson wrote: >> Hi Laurent, >> >> This documentation is just extra information about how these things >> are internally designed. It is not expected that you will ever need >> to flatten a Bimap (the function is only used internally). The >> description of the Bimaps has a lot of extra technical details that >> might be useful if you needed to make a custom package, but which are >> probably not interesting for most users the rest of the time. >> >> If you were hoping to make a Bimap appear as something more like a >> simple data.frame you might just be looking for toTable(). >> >> >> Hope this helps, >> >> >> Marc >> >> >> On 04/25/2011 10:11 AM, Laurent Gautier wrote: >>> Hi, >>> >>> The documentation for Bimap (in AnnotationDbi) refers to a generic >>> "flatten()" that does not appear to be exported. >>> >>> Is this by design or is this an oversight ? >>> >>> Thanks, >>> >>> >>> Laurent >>> >>> _______________________________________________ >>> Bioconductor mailing list >>> Bioconductor at r-project.org >>> https://stat.ethz.ch/mailman/listinfo/bioconductor >>> Search the archives: >>> http://news.gmane.org/gmane.science.biology.informatics.conductor >> >> _______________________________________________ >> Bioconductor mailing list >> Bioconductor at r-project.org >> https://stat.ethz.ch/mailman/listinfo/bioconductor >> Search the archives: >> http://news.gmane.org/gmane.science.biology.informatics.conductor > >
ADD REPLYlink written 8.4 years ago by Marc Carlson7.2k
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 16.09
Traffic: 141 users visited in the last hour