Open kasperdanielhansen opened 8 years ago
Perhaps a clue is in the start of the out
print:
> out
──────────────────────────────────────────────────── Map of R package 'minfi' ──
_ ❯ methods::setGeneric
_ ❯ methods::setGeneric
_ ❯ methods::setGeneric
_ ❯ methods::setGeneric
_ ❯ methods::setGeneric
_ ❯ methods::setGeneric
_ ❯ methods::setGeneric
_ ❯ methods::setGeneric
_ ❯ methods::setGeneric
.availableAnnotation ❯ ★ getAnnotationObject
.betaFromMethUnmeth ❯
.buildControlMatrix450k ❯ stats::na.omit
.checkAssayNames ❯ assays
.checkSex ❯
.digestMatrix ❯ digest::digest
.digestVector ❯ digest::digest
<SNIP>
I think the issue is that duplicated node names need to be pruned or merged in the process of building the sankey graph. When I insert a debugger breakpoint at 13: graph.list(adjlist)
and run:
names(x)[duplicated(names(x))]
:
> [1] "_"
x$`
_`
> [1] "utils::read.csv" "utils::read.csv"
which(names(x) == names(x)[which(duplicated(names(x)))])
> [1] 14 25
x[14]
> [1] "utils::read.csv" "utils::read.csv"
x[25]
> character(0)
Thanks for looking into this. Yes, the different _
elements are pieces of code outside of functions. They should be replaced by a single _
for the plot.
When I run it on the minfi package on Github (https://github.com/kasperdanielhansen/minfi), I get an error when plotting the output of
map_r_package()
:results in