1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,19 @@ |
1 |
+library(testthat) |
|
2 |
+library(KEGGgraph) |
|
3 |
+ |
|
4 |
+## Alexander Gulliver Bjornholt Gronning reported that this file cannot be exported as data.frame |
|
5 |
+## when reactions=TRUE |
|
6 |
+## It turned out the reason is that KEGGedgeData is not necessarily of the same length as edgeData |
|
7 |
+## Now it is fixed |
|
8 |
+kgmlFile <- system.file("extdata/hsa05210.xml", package="KEGGgraph") |
|
9 |
+kgmlDf <- parseKGML2DataFrame(kgmlFile, reactions=TRUE, genesOnly=FALSE) |
|
10 |
+ |
|
11 |
+## Alexander Gulliver Bjornholt Gronning reported that the following file reported error |
|
12 |
+## Error in (function (classes, fdef, mtable) : |
|
13 |
+## unable to find an inherited method for function ‘getName’ for signature ‘"NULL"’ |
|
14 |
+## when reactions=TRUE |
|
15 |
+## It was found to be caused by compound nodes (e.g. nodes containing more than one nodes), and |
|
16 |
+## nodes that are not annotated (e.g. glycans) |
|
17 |
+## it was fixed in 1.43.3 |
|
18 |
+compoundKgml <- system.file("extdata/hsa00062.xml", package="KEGGgraph") |
|
19 |
+compoundKgmlDf <- parseKGML2DataFrame(compoundKgml, reactions=TRUE, genesOnly=FALSE) |
|
0 | 20 |
\ No newline at end of file |