Bimap and flatten()
1
0
Entering edit mode
Laurent Gautier ★ 2.3k
@laurent-gautier-29
Last seen 9.6 years ago
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
• 898 views
ADD COMMENT
0
Entering edit mode
Marc Carlson ★ 7.2k
@marc-carlson-2264
Last seen 7.7 years ago
United States
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 COMMENT
0
Entering edit mode
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 REPLY
0
Entering edit mode
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 REPLY

Login before adding your answer.

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