Uml Diagram Of Bioconductor
2
4
Entering edit mode
12.4 years ago
Jamie ▴ 40

Hi, Does anyone know whether a UML model of some core Bioconductor packages has been done? It would be good to see a visual representation of the relations between the different packages and their classes. TIA.

r bioconductor • 2.1k views
ADD COMMENT
3
Entering edit mode

I admire your faith that UML is at some point deployed in the creation of an R package.

ADD REPLY
1
Entering edit mode

@DanielSwan: not a very helpful comment. I never said I had faith that UML was deployed: I was asking whether it had been deployed. The development of Bioconductor was characterized by an adoption of an OOP paradigm. As such, it's not unreasonable to suggest that UML was used during development.

ADD REPLY
0
Entering edit mode

This is a good idea. Did you ask the R-help list ?

ADD REPLY
0
Entering edit mode

No... to which R-help list are you referring? I have emailed the Bioconductor team but have yet to receive a response.

ADD REPLY
0
Entering edit mode

It was intended to be humorous and convey the likely result of your inquiry ;)

ADD REPLY
0
Entering edit mode

Ok no problem..

ADD REPLY
7
Entering edit mode
12.4 years ago

Give this a try:

source('http://bioconductor.org/biocLite.R')
biocLite('pkgDepTools')
library(pkgDepTools)
# grab the bioconductor repository url
repos = biocinstallRepos()[1]
# from the pkgDepTools package
z = makeDepGraph(repos)

Now, z is a graphNEL graph with nodes representing packages and directed edges from the package to its dependencies.

z
nodes(z)
edges(z)

You can use Rgraphviz to make a graphic of the dependencies or convert to igraph format for an interactive view. I leave that as an exercise.

As for classes, I don't have a good general answer for all classes, but for a specific class, the class definition will show you the relationships to classes from which the class inherits.

ADD COMMENT
0
Entering edit mode

Thanks, that's great. I've used graphviz before so I'll give it a try.

ADD REPLY
1
Entering edit mode
12.4 years ago
Jamie ▴ 30

I've received a reply saying that UML was not used in development of Bioconductor, but could be used to do model packages. I'll probably give it a try, unless someone's already done so?

ADD COMMENT

Login before adding your answer.

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